Functions
STM32F769I_DISCOVERY_LOW_LEVEL Private Functions
Collaboration diagram for STM32F769I_DISCOVERY_LOW_LEVEL Private Functions:

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...
 

Detailed Description

Function Documentation

◆ I2Cx_Error()

static void I2Cx_Error ( I2C_HandleTypeDef i2c_handler,
uint8_t  Addr 
)
static

Manages error callback by re-initializing I2C.

Parameters
i2c_handler: I2C handler
AddrI2C Address
Return values
None

Definition at line 538 of file stm32f769i_discovery.c.

◆ I2Cx_Init()

static void I2Cx_Init ( I2C_HandleTypeDef i2c_handler)
static

Initializes I2C HAL.

Parameters
i2c_handler: I2C handler
Return values
None

Definition at line 440 of file stm32f769i_discovery.c.

◆ I2Cx_IsDeviceReady()

static HAL_StatusTypeDef I2Cx_IsDeviceReady ( I2C_HandleTypeDef i2c_handler,
uint16_t  DevAddress,
uint32_t  Trials 
)
static

Checks if target device is ready for communication.

Note
This function is used with Memory devices
Parameters
i2c_handler: I2C handler
DevAddressTarget device address
TrialsNumber of trials
Return values
HALstatus

Definition at line 527 of file stm32f769i_discovery.c.

◆ I2Cx_MspInit()

static void I2Cx_MspInit ( I2C_HandleTypeDef i2c_handler)
static

Initializes I2C MSP.

Parameters
i2c_handler: I2C handler
Return values
None

Definition at line 355 of file stm32f769i_discovery.c.

◆ I2Cx_ReadMultiple()

static HAL_StatusTypeDef I2Cx_ReadMultiple ( I2C_HandleTypeDef i2c_handler,
uint8_t  Addr,
uint16_t  Reg,
uint16_t  MemAddress,
uint8_t *  Buffer,
uint16_t  Length 
)
static

Reads multiple data.

Parameters
i2c_handler: I2C handler
AddrI2C address
RegReg address
MemAddressmemory address
BufferPointer to data buffer
LengthLength of the data
Return values
HALstatus

Definition at line 478 of file stm32f769i_discovery.c.

◆ I2Cx_WriteMultiple()

static HAL_StatusTypeDef I2Cx_WriteMultiple ( I2C_HandleTypeDef i2c_handler,
uint8_t  Addr,
uint16_t  Reg,
uint16_t  MemAddress,
uint8_t *  Buffer,
uint16_t  Length 
)
static

Writes a value in a register of the device through BUS in using DMA mode.

Parameters
i2c_handler: I2C handler
AddrDevice address on BUS Bus.
RegThe target register address to write
MemAddressmemory address
BufferThe target register value to be written
Lengthbuffer size to be written
Return values
HALstatus

Definition at line 504 of file stm32f769i_discovery.c.



picovoice_driver
Author(s):
autogenerated on Fri Apr 1 2022 02:15:08