STM32H743I_EVAL BSP User Manual: STM32H743I_EVAL LOW LEVEL Private Function Prototypes

STM32H743I_EVAL BSP

STM32H743I_EVAL BSP User Manual
STM32H743I_EVAL LOW LEVEL Private Function Prototypes

Functions

static void I2Cx_MspInit (void)
 Initializes I2C MSP.
static void I2Cx_Init (void)
 Initializes I2C HAL.
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.
void AUDIO_IO_Init (void)
 Initializes Audio low level.
void AUDIO_IO_DeInit (void)
 Deinitializes Audio low level.
void AUDIO_IO_Write (uint8_t Addr, uint16_t Reg, uint16_t Value)
 Writes a single data.
uint16_t AUDIO_IO_Read (uint8_t Addr, uint16_t Reg)
 Reads a single data.
void AUDIO_IO_Delay (uint32_t Delay)
 AUDIO Codec delay.
void EEPROM_IO_Init (void)
 Initializes peripherals used by the I2C EEPROM driver.
HAL_StatusTypeDef EEPROM_IO_WriteData (uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize)
 Write data to I2C EEPROM driver in using DMA channel.
HAL_StatusTypeDef EEPROM_IO_ReadData (uint16_t DevAddress, uint16_t MemAddress, uint8_t *pBuffer, uint32_t BufferSize)
 Read data from I2C EEPROM driver in using DMA channel.
HAL_StatusTypeDef EEPROM_IO_IsDeviceReady (uint16_t DevAddress, uint32_t Trials)
 Checks if target device is ready for communication.
void TS_IO_Init (void)
 Initialize I2C communication channel from MCU to TouchScreen (TS).
void TS_IO_Write (uint8_t Addr, uint8_t Reg, uint8_t Value)
 Writes single data with I2C communication channel from MCU to TouchScreen.
uint8_t TS_IO_Read (uint8_t Addr, uint8_t Reg)
 Reads single data with I2C communication channel from TouchScreen.
uint16_t TS_IO_ReadMultiple (uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length)
 Reads multiple data with I2C communication channel from TouchScreen.
void TS_IO_WriteMultiple (uint8_t Addr, uint8_t Reg, uint8_t *Buffer, uint16_t Length)
 Writes multiple data with I2C communication channel from MCU to TouchScreen.
void TS_IO_Delay (uint32_t Delay)
 Delay function used in TouchScreen low level driver.
void OTM8009A_IO_Delay (uint32_t Delay)
 OTM8009A delay.

Function Documentation

void AUDIO_IO_DeInit ( void  )

Deinitializes Audio low level.

Return values:
None

Definition at line 1181 of file stm32h743i_eval.c.

void AUDIO_IO_Delay ( uint32_t  Delay)

AUDIO Codec delay.

Parameters:
Delay,:Delay in ms
Return values:
None

Definition at line 1229 of file stm32h743i_eval.c.

void AUDIO_IO_Init ( void  )

Initializes Audio low level.

Return values:
None

Definition at line 1172 of file stm32h743i_eval.c.

References I2Cx_Init().

uint16_t AUDIO_IO_Read ( uint8_t  Addr,
uint16_t  Reg 
)

Reads a single data.

Parameters:
Addr,:I2C address
Reg,:Reg address
Return values:
Datato be read

Definition at line 1209 of file stm32h743i_eval.c.

References I2Cx_ReadMultiple().

void AUDIO_IO_Write ( uint8_t  Addr,
uint16_t  Reg,
uint16_t  Value 
)

Writes a single data.

Parameters:
Addr,:I2C address
Reg,:Reg address
Value,:Data to be written
Return values:
None

Definition at line 1192 of file stm32h743i_eval.c.

References I2Cx_WriteMultiple().

void EEPROM_IO_Init ( void  )

Initializes peripherals used by the I2C EEPROM driver.

Return values:
None

Definition at line 1240 of file stm32h743i_eval.c.

References I2Cx_Init().

Referenced by BSP_EEPROM_Init().

HAL_StatusTypeDef EEPROM_IO_IsDeviceReady ( uint16_t  DevAddress,
uint32_t  Trials 
)

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 1278 of file stm32h743i_eval.c.

References I2Cx_IsDeviceReady().

Referenced by BSP_EEPROM_Init(), and BSP_EEPROM_WaitEepromStandbyState().

HAL_StatusTypeDef EEPROM_IO_ReadData ( uint16_t  DevAddress,
uint16_t  MemAddress,
uint8_t *  pBuffer,
uint32_t  BufferSize 
)

Read data from I2C EEPROM driver in using DMA channel.

Parameters:
DevAddress,:Target device address
MemAddress,:Internal memory address
pBuffer,:Pointer to data buffer
BufferSize,:Amount of data to be read
Return values:
HALstatus

Definition at line 1266 of file stm32h743i_eval.c.

References I2Cx_ReadMultiple().

Referenced by BSP_EEPROM_ReadBuffer().

HAL_StatusTypeDef EEPROM_IO_WriteData ( uint16_t  DevAddress,
uint16_t  MemAddress,
uint8_t *  pBuffer,
uint32_t  BufferSize 
)

Write data to I2C EEPROM driver in using DMA channel.

Parameters:
DevAddress,:Target device address
MemAddress,:Internal memory address
pBuffer,:Pointer to data buffer
BufferSize,:Amount of data to be sent
Return values:
HALstatus

Definition at line 1253 of file stm32h743i_eval.c.

References I2Cx_WriteMultiple().

Referenced by BSP_EEPROM_WritePage().

static void I2Cx_Error ( uint8_t  Addr) [static]

Manages error callback by re-initializing I2C.

Parameters:
Addr,:I2C Address
Return values:
None

Definition at line 962 of file stm32h743i_eval.c.

References heval_I2c, and I2Cx_Init().

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

static void I2Cx_Init ( void  ) [static]

Initializes I2C HAL.

Return values:
None

Definition at line 827 of file stm32h743i_eval.c.

References EVAL_I2Cx, heval_I2c, and I2Cx_MspInit().

Referenced by AUDIO_IO_Init(), EEPROM_IO_Init(), I2Cx_Error(), and TS_IO_Init().

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 952 of file stm32h743i_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 874 of file stm32h743i_eval.c.

References heval_I2c, and I2Cx_Error().

Referenced by 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 to be read
Buffer,:Pointer to data buffer
Length,:Length of the data
Return values:
Numberof read data

Definition at line 899 of file stm32h743i_eval.c.

References EXC7200_I2C_ADDRESS, heval_I2c, and I2Cx_Error().

Referenced by AUDIO_IO_Read(), EEPROM_IO_ReadData(), 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
Return values:
None

Definition at line 854 of file stm32h743i_eval.c.

References heval_I2c, and I2Cx_Error().

Referenced by 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 to be written
Buffer,:The target register value to be written
Length,:buffer size to be written
Return values:
HALstatus

Definition at line 930 of file stm32h743i_eval.c.

References heval_I2c, and I2Cx_Error().

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

void OTM8009A_IO_Delay ( uint32_t  Delay)

OTM8009A delay.

Parameters:
Delay,:Delay in ms

Definition at line 1361 of file stm32h743i_eval.c.

void TS_IO_Delay ( uint32_t  Delay)

Delay function used in TouchScreen low level driver.

Parameters:
Delay,:Delay in ms
Return values:
None

Definition at line 1351 of file stm32h743i_eval.c.

void TS_IO_Init ( void  )

Initialize I2C communication channel from MCU to TouchScreen (TS).

Definition at line 1289 of file stm32h743i_eval.c.

References I2Cx_Init().

uint8_t TS_IO_Read ( uint8_t  Addr,
uint8_t  Reg 
)

Reads single data with I2C communication channel from TouchScreen.

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

Definition at line 1313 of file stm32h743i_eval.c.

References I2Cx_Read().

uint16_t TS_IO_ReadMultiple ( uint8_t  Addr,
uint8_t  Reg,
uint8_t *  Buffer,
uint16_t  Length 
)

Reads multiple data with I2C communication channel from TouchScreen.

Parameters:
Addr,:I2C address
Reg,:Register address
Buffer,:Pointer to data buffer
Length,:Length of the data
Return values:
Numberof read data

Definition at line 1327 of file stm32h743i_eval.c.

References I2Cx_ReadMultiple().

void TS_IO_Write ( uint8_t  Addr,
uint8_t  Reg,
uint8_t  Value 
)

Writes single data with I2C communication channel from MCU to TouchScreen.

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

Definition at line 1301 of file stm32h743i_eval.c.

References I2Cx_Write().

void TS_IO_WriteMultiple ( uint8_t  Addr,
uint8_t  Reg,
uint8_t *  Buffer,
uint16_t  Length 
)

Writes multiple data with I2C communication channel from MCU to TouchScreen.

Parameters:
Addr,:I2C address
Reg,:Register address
Buffer,:Pointer to data buffer
Length,:Length of the data
Return values:
None

Definition at line 1341 of file stm32h743i_eval.c.

References I2Cx_WriteMultiple().

Generated on Wed Aug 23 2017 17:45:14 for STM32H743I_EVAL BSP User Manual by   doxygen 1.7.6.1