Functions | |
static void | I2Cx_Error (I2C_HandleTypeDef *i2c_handler, uint8_t Addr) |
Manages error callback by re-initializing I2C. More... | |
static void | I2Cx_Init (I2C_HandleTypeDef *i2c_handler) |
Initializes I2C HAL. More... | |
static HAL_StatusTypeDef | I2Cx_IsDeviceReady (I2C_HandleTypeDef *i2c_handler, uint16_t DevAddress, uint32_t Trials) |
Checks if target device is ready for communication. More... | |
static void | I2Cx_MspInit (I2C_HandleTypeDef *i2c_handler) |
Initializes I2C MSP. More... | |
static HAL_StatusTypeDef | I2Cx_ReadMultiple (I2C_HandleTypeDef *i2c_handler, uint8_t Addr, uint16_t Reg, uint16_t MemAddress, uint8_t *Buffer, uint16_t Length) |
Reads multiple data. More... | |
static HAL_StatusTypeDef | I2Cx_WriteMultiple (I2C_HandleTypeDef *i2c_handler, uint8_t Addr, uint16_t Reg, uint16_t MemAddress, uint8_t *Buffer, uint16_t Length) |
Writes a value in a register of the device through BUS in using DMA mode. More... | |
|
static |
Manages error callback by re-initializing I2C.
i2c_handler | : I2C handler |
Addr | I2C Address |
None |
Definition at line 538 of file stm32f769i_discovery.c.
|
static |
Initializes I2C HAL.
i2c_handler | : I2C handler |
None |
Definition at line 440 of file stm32f769i_discovery.c.
|
static |
Checks if target device is ready for communication.
i2c_handler | : I2C handler |
DevAddress | Target device address |
Trials | Number of trials |
HAL | status |
Definition at line 527 of file stm32f769i_discovery.c.
|
static |
Initializes I2C MSP.
i2c_handler | : I2C handler |
None |
Definition at line 355 of file stm32f769i_discovery.c.
|
static |
Reads multiple data.
i2c_handler | : I2C handler |
Addr | I2C address |
Reg | Reg address |
MemAddress | memory address |
Buffer | Pointer to data buffer |
Length | Length of the data |
HAL | status |
Definition at line 478 of file stm32f769i_discovery.c.
|
static |
Writes a value in a register of the device through BUS in using DMA mode.
i2c_handler | : I2C handler |
Addr | Device address on BUS Bus. |
Reg | The target register address to write |
MemAddress | memory address |
Buffer | The target register value to be written |
Length | buffer size to be written |
HAL | status |
Definition at line 504 of file stm32f769i_discovery.c.