I2C Firmware Driver Defines; I2C Exported Macros - ST STM32F2 User Manual

Description of stm32f2 hal and low layer drivers
Hide thumbs Also See for STM32F2:
Table of Contents

Advertisement

HAL I2C Generic Driver
24.3

I2C Firmware driver defines

24.3.1
I2C
I2C addressing mode
I2C_ADDRESSINGMODE_7BIT
I2C_ADDRESSINGMODE_10BIT
I2C dual addressing mode
I2C_DUALADDRESS_DISABLE
I2C_DUALADDRESS_ENABLE
I2C duty cycle in fast mode
I2C_DUTYCYCLE_2
I2C_DUTYCYCLE_16_9
I2C Error Code
HAL_I2C_ERROR_NONE
HAL_I2C_ERROR_BERR
HAL_I2C_ERROR_ARLO
HAL_I2C_ERROR_AF
HAL_I2C_ERROR_OVR
HAL_I2C_ERROR_DMA
HAL_I2C_ERROR_TIMEOUT

I2C Exported Macros

__HAL_I2C_RESET_HANDLE_STATE
__HAL_I2C_ENABLE_IT
308/1371
No error
BERR error
ARLO error
AF error
OVR error
DMA transfer error
Timeout Error
Description:
Reset I2C handle state.
Parameters:
__HANDLE__: specifies the I2C Handle.
This parameter can be I2C where x: 1, 2, or
3 to select the I2C peripheral.
Return value:
None
Description:
Enable or disable the specified I2C
interrupts.
Parameters:
__HANDLE__: specifies the I2C Handle.
This parameter can be I2C where x: 1, 2, or
3 to select the I2C peripheral.
__INTERRUPT__: specifies the interrupt
source to enable or disable. This parameter
can be one of the following values:
DocID028236 Rev 2
I2C_IT_BUF: Buffer interrupt enable
UM1940

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF