Inter-integrated circuit interface (I2C)
13.2.10.4 I2C_MasterRequestConfig
void I2C_MasterRequestConfig ( I2C_TypeDef * I2Cx, uint16_t
I2C_Direction)
Configures the type of transfer request for the master.
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· I2C_Direction : specifies the transfer request direction to be
programmed. This parameter can be one of the following
values:
ï€ I2C_Direction_Transmitter : Master request a write
transfer
ï€ I2C_Direction_Receiver : Master request a read
transfer
13.2.10.5 I2C_GenerateSTART
void I2C_GenerateSTART ( I2C_TypeDef * I2Cx,
FunctionalState NewState)
Generates I2Cx communication START condition.
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· NewState : new state of the I2C START condition
generation. This parameter can be: ENABLE or DISABLE.