ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_rtc_datetime_t Struct Reference

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.

Detailed Description

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.

Definition at line 31 of file ra8_rtc.h.

Field Documentation

◆ day

uint8_t ra8_rtc_datetime_t::day

1..31.

Definition at line 34 of file ra8_rtc.h.

Referenced by ra8_rtc_get(), and ra8_rtc_set().

◆ hour

◆ minute

◆ month

uint8_t ra8_rtc_datetime_t::month

1..12.

Definition at line 33 of file ra8_rtc.h.

Referenced by ra8_rtc_get(), and ra8_rtc_set().

◆ second

◆ weekday

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().

◆ year

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().


The documentation for this struct was generated from the following file: