STM32F723E-Discovery BSP User Manual
|
Functions | |
void | BSP_COM_Init (COM_TypeDef COM, UART_HandleTypeDef *huart) |
Configures COM port. | |
void | BSP_COM_DeInit (COM_TypeDef COM, UART_HandleTypeDef *huart) |
DeInit COM port. | |
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 void | I2Cx_Error (I2C_HandleTypeDef *i2c_handler, uint8_t Addr) |
Manages error callback by re-initializing I2C. |
Function Documentation
void BSP_COM_DeInit | ( | COM_TypeDef | COM, |
UART_HandleTypeDef * | huart | ||
) |
DeInit COM port.
- Parameters:
-
COM,: COM port to be configured. This parameter can be one of the following values: - COM1
- COM2
huart,: Pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified USART peripheral.
- Return values:
-
None
Definition at line 407 of file stm32f723e_discovery.c.
References COM_USART, and DISCOVERY_COMx_CLK_DISABLE.
void BSP_COM_Init | ( | COM_TypeDef | COM, |
UART_HandleTypeDef * | huart | ||
) |
Configures COM port.
- Parameters:
-
COM,: COM port to be configured. This parameter can be one of the following values: - COM1
huart,: Pointer to a UART_HandleTypeDef structure that contains the configuration information for the specified USART peripheral.
- Return values:
-
None
Definition at line 367 of file stm32f723e_discovery.c.
References COM_RX_AF, COM_RX_PIN, COM_RX_PORT, COM_TX_AF, COM_TX_PIN, COM_TX_PORT, COM_USART, DISCOVERY_COMx_CLK_ENABLE, DISCOVERY_COMx_RX_GPIO_CLK_ENABLE, and DISCOVERY_COMx_TX_GPIO_CLK_ENABLE.
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 647 of file stm32f723e_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 556 of file stm32f723e_discovery.c.
References DISCOVERY_AUDIO_I2Cx, DISCOVERY_EXT_I2Cx, hI2cAudioHandler, hI2cTsHandler, I2Cx_MspInit(), and TS_I2Cx.
Referenced by AUDIO_IO_Init(), I2Cx_Error(), and TS_IO_Init().
static void I2Cx_MspInit | ( | I2C_HandleTypeDef * | i2c_handler | ) | [static] |
Initializes I2C MSP.
- Parameters:
-
i2c_handler : I2C handler
- Return values:
-
None
Definition at line 433 of file stm32f723e_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, hI2cAudioHandler, hI2cTsHandler, TS_I2Cx_CLK_ENABLE, TS_I2Cx_ER_IRQn, TS_I2Cx_EV_IRQn, TS_I2Cx_FORCE_RESET, TS_I2Cx_RELEASE_RESET, TS_I2Cx_SCL_AF, TS_I2Cx_SCL_GPIO_CLK_ENABLE, TS_I2Cx_SCL_GPIO_PORT, TS_I2Cx_SCL_PIN, TS_I2Cx_SDA_AF, TS_I2Cx_SDA_GPIO_CLK_ENABLE, TS_I2Cx_SDA_GPIO_PORT, and TS_I2Cx_SDA_PIN.
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 599 of file stm32f723e_discovery.c.
References I2Cx_Error().
Referenced by AUDIO_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 625 of file stm32f723e_discovery.c.
References I2Cx_Error().
Referenced by AUDIO_IO_Write(), TS_IO_Write(), and TS_IO_WriteMultiple().
Generated on Mon Jan 2 2017 09:52:50 for STM32F723E-Discovery BSP User Manual by 1.7.6.1