void BM8563_GetTime(rtc_date_t *data)
Retrieves the date and time on the BM8563.
Definition: bm8563.c:56
The member defintions of the BM8563 RTC date.
Definition: bm8563.h:13
Retrieves the date and time on the BM8563.
Example:
Get the current date and time and print it out.
printf("Date: %d-%02d-%02d Time: %02d:%02d:%02d",
uint16_t year
Date year.
Definition: bm8563.h:15
uint8_t second
Time second.
Definition: bm8563.h:20
uint8_t minute
Time minute.
Definition: bm8563.h:19
uint8_t day
Date day.
Definition: bm8563.h:17
uint8_t hour
Time hour.
Definition: bm8563.h:18
uint8_t month
Date month.
Definition: bm8563.h:16
- Parameters
-
| [out] | data | The current date and time. |