Gets the century number
uint8_t XEOS_HAL_RTC_DateTimeGetCentury(
XEOS_HAL_RTC_DateTimeRef time );
The century number
Gets the day of month
uint8_t XEOS_HAL_RTC_DateTimeGetDayOfMonth(
XEOS_HAL_RTC_DateTimeRef time );
The day of month
Gets the number of hours
uint8_t XEOS_HAL_RTC_DateTimeGetHours(
XEOS_HAL_RTC_DateTimeRef time );
The number of hours
Gets the number of minutes
uint8_t XEOS_HAL_RTC_DateTimeGetMinutes(
XEOS_HAL_RTC_DateTimeRef time );
The number of minutes
Gets the month number
uint8_t XEOS_HAL_RTC_DateTimeGetMonth(
XEOS_HAL_RTC_DateTimeRef time );
The month number
Gets the number of seconds
uint8_t XEOS_HAL_RTC_DateTimeGetSeconds(
XEOS_HAL_RTC_DateTimeRef time );
The number of seconds
Sets the RTC time (writes values back to CMOS)
XEOS_HAL_RTC_DateTimeRef XEOS_HAL_RTC_DateTimeGetSystemTime(
void );
The RTC time object
Converts RTC time to a tm struct (time.h)
void XEOS_HAL_RTC_DateTimeGetTM(
XEOS_HAL_RTC_DateTimeRef time,
struct tm *t );
Gets the weekday
uint8_t XEOS_HAL_RTC_DateTimeGetWeekday(
XEOS_HAL_RTC_DateTimeRef time );
The weekday
Gets the year number
uint8_t XEOS_HAL_RTC_DateTimeGetYear(
XEOS_HAL_RTC_DateTimeRef time );
The year number
Sets the century number
void XEOS_HAL_RTC_DateTimeSetCentury(
XEOS_HAL_RTC_DateTimeRef time,
uint8_t value );
Sets the day of month
void XEOS_HAL_RTC_DateTimeSetDayOfMonth(
XEOS_HAL_RTC_DateTimeRef time,
uint8_t value );
Sets the number of hours
void XEOS_HAL_RTC_DateTimeSetHours(
XEOS_HAL_RTC_DateTimeRef time,
uint8_t value );
Sets the number of minutes
void XEOS_HAL_RTC_DateTimeSetMinutes(
XEOS_HAL_RTC_DateTimeRef time,
uint8_t value );
Sets the month number
void XEOS_HAL_RTC_DateTimeSetMonth(
XEOS_HAL_RTC_DateTimeRef time,
uint8_t value );
Sets the number of seconds
void XEOS_HAL_RTC_DateTimeSetSeconds(
XEOS_HAL_RTC_DateTimeRef time,
uint8_t value );
Sets the RTC time (writes values back to CMOS)
XEOS_HAL_RTC_DateTimeRef XEOS_HAL_RTC_DateTimeGetSystemTime(
void );
The RTC time object
Sets the weekday
void XEOS_HAL_RTC_DateTimeSetWeekday(
XEOS_HAL_RTC_DateTimeRef time,
uint8_t value );
Sets the year number
void XEOS_HAL_RTC_DateTimeSetYear(
XEOS_HAL_RTC_DateTimeRef time,
uint8_t value );
Disables RTC periodic interrupts (IRQ8)
void XEOS_HAL_RTC_DisablePeriodicInterrupts(
void );
Enables RTC periodic interrupts (IRQ8)
void XEOS_HAL_RTC_EnablePeriodicInterrupts(
void );
Gets the RTC rate
uint8_t XEOS_HAL_RTC_GetRate(
void );
The RTC rate divider
Sets the RTC rate
void XEOS_HAL_RTC_SetRate(
uint8_t rate );
Checks if a RTC update is in progress
bool XEOS_HAL_RTC_UpdateInProgress(
void );
True if a RTC update is in progress, otherwise false
Opaque type for the RTC time object
typedef struct __XEOS_HAL_RTC_DateTime * XEOS_HAL_RTC_DateTimeRef;