EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Inter-integrated circuit interface (I2C)
UM1581
268/584
DocID023800 Rev 1
13.2.13.2 I2C_ReceiveData
Function Name
uint8_t I2C_ReceiveData ( I2C_TypeDef * I2Cx)
Function Description
Returns the most recent received data by the I2Cx peripheral.
Parameters
I2Cx : where x can be 1 or 2 to select the I2C peripheral.
Return values
The value of the received data.
Notes
None.
13.2.14 DMA transfers management functions
13.2.14.1 I2C_DMACmd
Function Name
void I2C_DMACmd ( I2C_TypeDef * I2Cx, uint32_t
I2C_DMAReq, FunctionalState NewState)
Function Description
Enables or disables the I2C DMA interface.
Parameters
I2Cx : where x can be 1 or 2 to select the I2C peripheral.
I2C_DMAReq : specifies the I2C DMA transfer request to be
enabled or disabled. This parameter can be any combination
of the following values:
I2C_DMAReq_Tx : Tx DMA transfer request
I2C_DMAReq_Rx : Rx DMA transfer request
NewState : new state of the selected I2C DMA transfer
request. This parameter can be: ENABLE or DISABLE.
Return values
None.
Notes
None.
13.2.15 Interrupts and flags management functions
13.2.15.1 I2C_GetFlagStatus
Function Name
FlagStatus I2C_GetFlagStatus ( I2C_TypeDef * I2Cx, uint32_t
I2C_FLAG)
Function Description
Checks whether the specified I2C flag is set or not.

Table of Contents

Related product manuals