/* param base MCAN peripheral base address. param handle MCAN handle pointer. param bufferIdx The MCAN Buffer index.  */
void MCAN_TransferAbortSend(CAN_Type *base, mcan_handle_t *handle, uint8_t bufferIdx)
/* param base MCAN peripheral base address. param handle MCAN handle pointer. param bufferIdx The MCAN Buffer index.  */
void MCAN_TransferAbortSend(CAN_Type *base, mcan_handle_t *handle, uint8_t bufferIdx)
{
    assert(NULL != handle);
    assert(bufferIdx <= 63U);
    MCAN_DisableTransmitBufferInterrupts(base, bufferIdx);
    MCAN_TransmitCancelRequest(base, bufferIdx);
    handle->bufferFrameBuf[bufferIdx] = NULL;
    handle->bufferState[bufferIdx] = (uint8_t)kMCAN_StateIdle;
}