STM32469I_EVAL BSP User Manual: STM32469I EVAL LOW LEVEL Private Functions

STM32469I EVAL BSP Drivers

STM32469I_EVAL BSP User Manual
STM32469I EVAL LOW LEVEL Private Functions

Functions

static void I2Cx_Write (uint8_t Addr, uint8_t Reg, uint8_t Value)
 Writes a single data.
static uint8_t I2Cx_Read (uint8_t Addr, uint8_t Reg)
 Reads a single data.
static HAL_StatusTypeDef I2Cx_ReadMultiple (uint8_t Addr, uint16_t Reg, uint16_t MemAddress, uint8_t *Buffer, uint16_t Length)
 Reads multiple data.
static HAL_StatusTypeDef I2Cx_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.
static HAL_StatusTypeDef I2Cx_IsDeviceReady (uint16_t DevAddress, uint32_t Trials)
 Checks if target device is ready for communication.
static void I2Cx_Error (uint8_t Addr)
 Manages error callback by re-initializing I2C.

Function Documentation

static void I2Cx_Error ( uint8_t  Addr) [static]

Manages error callback by re-initializing I2C.

Parameters:
Addr,:I2C Address

Definition at line 830 of file stm32469i_eval.c.

References heval_I2c, and I2Cx_Init().

Referenced by I2Cx_Read(), I2Cx_ReadMultiple(), I2Cx_Write(), and I2Cx_WriteMultiple().

static HAL_StatusTypeDef I2Cx_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:
DevAddress,:Target device address
Trials,:Number of trials
Return values:
HALstatus

Definition at line 821 of file stm32469i_eval.c.

References heval_I2c.

Referenced by EEPROM_IO_IsDeviceReady().

static uint8_t I2Cx_Read ( uint8_t  Addr,
uint8_t  Reg 
) [static]

Reads a single data.

Parameters:
Addr,:I2C address
Reg,:Register address
Return values:
Readdata

Definition at line 724 of file stm32469i_eval.c.

References heval_I2c, and I2Cx_Error().

Referenced by IOE_Read(), and TS_IO_Read().

static HAL_StatusTypeDef I2Cx_ReadMultiple ( uint8_t  Addr,
uint16_t  Reg,
uint16_t  MemAddress,
uint8_t *  Buffer,
uint16_t  Length 
) [static]

Reads multiple data.

Parameters:
Addr,:I2C address
Reg,:Reg address
MemAddress,:memory address
Buffer,:Pointer to data buffer
Length,:Length of the data
Return values:
HALstatus

Definition at line 755 of file stm32469i_eval.c.

References heval_I2c, and I2Cx_Error().

Referenced by AUDIO_IO_Read(), CAMERA_IO_Read(), EEPROM_IO_ReadData(), IOE_ReadMultiple(), and TS_IO_ReadMultiple().

static void I2Cx_Write ( uint8_t  Addr,
uint8_t  Reg,
uint8_t  Value 
) [static]

Writes a single data.

Parameters:
Addr,:I2C address
Reg,:Register address
Value,:Data to be written

Definition at line 698 of file stm32469i_eval.c.

References heval_I2c, and I2Cx_Error().

Referenced by IOE_Write(), and TS_IO_Write().

static HAL_StatusTypeDef I2Cx_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:
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
Return values:
HALstatus

Definition at line 789 of file stm32469i_eval.c.

References heval_I2c, and I2Cx_Error().

Referenced by AUDIO_IO_Write(), CAMERA_IO_Write(), EEPROM_IO_WriteData(), IOE_WriteMultiple(), and TS_IO_WriteMultiple().

Generated on Tue Jan 12 2016 17:51:25 for STM32469I_EVAL BSP User Manual by   doxygen 1.7.6.1