Microchip® Advanced Software Framework

rtc_calendar_time Struct Reference

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 rtc_calendar_get_time_defaults(), rtc_calendar_register_value_to_time(), and rtc_calendar_time_to_register_value().

uint8_t rtc_calendar_time::minute
uint8_t rtc_calendar_time::month
bool rtc_calendar_time::pm
uint8_t rtc_calendar_time::second