mikroSDK Reference Manual
rtc_time_t Struct Reference

Structure representing the RTC time. More...

Data Fields

uint8_t hour
 
uint8_t minute
 
uint8_t second
 

Detailed Description

This structure is used to hold the real-time clock information, including hour, minute, second and it follows a 24-hour format.

Note
Take into consideration that any value can be changed explicitly by the user.

Example

// Define RTC time structure.
static rtc_time_t time;
// Fill structure with default values.
#define time_default_value time.second = 0; \
time.minute = 5; \
time.hour = 0;

Field Documentation

◆ hour

uint8_t rtc_time_t::hour

2-digit format - support values from 00 to 23.

◆ minute

uint8_t rtc_time_t::minute

2-digit format - support values from 00 to 59.

◆ second

uint8_t rtc_time_t::second

2-digit format - support values from 00 to 59.

rtc_time_t
Structure representing the RTC time.
Definition: drv_rtc.h:79