Functions | |
| HAL_StatusTypeDef | HAL_I2C_Init (I2C_HandleTypeDef *hi2c) |
| Initializes the I2C according to the specified parameters in the I2C_InitTypeDef and initialize the associated handle. More... | |
| HAL_StatusTypeDef | HAL_I2C_DMA_Init (I2C_HandleTypeDef *hi2c, struct dma_config *dma_rx, struct dma_config *dma_tx) |
| Initializes the I2C according to the specified parameters with dma mode in the I2C_InitTypeDef and initialize the associated handle. More... | |
| HAL_StatusTypeDef | HAL_I2C_DeInit (I2C_HandleTypeDef *hi2c) |
| DeInitialize the I2C peripheral. More... | |
| void | HAL_I2C_MspInit (I2C_HandleTypeDef *hi2c) |
| void | HAL_I2C_MspDeInit (I2C_HandleTypeDef *hi2c) |
| HAL_StatusTypeDef HAL_I2C_DeInit | ( | I2C_HandleTypeDef * | hi2c | ) |
DeInitialize the I2C peripheral.
| hi2c | Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C. |
| HAL | status |
| HAL_StatusTypeDef HAL_I2C_DMA_Init | ( | I2C_HandleTypeDef * | hi2c, |
| struct dma_config * | dma_rx, | ||
| struct dma_config * | dma_tx | ||
| ) |
Initializes the I2C according to the specified parameters with dma mode in the I2C_InitTypeDef and initialize the associated handle.
| hi2c | Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C. |
| dma_rx | I2C received DMA configure |
| dma_tx | I2C transmit DMA configure |
| HAL | status |
| HAL_StatusTypeDef HAL_I2C_Init | ( | I2C_HandleTypeDef * | hi2c | ) |
Initializes the I2C according to the specified parameters in the I2C_InitTypeDef and initialize the associated handle.
| hi2c | Pointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C. |
| HAL | status |