Inter-integrated circuit interface (I2C)
13.2.10 Communications handling functions
13.2.10.1 I2C_AutoEndCmd
void I2C_AutoEndCmd ( I2C_TypeDef * I2Cx, FunctionalState
NewState)
Enables or disables the I2C automatic end mode (stop condition
is automatically sent when nbytes data are transferred).
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· NewState : new state of the I2C automatic end mode. This
parameter can be: ENABLE or DISABLE.
ï‚· This function has effect if Reload mode is disabled.
13.2.10.2 I2C_ReloadCmd
void I2C_ReloadCmd ( I2C_TypeDef * I2Cx, FunctionalState
NewState)
Enables or disables the I2C nbytes reload mode.
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· NewState : new state of the nbytes reload mode. This
parameter can be: ENABLE or DISABLE.
13.2.10.3 I2C_NumberOfBytesConfig
void I2C_NumberOfBytesConfig ( I2C_TypeDef * I2Cx, uint8_t
Number_Bytes)
Configures the number of bytes to be transmitted/received.
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· Number_Bytes : specifies the number of bytes to be