函数 |
| static void | I2C_DMAMasterTransmitCplt (DMA_HandleTypeDef *hdma) |
| | DMA I2C 主机发送过程完成回调函数。
|
| static void | I2C_DMAMasterReceiveCplt (DMA_HandleTypeDef *hdma) |
| | DMA I2C 主机接收过程完成回调函数。
|
| static void | I2C_DMASlaveTransmitCplt (DMA_HandleTypeDef *hdma) |
| | DMA I2C 从机发送过程完成回调函数。
|
| static void | I2C_DMASlaveReceiveCplt (DMA_HandleTypeDef *hdma) |
| | DMA I2C 从机接收过程完成回调函数。
|
| static void | I2C_DMAError (DMA_HandleTypeDef *hdma) |
| | DMA I2C 通信错误回调函数。
|
| static void | I2C_DMAAbort (DMA_HandleTypeDef *hdma) |
| | DMA I2C 通信中止回调函数(应在 DMA 中止过程结束时调用)。
|
| static void | I2C_ITAddrCplt (I2C_HandleTypeDef *hi2c, uint32_t ITFlags) |
| | I2C 地址匹配完成过程回调函数。
|
| static void | I2C_ITMasterSeqCplt (I2C_HandleTypeDef *hi2c) |
| | I2C 主机序列传输完成过程。
|
| static void | I2C_ITSlaveSeqCplt (I2C_HandleTypeDef *hi2c) |
| | I2C 从机序列传输完成过程。
|
| static void | I2C_ITMasterCplt (I2C_HandleTypeDef *hi2c, uint32_t ITFlags) |
| | I2C 主机传输完成过程。
|
| static void | I2C_ITSlaveCplt (I2C_HandleTypeDef *hi2c, uint32_t ITFlags) |
| | I2C 从机传输完成过程。
|
| static void | I2C_ITListenCplt (I2C_HandleTypeDef *hi2c, uint32_t ITFlags) |
| | I2C 监听完成过程。
|
| static void | I2C_ITError (I2C_HandleTypeDef *hi2c, uint32_t ErrorCode) |
| | I2C 中断错误处理过程。
|
| static HAL_StatusTypeDef | I2C_RequestMemoryWrite (I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) |
| | 主机发送目标设备地址,后跟内部存储器地址以进行写请求。
|
| static HAL_StatusTypeDef | I2C_RequestMemoryRead (I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint16_t MemAddress, uint16_t MemAddSize, uint32_t Timeout, uint32_t Tickstart) |
| | 主机发送目标设备地址,后跟内部存储器地址以进行读请求。
|
| static HAL_StatusTypeDef | I2C_Master_ISR_IT (struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uint32_t ITSources) |
| | 处理中断模式下主机模式中断标志的中断服务子程序。
|
| static HAL_StatusTypeDef | I2C_Mem_ISR_IT (struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uint32_t ITSources) |
| | 处理中断模式下存储器模式中断标志的中断服务子程序。
|
| static HAL_StatusTypeDef | I2C_Slave_ISR_IT (struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uint32_t ITSources) |
| | 处理中断模式下从机模式中断标志的中断服务子程序。
|
| static HAL_StatusTypeDef | I2C_Master_ISR_DMA (struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uint32_t ITSources) |
| | 处理 DMA 模式下主机模式中断标志的中断服务子程序。
|
| static HAL_StatusTypeDef | I2C_Mem_ISR_DMA (struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uint32_t ITSources) |
| | 处理 DMA 模式下存储器模式中断标志的中断服务子程序。
|
| static HAL_StatusTypeDef | I2C_Slave_ISR_DMA (struct __I2C_HandleTypeDef *hi2c, uint32_t ITFlags, uint32_t ITSources) |
| | 处理 DMA 模式下从机模式中断标志的中断服务子程序。
|
| static HAL_StatusTypeDef | I2C_WaitOnFlagUntilTimeout (I2C_HandleTypeDef *hi2c, uint32_t Flag, FlagStatus Status, uint32_t Timeout, uint32_t Tickstart) |
| | 此函数处理 I2C 通信超时。
|
| static HAL_StatusTypeDef | I2C_WaitOnTXISFlagUntilTimeout (I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) |
| | 此函数处理 I2C 通信中 TXIS 标志的特定使用超时。
|
| static HAL_StatusTypeDef | I2C_WaitOnRXNEFlagUntilTimeout (I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) |
| | 此函数处理 I2C 通信中 RXNE 标志的特定使用超时。
|
| static HAL_StatusTypeDef | I2C_WaitOnSTOPFlagUntilTimeout (I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) |
| | 此函数处理 I2C 通信中 STOP 标志的特定使用超时。
|
| static HAL_StatusTypeDef | I2C_IsErrorOccurred (I2C_HandleTypeDef *hi2c, uint32_t Timeout, uint32_t Tickstart) |
| | 此函数处理 I2C 通信期间的错误检测。
|
| static void | I2C_Enable_IRQ (I2C_HandleTypeDef *hi2c, uint16_t InterruptRequest) |
| | 管理中断的使能。
|
| static void | I2C_Disable_IRQ (I2C_HandleTypeDef *hi2c, uint16_t InterruptRequest) |
| | 管理中断的禁用。
|
| static void | I2C_TreatErrorCallback (I2C_HandleTypeDef *hi2c) |
| | I2C 错误回调函数处理。
|
| static void | I2C_Flush_TXDR (I2C_HandleTypeDef *hi2c) |
| | I2C 发送数据寄存器清空过程。
|
| static void | I2C_TransferConfig (I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t Size, uint32_t Mode, uint32_t Request) |
| | 处理启动传输或传输期间(TC 或 TCR 标志置位) |