Inter-integrated circuit interface (I2C)
13.2.11.7 I2C_CalculatePEC
void I2C_CalculatePEC ( I2C_TypeDef * I2Cx, FunctionalState
NewState)
Enables or disables I2C PEC calculation.
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· NewState : new state of the I2Cx PEC calculation. This
parameter can be: ENABLE or DISABLE.
13.2.11.8 I2C_PECRequestCmd
void I2C_PECRequestCmd ( I2C_TypeDef * I2Cx,
FunctionalState NewState)
Enables or disables I2C PEC transmission/reception request.
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· NewState : new state of the I2Cx PEC request. This
parameter can be: ENABLE or DISABLE.
13.2.11.9 I2C_GetPEC
uint8_t I2C_GetPEC ( I2C_TypeDef * I2Cx)
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· The value of the PEC .