Functions
STM32469I Discovery LOW LEVEL Private Functions
Collaboration diagram for STM32469I Discovery LOW LEVEL Private Functions:

Functions

static void I2C1_Error (uint8_t Addr)
 Manages error callback by re-initializing I2C. More...
 
static HAL_StatusTypeDef I2C1_IsDeviceReady (uint16_t DevAddress, uint32_t Trials)
 Checks if target device is ready for communication. More...
 
static uint8_t I2C1_Read (uint8_t Addr, uint8_t Reg)
 Reads a single data. More...
 
static HAL_StatusTypeDef I2C1_ReadMultiple (uint8_t Addr, uint16_t Reg, uint16_t MemAddress, uint8_t *Buffer, uint16_t Length)
 Reads multiple data. More...
 
static void I2C1_Write (uint8_t Addr, uint8_t Reg, uint8_t Value)
 Writes a single data. More...
 
static HAL_StatusTypeDef I2C1_WriteMultiple (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

◆ I2C1_Error()

static void I2C1_Error ( uint8_t  Addr)
static

Manages error callback by re-initializing I2C.

Parameters
AddrI2C Address

Definition at line 709 of file stm32469i_discovery.c.

◆ I2C1_IsDeviceReady()

static HAL_StatusTypeDef I2C1_IsDeviceReady ( uint16_t  DevAddress,
uint32_t  Trials 
)
static

Checks if target device is ready for communication.

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

Definition at line 700 of file stm32469i_discovery.c.

◆ I2C1_Read()

static uint8_t I2C1_Read ( uint8_t  Addr,
uint8_t  Reg 
)
static

Reads a single data.

Parameters
AddrI2C address
RegRegister address
Return values
Readdata

Definition at line 553 of file stm32469i_discovery.c.

◆ I2C1_ReadMultiple()

static HAL_StatusTypeDef I2C1_ReadMultiple ( uint8_t  Addr,
uint16_t  Reg,
uint16_t  MemAddress,
uint8_t *  Buffer,
uint16_t  Length 
)
static

Reads multiple data.

Parameters
AddrI2C address
RegReg address
MemAddressmemory address
BufferPointer to data buffer
LengthLength of the data
Return values
HALstatus

Definition at line 584 of file stm32469i_discovery.c.

◆ I2C1_Write()

static void I2C1_Write ( uint8_t  Addr,
uint8_t  Reg,
uint8_t  Value 
)
static

Writes a single data.

Parameters
AddrI2C address
RegRegister address
ValueData to be written

Definition at line 527 of file stm32469i_discovery.c.

◆ I2C1_WriteMultiple()

static HAL_StatusTypeDef I2C1_WriteMultiple ( 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
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 643 of file stm32469i_discovery.c.



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