H753_CPP_I2C_DS3231_RTC_01 1.0
STM32H753 DS3231 real-time clock over I2C, with an AT24C32 EEPROM marker that stops the clock being set twice, built on the STM32_DS3231 and STM32_AT24C32 libraries
Loading...
Searching...
No Matches
DS3231_TIME_t Struct Reference

A calendar date and time, always 24-hour clock. More...

#include <DS3231.h>

Data Fields

uint16_t year
 
uint8_t month
 
uint8_t day
 
uint8_t weekday
 
uint8_t hour
 
uint8_t minute
 
uint8_t second
 

Detailed Description

A calendar date and time, always 24-hour clock.

ds3231SetTime() ignores weekday and works it out from the date; ds3231GetTime() fills it in the same way. The chip's own day-of-week register is user-defined, so the driver never relies on it.

Definition at line 109 of file DS3231.h.

Field Documentation

◆ day

uint8_t DS3231_TIME_t::day

Day of the month, 1 to 31 (limited by the month).

Definition at line 112 of file DS3231.h.

Referenced by ds3231EpochToTime(), ds3231GetTime(), ds3231IsTimeValid(), ds3231SetTime(), ds3231TimeToEpoch(), parseBuildTime(), printTime(), and setClockFromBuildTime().

◆ hour

uint8_t DS3231_TIME_t::hour

◆ minute

uint8_t DS3231_TIME_t::minute

◆ month

uint8_t DS3231_TIME_t::month

◆ second

uint8_t DS3231_TIME_t::second

◆ weekday

uint8_t DS3231_TIME_t::weekday

Day of the week, 1 = Monday to 7 = Sunday.

Definition at line 113 of file DS3231.h.

Referenced by ds3231EpochToTime(), ds3231GetTime(), parseBuildTime(), and printTime().

◆ year

uint16_t DS3231_TIME_t::year

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