|
TM STM32F4xx Libraries
v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
|
RTC Struct for date/time. More...
#include <tm_stm32f4_rtc.h>
Data Fields | |
| uint8_t | seconds |
| uint16_t | subseconds |
| uint8_t | minutes |
| uint8_t | hours |
| uint8_t | day |
| uint8_t | date |
| uint8_t | month |
| uint8_t | year |
| uint32_t | unix |
RTC Struct for date/time.
| uint8_t date |
Date in a month, 1 to 31
| uint8_t day |
Day in a week, from 1 to 7
| uint8_t hours |
Hours parameter, 24Hour mode, 00 to 23
| uint8_t minutes |
Minutes parameter, from 00 to 59
| uint8_t month |
Month in a year, 1 to 12
| uint8_t seconds |
Seconds parameter, from 00 to 59
| uint16_t subseconds |
Subsecond downcounter. When it reaches zero, it's reload value is the same as RTC_SYNC_PREDIV, so in our case 0x3FF = 1023, 1024 steps in one second
| uint32_t unix |
Seconds from 01.01.1970 00:00:00
| uint8_t year |
Year parameter, 00 to 99, 00 is 2000 and 99 is 2099