Inter-integrated circuit interface (I2C)
13.2.13.2 I2C_ReceiveData
uint8_t I2C_ReceiveData ( I2C_TypeDef * I2Cx)
Returns the most recent received data by the I2Cx peripheral.
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· The value of the received data.
13.2.14 DMA transfers management functions
13.2.14.1 I2C_DMACmd
void I2C_DMACmd ( I2C_TypeDef * I2Cx, uint32_t
I2C_DMAReq, FunctionalState NewState)
Enables or disables the I2C DMA interface.
ï‚· 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.
13.2.15 Interrupts and flags management functions
13.2.15.1 I2C_GetFlagStatus
FlagStatus I2C_GetFlagStatus ( I2C_TypeDef * I2Cx, uint32_t
I2C_FLAG)
Checks whether the specified I2C flag is set or not.