STM8L15x Standard Peripherals Drivers
|
RTC_TimeTypeDef Struct Reference
RTC Time structure definition. More...
#include <stm8l15x_rtc.h>
Data Fields | |
RTC_H12_TypeDef | RTC_H12 |
uint8_t | RTC_Hours |
uint8_t | RTC_Minutes |
uint8_t | RTC_Seconds |
Detailed Description
RTC Time structure definition.
Definition at line 487 of file stm8l15x_rtc.h.
Field Documentation
RTC 12-hour clock period (AM/PM)
Definition at line 512 of file stm8l15x_rtc.h.
Referenced by RTC_AlarmStructInit(), RTC_GetAlarm(), RTC_GetTime(), RTC_SetAlarm(), RTC_SetTime(), and RTC_TimeStructInit().
RTC Hours. If Binary format is selected :
- If RTC_Hour format is RTC_Hour format_12, this parameter can be any value from 1 to 12.
- If RTC_Hour format is RTC_Hour format_24, this parameter can be any value from 0 to 23. If BCD format is selected :
- If RTC_Hour format is RTC_Hour format_12, this parameter can be any BCD value from 0x01 to 0x12.
- If RTC_Hour format is RTC_Hour format_24, this parameter can be any BCD value from 0x00 to 0x23.
Definition at line 489 of file stm8l15x_rtc.h.
Referenced by RTC_AlarmStructInit(), RTC_GetAlarm(), RTC_GetTime(), RTC_SetAlarm(), RTC_SetTime(), and RTC_TimeStructInit().
RTC Minutes. If Binary format is selected, this parameter can be any value from 0 to 59. If BCD format is selected, this parameter can be any BCD value from 0x00 to 0x59.
Definition at line 502 of file stm8l15x_rtc.h.
Referenced by RTC_AlarmStructInit(), RTC_GetAlarm(), RTC_GetTime(), RTC_SetAlarm(), RTC_SetTime(), and RTC_TimeStructInit().
RTC Seconds. If Binary format is selected, this parameter can be any value from 0 to 59. If BCD format is selected, this parameter can be any BCD value from 0x00 to 0x59.
Definition at line 507 of file stm8l15x_rtc.h.
Referenced by RTC_AlarmStructInit(), RTC_GetAlarm(), RTC_GetTime(), RTC_SetAlarm(), RTC_SetTime(), and RTC_TimeStructInit().
The documentation for this struct was generated from the following file: