|
STM8L15x Standard Peripherals Drivers
|
PEC management functions. More...
Functions | |
| void | I2C_CalculatePEC (I2C_TypeDef *I2Cx, FunctionalState NewState) |
| Enables or disables PEC calculation. | |
| uint8_t | I2C_GetPEC (I2C_TypeDef *I2Cx) |
| Returns PEC value. | |
| void | I2C_PECPositionConfig (I2C_TypeDef *I2Cx, I2C_PECPosition_TypeDef I2C_PECPosition) |
| Selects I2C PEC position. | |
| void | I2C_TransmitPEC (I2C_TypeDef *I2Cx, FunctionalState NewState) |
| Enables or disables PEC transfer. | |
Detailed Description
PEC management functions.
===============================================================================
PEC management functions
===============================================================================
Function Documentation
| void I2C_CalculatePEC | ( | I2C_TypeDef * | I2Cx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables PEC calculation.
Definition at line 723 of file stm8l15x_i2c.c.
References I2C_struct::CR1, DISABLE, I2C_CR1_ENPEC, and IS_FUNCTIONAL_STATE.
| uint8_t I2C_GetPEC | ( | I2C_TypeDef * | I2Cx | ) |
| void I2C_PECPositionConfig | ( | I2C_TypeDef * | I2Cx, |
| I2C_PECPosition_TypeDef | I2C_PECPosition | ||
| ) |
Selects I2C PEC position.
Definition at line 749 of file stm8l15x_i2c.c.
References I2C_struct::CR2, I2C_CR2_POS, and IS_I2C_PEC_POSITION.
| void I2C_TransmitPEC | ( | I2C_TypeDef * | I2Cx, |
| FunctionalState | NewState | ||
| ) |
Enables or disables PEC transfer.
Definition at line 699 of file stm8l15x_i2c.c.
References I2C_struct::CR2, DISABLE, I2C_CR2_PEC, and IS_FUNCTIONAL_STATE.