/* Abort the transmission of the specified transmit buffer.  */
void CAN_AbortTx(CM_CAN_TypeDef *CANx, uint8_t u8TxBufType)
/* Abort the transmission of the specified transmit buffer.  */
void CAN_AbortTx(CM_CAN_TypeDef *CANx, uint8_t u8TxBufType)
{
    uint8_t au8Abort[] = {CAN_TCMD_TPA, CAN_TCMD_TSA};
    DDL_ASSERT(IS_CAN_UNIT(CANx));
    DDL_ASSERT(IS_CAN_TX_BUF_TYPE(u8TxBufType));
    SET_REG8_BIT(CANx->TCMD, au8Abort[u8TxBufType]);
}