GPS Device
Loading...
Searching...
No Matches
CALENDAR_ts Struct Reference

Holds a calendar date (year, month, day, weekday). More...

#include <stm32f401re_rtc.h>

Public Attributes

uint16_t year
WEEK_DAYS_te week_days
MONTHS_te months
uint8_t date

Detailed Description

Holds a calendar date (year, month, day, weekday).

Used by rtc_set_calendar. The year is a full four-digit year (e.g. 2026); the driver subtracts 2000 before writing to the RTC, so years before 2000 or after 2099 are not supported.

Definition at line 110 of file stm32f401re_rtc.h.

Member Data Documentation

◆ year

uint16_t CALENDAR_ts::year

Full year (2000–2099).

Definition at line 111 of file stm32f401re_rtc.h.

◆ week_days

WEEK_DAYS_te CALENDAR_ts::week_days

Day of the week.

Definition at line 112 of file stm32f401re_rtc.h.

◆ months

MONTHS_te CALENDAR_ts::months

Month of the year.

Definition at line 113 of file stm32f401re_rtc.h.

◆ date

uint8_t CALENDAR_ts::date

Day of the month (1–31).

Definition at line 114 of file stm32f401re_rtc.h.


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