STM32F469I-Discovery BSP User Manual: STM32469I Discovery LOW LEVEL Private Functions

STM32F469I-Discovery BSP Drivers

STM32F469I-Discovery BSP User Manual
STM32469I Discovery LOW LEVEL Private Functions

Functions

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

Function Documentation

static void I2C1_Error ( uint8_t  Addr) [static]

Manages error callback by re-initializing I2C.

Parameters:
Addr,:I2C Address

Definition at line 711 of file stm32469i_discovery.c.

References heval_I2c1, and I2C1_Init().

Referenced by I2C1_Read(), I2C1_ReadMultiple(), I2C1_Write(), and I2C1_WriteMultiple().

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

Definition at line 702 of file stm32469i_discovery.c.

References heval_I2c1.

Referenced by EEPROM_IO_IsDeviceReady().

static uint8_t I2C1_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 555 of file stm32469i_discovery.c.

References heval_I2c1, and I2C1_Error().

Referenced by TS_IO_Read().

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:
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 586 of file stm32469i_discovery.c.

References heval_I2c1, and I2C1_Error().

Referenced by EEPROM_IO_ReadData(), and TS_IO_ReadMultiple().

static void I2C1_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 529 of file stm32469i_discovery.c.

References heval_I2c1, and I2C1_Error().

Referenced by TS_IO_Write().

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:
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 645 of file stm32469i_discovery.c.

References heval_I2c1, and I2C1_Error().

Referenced by EEPROM_IO_WriteData(), and TS_IO_WriteMultiple().

Generated on Wed Jan 13 2016 10:58:46 for STM32F469I-Discovery BSP User Manual by   doxygen 1.7.6.1