/* Returns the LSB of the 9-bit CANx Transmit Error Counter(TEC).  */
uint8_t CAN_GetLSBTransmitErrCounter(CAN_Module *CANx)
/* Returns the LSB of the 9-bit CANx Transmit Error Counter(TEC).  */
uint8_t CAN_GetLSBTransmitErrCounter(CAN_Module *CANx)
{
    uint8_t counter = 0;
    assert_param(IS_CAN_ALL_PERIPH(CANx));
    counter = (uint8_t)((CANx->ESTS & CAN_ESTS_TXEC) >> 16);
    return counter;
}