Functions
Exported Functions
Collaboration diagram for Exported Functions:

Functions

int32_t BSP_GetTick (void)
 Delay function. More...
 
int32_t BSP_I2C4_DeInit (void)
 DeInitializes I2C HAL. More...
 
int32_t BSP_I2C4_Init (void)
 Initializes I2C HAL. More...
 
int32_t BSP_I2C4_IsReady (uint16_t DevAddr, uint32_t Trials)
 Checks if target device is ready for communication. More...
 
int32_t BSP_I2C4_ReadReg (uint16_t DevAddr, uint16_t Reg, uint8_t *pData, uint16_t Length)
 Read a 8bit register of the device through BUS. More...
 
int32_t BSP_I2C4_ReadReg16 (uint16_t DevAddr, uint16_t Reg, uint8_t *pData, uint16_t Length)
 Read a 16bit register of the device through BUS. More...
 
int32_t BSP_I2C4_WriteReg (uint16_t DevAddr, uint16_t Reg, uint8_t *pData, uint16_t Length)
 Write a 8bit value in a register of the device through BUS. More...
 
int32_t BSP_I2C4_WriteReg16 (uint16_t DevAddr, uint16_t Reg, uint8_t *pData, uint16_t Length)
 Write a 16bit value in a register of the device through BUS. More...
 
__weak HAL_StatusTypeDef MX_I2C4_Init (I2C_HandleTypeDef *hI2c, uint32_t timing)
 MX I2C4 initialization. More...
 

Detailed Description

Function Documentation

◆ BSP_GetTick()

int32_t BSP_GetTick ( void  )

Delay function.

Return values
Tickvalue

Definition at line 483 of file stm32h747i_discovery_bus.c.

◆ BSP_I2C4_DeInit()

int32_t BSP_I2C4_DeInit ( void  )

DeInitializes I2C HAL.

Return values
BSPstatus

Definition at line 241 of file stm32h747i_discovery_bus.c.

◆ BSP_I2C4_Init()

int32_t BSP_I2C4_Init ( void  )

Initializes I2C HAL.

Return values
BSPstatus

Definition at line 190 of file stm32h747i_discovery_bus.c.

◆ BSP_I2C4_IsReady()

int32_t BSP_I2C4_IsReady ( uint16_t  DevAddr,
uint32_t  Trials 
)

Checks if target device is ready for communication.

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

Definition at line 461 of file stm32h747i_discovery_bus.c.

◆ BSP_I2C4_ReadReg()

int32_t BSP_I2C4_ReadReg ( uint16_t  DevAddr,
uint16_t  Reg,
uint8_t *  pData,
uint16_t  Length 
)

Read a 8bit register of the device through BUS.

Parameters
DevAddrDevice address on BUS
RegThe target register address to read
pDataPointer to data buffer
LengthLength of the data
Return values
BSPstatus

Definition at line 351 of file stm32h747i_discovery_bus.c.

◆ BSP_I2C4_ReadReg16()

int32_t BSP_I2C4_ReadReg16 ( uint16_t  DevAddr,
uint16_t  Reg,
uint8_t *  pData,
uint16_t  Length 
)

Read a 16bit register of the device through BUS.

Parameters
DevAddrDevice address on BUS
RegThe target register address to read
pDataPointer to data buffer
LengthLength of the data
Return values
BSPstatus

Definition at line 425 of file stm32h747i_discovery_bus.c.

◆ BSP_I2C4_WriteReg()

int32_t BSP_I2C4_WriteReg ( uint16_t  DevAddr,
uint16_t  Reg,
uint8_t *  pData,
uint16_t  Length 
)

Write a 8bit value in a register of the device through BUS.

Parameters
DevAddrDevice address on Bus.
RegThe target register address to write
pDataThe target register value to be written
Lengthbuffer size to be written
Return values
BSPstatus

Definition at line 314 of file stm32h747i_discovery_bus.c.

◆ BSP_I2C4_WriteReg16()

int32_t BSP_I2C4_WriteReg16 ( uint16_t  DevAddr,
uint16_t  Reg,
uint8_t *  pData,
uint16_t  Length 
)

Write a 16bit value in a register of the device through BUS.

Parameters
DevAddrDevice address on Bus.
RegThe target register address to write
pDataThe target register value to be written
Lengthbuffer size to be written
Return values
BSPstatus

Definition at line 388 of file stm32h747i_discovery_bus.c.

◆ MX_I2C4_Init()

HAL_StatusTypeDef MX_I2C4_Init ( I2C_HandleTypeDef hI2c,
uint32_t  timing 
)

MX I2C4 initialization.

Parameters
hI2cI2C handle
timingI2C timing
Return values
HALstatus

Definition at line 268 of file stm32h747i_discovery_bus.c.



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