STM32F769I-Discovery BSP User Manual
|
Functions | |
static void | I2Cx_MspInit (I2C_HandleTypeDef *i2c_handler) |
Initializes I2C MSP. | |
static void | I2Cx_Init (I2C_HandleTypeDef *i2c_handler) |
Initializes I2C HAL. | |
static HAL_StatusTypeDef | I2Cx_ReadMultiple (I2C_HandleTypeDef *i2c_handler, uint8_t Addr, uint16_t Reg, uint16_t MemAddress, uint8_t *Buffer, uint16_t Length) |
Reads multiple data. | |
static HAL_StatusTypeDef | I2Cx_WriteMultiple (I2C_HandleTypeDef *i2c_handler, 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 (I2C_HandleTypeDef *i2c_handler, uint16_t DevAddress, uint32_t Trials) |
Checks if target device is ready for communication. | |
static void | I2Cx_Error (I2C_HandleTypeDef *i2c_handler, uint8_t Addr) |
Manages error callback by re-initializing I2C. |
Function Documentation
static void I2Cx_Error | ( | I2C_HandleTypeDef * | i2c_handler, |
uint8_t | Addr | ||
) | [static] |
Manages error callback by re-initializing I2C.
- Parameters:
-
i2c_handler : I2C handler Addr,: I2C Address
- Return values:
-
None
Definition at line 533 of file stm32f769i_discovery.c.
References I2Cx_Init().
Referenced by I2Cx_ReadMultiple(), and I2Cx_WriteMultiple().
static void I2Cx_Init | ( | I2C_HandleTypeDef * | i2c_handler | ) | [static] |
Initializes I2C HAL.
- Parameters:
-
i2c_handler : I2C handler
- Return values:
-
None
Definition at line 435 of file stm32f769i_discovery.c.
References DISCOVERY_AUDIO_I2Cx, DISCOVERY_EXT_I2Cx, hI2cAudioHandler, and I2Cx_MspInit().
Referenced by AUDIO_IO_Init(), EEPROM_IO_Init(), HDMI_IO_Init(), I2Cx_Error(), and TS_IO_Init().
static HAL_StatusTypeDef I2Cx_IsDeviceReady | ( | I2C_HandleTypeDef * | i2c_handler, |
uint16_t | DevAddress, | ||
uint32_t | Trials | ||
) | [static] |
Checks if target device is ready for communication.
- Note:
- This function is used with Memory devices
- Parameters:
-
i2c_handler : I2C handler DevAddress,: Target device address Trials,: Number of trials
- Return values:
-
HAL status
Definition at line 522 of file stm32f769i_discovery.c.
Referenced by EEPROM_IO_IsDeviceReady().
static void I2Cx_MspInit | ( | I2C_HandleTypeDef * | i2c_handler | ) | [static] |
Initializes I2C MSP.
- Parameters:
-
i2c_handler : I2C handler
- Return values:
-
None
Definition at line 350 of file stm32f769i_discovery.c.
References DISCOVERY_AUDIO_I2Cx_CLK_ENABLE, DISCOVERY_AUDIO_I2Cx_ER_IRQn, DISCOVERY_AUDIO_I2Cx_EV_IRQn, DISCOVERY_AUDIO_I2Cx_FORCE_RESET, DISCOVERY_AUDIO_I2Cx_RELEASE_RESET, DISCOVERY_AUDIO_I2Cx_SCL_AF, DISCOVERY_AUDIO_I2Cx_SCL_GPIO_CLK_ENABLE, DISCOVERY_AUDIO_I2Cx_SCL_GPIO_PORT, DISCOVERY_AUDIO_I2Cx_SCL_PIN, DISCOVERY_AUDIO_I2Cx_SDA_AF, DISCOVERY_AUDIO_I2Cx_SDA_GPIO_CLK_ENABLE, DISCOVERY_AUDIO_I2Cx_SDA_GPIO_PORT, DISCOVERY_AUDIO_I2Cx_SDA_PIN, DISCOVERY_EXT_I2Cx_CLK_ENABLE, DISCOVERY_EXT_I2Cx_ER_IRQn, DISCOVERY_EXT_I2Cx_EV_IRQn, DISCOVERY_EXT_I2Cx_FORCE_RESET, DISCOVERY_EXT_I2Cx_RELEASE_RESET, DISCOVERY_EXT_I2Cx_SCL_PIN, DISCOVERY_EXT_I2Cx_SCL_SDA_AF, DISCOVERY_EXT_I2Cx_SCL_SDA_GPIO_CLK_ENABLE, DISCOVERY_EXT_I2Cx_SCL_SDA_GPIO_PORT, DISCOVERY_EXT_I2Cx_SDA_PIN, and hI2cAudioHandler.
Referenced by I2Cx_Init().
static HAL_StatusTypeDef I2Cx_ReadMultiple | ( | I2C_HandleTypeDef * | i2c_handler, |
uint8_t | Addr, | ||
uint16_t | Reg, | ||
uint16_t | MemAddress, | ||
uint8_t * | Buffer, | ||
uint16_t | Length | ||
) | [static] |
Reads multiple data.
- Parameters:
-
i2c_handler : I2C handler Addr,: I2C address Reg,: Reg address MemAddress,: memory address Buffer,: Pointer to data buffer Length,: Length of the data
- Return values:
-
HAL status
Definition at line 473 of file stm32f769i_discovery.c.
References I2Cx_Error().
Referenced by AUDIO_IO_Read(), EEPROM_IO_ReadData(), HDMI_IO_Read(), TS_IO_Read(), and TS_IO_ReadMultiple().
static HAL_StatusTypeDef I2Cx_WriteMultiple | ( | I2C_HandleTypeDef * | i2c_handler, |
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:
-
i2c_handler : I2C handler 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:
-
HAL status
Definition at line 499 of file stm32f769i_discovery.c.
References I2Cx_Error().
Referenced by AUDIO_IO_Write(), EEPROM_IO_WriteData(), HDMI_IO_Write(), TS_IO_Write(), and TS_IO_WriteMultiple().
Generated on Fri Dec 30 2016 18:30:07 for STM32F769I-Discovery BSP User Manual by
