EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Inter-integrated circuit interface (I2C)
UM1581
266/584
DocID023800 Rev 1
13.2.11.7 I2C_CalculatePEC
Function Name
void I2C_CalculatePEC ( I2C_TypeDef * I2Cx, FunctionalState
NewState)
Function Description
Enables or disables I2C PEC calculation.
Parameters
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.
Return values
None.
Notes
None.
13.2.11.8 I2C_PECRequestCmd
Function Name
void I2C_PECRequestCmd ( I2C_TypeDef * I2Cx,
FunctionalState NewState)
Function Description
Enables or disables I2C PEC transmission/reception request.
Parameters
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.
Return values
None.
Notes
None.
13.2.11.9 I2C_GetPEC
Function Name
uint8_t I2C_GetPEC ( I2C_TypeDef * I2Cx)
Function Description
Returns the I2C PEC.
Parameters
I2Cx : where x can be 1 or 2 to select the I2C peripheral.
Return values
The value of the PEC .
Notes
None.

Table of Contents

Related product manuals