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

#include <AT24C32.h>

Data Fields

I2C_HandleTypeDef * hi2c
 
uint16_t deviceAddress
 
uint8_t maxAttempts
 
HAL_StatusTypeDef lastStatus
 

Detailed Description

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

Definition at line 108 of file AT24C32.h.

Field Documentation

◆ deviceAddress

uint16_t AT24C32_t::deviceAddress

8-bit (write) I2C address: 0x50 plus the address pins, shifted left.

Definition at line 110 of file AT24C32.h.

Referenced by at24c32Init().

◆ hi2c

I2C_HandleTypeDef* AT24C32_t::hi2c

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

Definition at line 109 of file AT24C32.h.

Referenced by at24c32Init().

◆ lastStatus

HAL_StatusTypeDef AT24C32_t::lastStatus

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

Definition at line 112 of file AT24C32.h.

Referenced by at24c32Init(), and main().

◆ maxAttempts

uint8_t AT24C32_t::maxAttempts

Attempts per transaction before Error_Handler() is called.

Definition at line 111 of file AT24C32.h.

Referenced by at24c32Init().


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