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_t Struct Reference

#include <DS3231.h>

Data Fields

I2C_HandleTypeDef * hi2c
 
uint8_t maxAttempts
 
HAL_StatusTypeDef lastStatus
 

Detailed Description

One DS3231 on one I2C bus. Fill it in with ds3231Init(); do not edit the members by hand.

Definition at line 120 of file DS3231.h.

Field Documentation

◆ hi2c

I2C_HandleTypeDef* DS3231_t::hi2c

The HAL I2C handle the chip is on (from CubeMX, for example hi2c1).

Definition at line 121 of file DS3231.h.

Referenced by ds3231Init().

◆ lastStatus

HAL_StatusTypeDef DS3231_t::lastStatus

HAL status of the most recent failed attempt (HAL_OK if none yet).

Definition at line 123 of file DS3231.h.

Referenced by ds3231Init(), and main().

◆ maxAttempts

uint8_t DS3231_t::maxAttempts

Attempts per transaction before Error_Handler() is called.

Definition at line 122 of file DS3231.h.

Referenced by ds3231Init().


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