Inter-integrated circuit interface (I2C)
13.2.9.3 I2C_StructInit
void I2C_StructInit ( I2C_InitTypeDef * I2C_InitStruct)
Fills each I2C_InitStruct member with its default value.
ï‚· I2C_InitStruct : pointer to an I2C_InitTypeDef structure
which will be initialized.
13.2.9.4 I2C_Cmd
void I2C_Cmd ( I2C_TypeDef * I2Cx, FunctionalState
NewState)
Enables or disables the specified I2C peripheral.
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.
ï‚· NewState : new state of the I2Cx peripheral. This parameter
can be: ENABLE or DISABLE.
13.2.9.5 I2C_SoftwareResetCmd
void I2C_SoftwareResetCmd ( I2C_TypeDef * I2Cx)
Enables or disables the specified I2C software reset.
ï‚· I2Cx : where x can be 1 or 2 to select the I2C peripheral.