Time structure.
Time structure containing the time given by or set to the RTC calendar. The structure uses seven values to give second, minute, hour, PM/AM, day, month, and year. It should be initialized via the rtc_calendar_get_time_defaults() function before use.
#include <rtc_calendar.h>
Data Fields | |
uint8_t | day |
Day value, where day 1 is the first day of the month. More... | |
uint8_t | hour |
Hour value. More... | |
uint8_t | minute |
Minute value. More... | |
uint8_t | month |
Month value, where month 1 is January. More... | |
bool | pm |
PM/AM value, true for PM, or false for AM. More... | |
uint8_t | second |
Second value. More... | |
uint16_t | year |
Year value. More... | |
uint8_t rtc_calendar_time::day |
Day value, where day 1 is the first day of the month.
Referenced by get_fattime(), rtc_calendar_get_time_defaults(), rtc_calendar_register_value_to_time(), and rtc_calendar_time_to_register_value().
uint8_t rtc_calendar_time::hour |
Hour value.
Referenced by get_fattime(), rtc_calendar_get_time_defaults(), rtc_calendar_register_value_to_time(), rtc_calendar_swap_time_mode(), and rtc_calendar_time_to_register_value().
uint8_t rtc_calendar_time::minute |
Minute value.
Referenced by get_fattime(), rtc_calendar_get_time_defaults(), rtc_calendar_register_value_to_time(), and rtc_calendar_time_to_register_value().
uint8_t rtc_calendar_time::month |
Month value, where month 1 is January.
Referenced by get_fattime(), rtc_calendar_get_time_defaults(), rtc_calendar_register_value_to_time(), and rtc_calendar_time_to_register_value().
bool rtc_calendar_time::pm |
PM/AM value, true
for PM, or false
for AM.
Referenced by rtc_calendar_get_time_defaults(), rtc_calendar_register_value_to_time(), rtc_calendar_swap_time_mode(), and rtc_calendar_time_to_register_value().
uint8_t rtc_calendar_time::second |
Second value.
Referenced by get_fattime(), rtc_calendar_get_time_defaults(), rtc_calendar_register_value_to_time(), and rtc_calendar_time_to_register_value().
uint16_t rtc_calendar_time::year |
Year value.
Referenced by get_fattime(), rtc_calendar_get_time_defaults(), rtc_calendar_register_value_to_time(), and rtc_calendar_time_to_register_value().