Home
last modified time | relevance | path

Searched refs:pRxFrame (Results 1 – 6 of 6) sorted by relevance

/hal_nxp-latest/mcux/mcux-sdk/drivers/mscan/
Dfsl_mscan.c664 status_t MSCAN_ReadRxMb(MSCAN_Type *base, mscan_frame_t *pRxFrame) in MSCAN_ReadRxMb() argument
677 pRxFrame->format = (mscan_frame_format_t)(sIDR1.IDR1.R_TEIDE); in MSCAN_ReadRxMb()
679 if (kMSCAN_FrameFormatExtend == pRxFrame->format) /* Extended frame. */ in MSCAN_ReadRxMb()
681 pRxFrame->type = (mscan_frame_type_t)(sIDR3.IDR3.ERTR); in MSCAN_ReadRxMb()
682 pRxFrame->ID_Type.ExtID.EID28_21 = MSCAN_ReadRIDR0(base); in MSCAN_ReadRxMb()
683 pRxFrame->ID_Type.ExtID.EID20_18 = sIDR1.IDR1.EID20_18_OR_SID2_0; in MSCAN_ReadRxMb()
684 pRxFrame->ID_Type.ExtID.EID17_15 = sIDR1.IDR1.EID17_15; in MSCAN_ReadRxMb()
685 pRxFrame->ID_Type.ExtID.EID14_7 = MSCAN_ReadRIDR2(base); in MSCAN_ReadRxMb()
686 pRxFrame->ID_Type.ExtID.EID6_0 = sIDR3.IDR3.EID6_0; in MSCAN_ReadRxMb()
690 pRxFrame->type = (mscan_frame_type_t)(sIDR1.IDR1.R_TSRR); in MSCAN_ReadRxMb()
[all …]
Dfsl_mscan.h682 status_t MSCAN_ReadRxMb(MSCAN_Type *base, mscan_frame_t *pRxFrame);
732 status_t MSCAN_TransferReceiveBlocking(MSCAN_Type *base, mscan_frame_t *pRxFrame);
/hal_nxp-latest/mcux/mcux-sdk/drivers/flexcan/
Dfsl_flexcan.c1375 status_t FLEXCAN_ReadPNWakeUpMB(CAN_Type *base, uint8_t mbIdx, flexcan_frame_t *pRxFrame) in FLEXCAN_ReadPNWakeUpMB() argument
1378 assert(NULL != pRxFrame); in FLEXCAN_ReadPNWakeUpMB()
1391 pRxFrame->id = base->WMB[mbIdx].ID & (CAN_ID_EXT_MASK | CAN_ID_STD_MASK); in FLEXCAN_ReadPNWakeUpMB()
1394 pRxFrame->format = (cs_temp & CAN_CS_IDE_MASK) != 0U ? (uint8_t)kFLEXCAN_FrameFormatExtend : in FLEXCAN_ReadPNWakeUpMB()
1398 pRxFrame->type = in FLEXCAN_ReadPNWakeUpMB()
1402 pRxFrame->length = (uint8_t)((cs_temp & CAN_CS_DLC_MASK) >> CAN_CS_DLC_SHIFT); in FLEXCAN_ReadPNWakeUpMB()
1406 pRxFrame->timestamp = 0x0; in FLEXCAN_ReadPNWakeUpMB()
1409 pRxFrame->dataWord0 = base->WMB[mbIdx].D03; in FLEXCAN_ReadPNWakeUpMB()
1410 pRxFrame->dataWord1 = base->WMB[mbIdx].D47; in FLEXCAN_ReadPNWakeUpMB()
2964 status_t FLEXCAN_ReadRxMb(CAN_Type *base, uint8_t mbIdx, flexcan_frame_t *pRxFrame) in FLEXCAN_ReadRxMb() argument
[all …]
Dfsl_flexcan.h1974 status_t FLEXCAN_ReadRxMb(CAN_Type *base, uint8_t mbIdx, flexcan_frame_t *pRxFrame);
2007 status_t FLEXCAN_ReadFDRxMb(CAN_Type *base, uint8_t mbIdx, flexcan_fd_frame_t *pRxFrame);
2020 status_t FLEXCAN_ReadRxFifo(CAN_Type *base, flexcan_frame_t *pRxFrame);
2033 status_t FLEXCAN_ReadEnhancedRxFifo(CAN_Type *base, flexcan_fd_frame_t *pRxFrame);
2050 status_t FLEXCAN_ReadPNWakeUpMB(CAN_Type *base, uint8_t mbIdx, flexcan_frame_t *pRxFrame);
2085 …s_t FLEXCAN_TransferFDReceiveBlocking(CAN_Type *base, uint8_t mbIdx, flexcan_fd_frame_t *pRxFrame);
2164 status_t FLEXCAN_TransferReceiveBlocking(CAN_Type *base, uint8_t mbIdx, flexcan_frame_t *pRxFrame);
2176 status_t FLEXCAN_TransferReceiveFifoBlocking(CAN_Type *base, flexcan_frame_t *pRxFrame);
2189 status_t FLEXCAN_TransferReceiveEnhancedFifoBlocking(CAN_Type *base, flexcan_fd_frame_t *pRxFrame);
/hal_nxp-latest/mcux/mcux-sdk/drivers/mcan/
Dfsl_mcan.c1660 status_t MCAN_ReadRxBuffer(CAN_Type *base, uint8_t idx, mcan_rx_buffer_frame_t *pRxFrame) in MCAN_ReadRxBuffer() argument
1663 assert(NULL != pRxFrame); in MCAN_ReadRxBuffer()
1666 uint32_t u4PayloadLength = (uint32_t)(pRxFrame->size) + 8U; in MCAN_ReadRxBuffer()
1669 (void)memcpy((void *)pRxFrame, (void *)elementAddress, u4PayloadLength); in MCAN_ReadRxBuffer()
1684 status_t MCAN_ReadRxFifo(CAN_Type *base, uint8_t fifoBlock, mcan_rx_buffer_frame_t *pRxFrame) in MCAN_ReadRxFifo() argument
1688 assert(NULL != pRxFrame); in MCAN_ReadRxFifo()
1714 (void)memcpy(pRxFrame, elementAddress, 8U); in MCAN_ReadRxFifo()
1715 pRxFrame->data = (uint8_t *)((uint32_t)elementAddress + 8U); in MCAN_ReadRxFifo()
1772 status_t MCAN_TransferReceiveBlocking(CAN_Type *base, uint8_t idx, mcan_rx_buffer_frame_t *pRxFrame) in MCAN_TransferReceiveBlocking() argument
1796 status = MCAN_ReadRxBuffer(base, idx, pRxFrame); in MCAN_TransferReceiveBlocking()
[all …]
Dfsl_mcan.h1013 status_t MCAN_ReadRxBuffer(CAN_Type *base, uint8_t idx, mcan_rx_buffer_frame_t *pRxFrame);
1025 status_t MCAN_ReadRxFifo(CAN_Type *base, uint8_t fifoBlock, mcan_rx_buffer_frame_t *pRxFrame);
1084 status_t MCAN_TransferReceiveBlocking(CAN_Type *base, uint8_t idx, mcan_rx_buffer_frame_t *pRxFrame
1097 …N_TransferReceiveFifoBlocking(CAN_Type *base, uint8_t fifoBlock, mcan_rx_buffer_frame_t *pRxFrame);