/* Returns the PEC value for the specified I2C.  */
uint8_t I2C_GetPec(I2C_Module *I2Cx)
/* Returns the PEC value for the specified I2C.  */
uint8_t I2C_GetPec(I2C_Module *I2Cx)
{
    assert_param(IS_I2C_PERIPH(I2Cx));
    return ((I2Cx->STS2) >> 8);
}