ï‚· Number_Bytes : specifies the number of bytes to be
programmed. This parameter must be a value between 0 and
255.
ï‚· ReloadEndMode : new state of the I2C START condition
generation. This parameter can be one of the following
values:
ï€ I2C_Reload_Mode : Enable Reload mode .
ï€ I2C_AutoEnd_Mode : Enable Automatic end mode.
ï€ I2C_SoftEnd_Mode : Enable Software end mode.
ï‚· StartStopMode : new state of the I2C START condition
generation. This parameter can be one of the following
values:
ï€ I2C_No_StartStop : Don't Generate stop and start
condition.
ï€ I2C_Generate_Stop : Generate stop condition
(Number_Bytes should be set to 0).
ï€ I2C_Generate_Start_Read : Generate Restart for read
request.
ï€ I2C_Generate_Start_Write : Generate Restart for write
request.
void I2C_SMBusAlertCmd ( I2C_TypeDef * I2Cx,
FunctionalState NewState)
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· NewState : new state of the I2Cx SMBus alert. This
parameter can be: ENABLE or DISABLE.