|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Calendar date + time decoded from BCD. More...
#include <ra8_rtc.h>
Data Fields | |
| uint16_t | year |
| 2000..2099. | |
| uint8_t | month |
| 1..12. | |
| uint8_t | day |
| 1..31. | |
| uint8_t | weekday |
| 0 (Sun) . | |
| uint8_t | hour |
| 0..23. | |
| uint8_t | minute |
| 0..59. | |
| uint8_t | second |
| 0..59. | |
Calendar date + time decoded from BCD.
cppcheck cannot see tests/ so it flags every field as unused; each member is read in ra8_rtc_get and ra8_rtc_set in libs/ra8_hal/src/ra8_rtc.c.
| uint8_t ra8_rtc_datetime_t::day |
| uint8_t ra8_rtc_datetime_t::hour |
0..23.
Definition at line 36 of file ra8_rtc.h.
Referenced by internal_lpm_dpsby1_add_offset(), internal_lpm_dpsby2_add_offset(), internal_lpm_dpsby3_add_offset(), internal_lpm_swstd_add_offset(), internal_rtc_demo_arm_alarm(), ra8_rtc_get(), ra8_rtc_set(), and ra8_rtc_set_alarm().
| uint8_t ra8_rtc_datetime_t::minute |
0..59.
Definition at line 37 of file ra8_rtc.h.
Referenced by internal_lpm_dpsby1_add_offset(), internal_lpm_dpsby2_add_offset(), internal_lpm_dpsby3_add_offset(), internal_lpm_swstd_add_offset(), internal_rtc_demo_arm_alarm(), ra8_rtc_get(), ra8_rtc_set(), and ra8_rtc_set_alarm().
| uint8_t ra8_rtc_datetime_t::month |
| uint8_t ra8_rtc_datetime_t::second |
0..59.
Definition at line 38 of file ra8_rtc.h.
Referenced by internal_lpm_dpsby1_add_offset(), internal_lpm_dpsby2_add_offset(), internal_lpm_dpsby3_add_offset(), internal_lpm_swstd_add_offset(), internal_rtc_demo_arm_alarm(), ra8_rtc_get(), ra8_rtc_set(), and ra8_rtc_set_alarm().
| uint8_t ra8_rtc_datetime_t::weekday |
0 (Sun) .
. 6 (Sat).
Definition at line 35 of file ra8_rtc.h.
Referenced by ra8_rtc_get(), and ra8_rtc_set().
| uint16_t ra8_rtc_datetime_t::year |
2000..2099.
Definition at line 32 of file ra8_rtc.h.
Referenced by ra8_rtc_get(), and ra8_rtc_set().