跳转至

CFBD_ST_I2CPrivate

Backend-private state for the STM32 I2C implementation. More...

#include <i2c_stm_impl.h>

Public Attributes

Name
I2C_HandleTypeDef * hi2c
Pointer to the HAL I2C_HandleTypeDef instance.
GPIO_TypeDef * scl_port
GPIO port for the SCL line.
uint16_t scl_pin
GPIO pin number (mask) for SCL.
GPIO_TypeDef * sda_port
GPIO port for the SDA line.
uint16_t sda_pin
GPIO pin number (mask) for SDA.
int last_err
Last backend error code (implementation-defined).

Detailed Description

struct CFBD_ST_I2CPrivate;

Backend-private state for the STM32 I2C implementation.

Stores references to the HAL I2C peripheral instance and the GPIO pins used for SCL and SDA. The last_err field is available to record the most recent backend error and may be consulted by the public get_error operation in [CFBD_I2COperations](Classes/structCFBD__I2COperations.md).

Public Attributes Documentation

variable hi2c

I2C_HandleTypeDef * hi2c;

Pointer to the HAL I2C_HandleTypeDef instance.

variable scl_port

GPIO_TypeDef * scl_port;

GPIO port for the SCL line.

variable scl_pin

uint16_t scl_pin;

GPIO pin number (mask) for SCL.

variable sda_port

GPIO_TypeDef * sda_port;

GPIO port for the SDA line.

variable sda_pin

uint16_t sda_pin;

GPIO pin number (mask) for SDA.

variable last_err

int last_err;

Last backend error code (implementation-defined).


Updated on 2026-02-03 at 13:21:55 +0000