思澈科技软件开发工具包  2.20
Initialization and de-initialization functions

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)
 

Detailed Description

Function Documentation

◆ HAL_I2C_DeInit()

HAL_StatusTypeDef HAL_I2C_DeInit ( I2C_HandleTypeDef hi2c)

DeInitialize the I2C peripheral.

Parameters
hi2cPointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C.
Return values
HALstatus

◆ HAL_I2C_DMA_Init()

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.

Parameters
hi2cPointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C.
dma_rxI2C received DMA configure
dma_txI2C transmit DMA configure
Return values
HALstatus

◆ HAL_I2C_Init()

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.

Parameters
hi2cPointer to a I2C_HandleTypeDef structure that contains the configuration information for the specified I2C.
Return values
HALstatus