Core2 for AWS IoT EduKit BSP 1.5.1
BM8563_SetTime
void BM8563_SetTime(rtc_date_t *data)
Sets the date and time on the BM8563.
Definition: bm8563.c:42
The member defintions of the BM8563 RTC date.
Definition: bm8563.h:13

Sets the date and time on the BM8563.

Example:

Set the date and time to September 30, 2020 13:40:10.

date.year = 2020;
date.month = 9;
date.day = 30;
date.hour = 13;
date.minute = 40;
date.second = 10;
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
[in]dataDesired date and time.