|
AM263x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
101 #include <drivers/hw_include/cslr_soc.h>
117 #define MCAN_STATUS_SUCCESS ((int32_t)0)
122 #define MCAN_STATUS_FAILURE ((int32_t)-1)
144 #define CANFD_TRANSFER_MODE_BLOCKING (0U)
149 #define CANFD_TRANSFER_MODE_CALLBACK (1U)
160 #define CANFD_OPER_MODE_POLLED (0U)
161 #define CANFD_OPER_MODE_INTERRUPT (1U)
162 #define CANFD_OPER_MODE_DMA (2U)
172 #define MCAN_MSG_RAM_STD_ELEM_SIZE (1U)
175 #define MCAN_MSG_RAM_EXT_ELEM_SIZE (2U)
178 #define MCAN_MSG_HEADER_SIZE (8U)
181 #define MCAN_FRAME_TYPE_FD (1U)
185 #define MCAN_MSG_RAM_TX_RX_ELEM_SIZE (18U)
188 #define XTD_MSGID_MASK (0x1fffffffU)
189 #define STD_MSGID_MASK (0x7ffU)
190 #define STD_MSGID_SHIFT (18U)
193 #define MCAN_MAX_PAYLOAD_BYTES (64U)
196 #define MCAN_MAX_RX_BUFFERS (64U)
199 #define MCAN_MAX_TX_BUFFERS (32U)
202 #define CANFD_UTILS_ARRAYSIZE(x) (sizeof(x) / sizeof(x[0]))
205 #define CANFD_UTILS_GETARRAYINDEX(member, array) (member - &array[0])
208 #define CANFD_UTILS_ARRAYISMEMBER(member, array) \
209 (((((uint32)member - (uint32) & array[0]) % sizeof(array[0])) == 0) \
210 && (member >= &array[0]) \
211 && (CANFD_UTILS_GETARRAYINDEX(member, array) < CANFD_UTILS_ARRAYSIZE(array)))
216 #define MCAN_INTR_MASK ((uint32_t)MCAN_INTR_SRC_RX_FIFO0_NEW_MSG | \
217 (uint32_t)MCAN_INTR_SRC_RX_FIFO0_MSG_LOST | \
218 (uint32_t)MCAN_INTR_SRC_RX_FIFO1_NEW_MSG | \
219 (uint32_t)MCAN_INTR_SRC_TRANS_COMPLETE | \
220 (uint32_t)MCAN_INTR_SRC_TRANS_CANCEL_FINISH | \
221 (uint32_t)MCAN_INTR_SRC_DEDICATED_RX_BUFF_MSG | \
222 (uint32_t)MCAN_INTR_SRC_PROTOCOL_ERR_ARB | \
223 (uint32_t)MCAN_INTR_SRC_PROTOCOL_ERR_DATA | \
224 (uint32_t)MCAN_INTR_SRC_BUS_OFF_STATUS)
227 #define CANFD_DMA_TX_COMPLETION_INTERMEDIATE (1U)
229 #define CANFD_DMA_TX_COMPLETION_FINAL (2U)
231 #define CANFD_DMA_RX_COMPLETION_INTERMEDIATE (1U)
233 #define CANFD_DMA_RX_COMPLETION_FINAL (2U)
236 #define CANFD_MAX_DLC_MAPPING (16U)
245 typedef enum CANFD_MCANElemSize_t
278 typedef enum CANFD_DriverState_t
300 typedef enum CANFD_MCANOperationMode_t
315 typedef enum CANFD_Direction_t
330 typedef enum CANFD_MCANXidType_t
345 typedef enum CANFD_MCANFrameType_t
360 typedef enum CANFD_MCANTimeOutSelect_t
385 #define CANFD_MCAN_ECC_ERR_TYPE_SEC (0U)
387 #define CANFD_MCAN_ECC_ERR_TYPE_DED (1U)
397 typedef enum CANFD_MCANLoopBackMode_t
416 typedef enum CANFD_MCANCommState_t
437 typedef enum CANFD_MCANErrCode_t
493 typedef enum CANFD_Reason_t
540 typedef enum CANFD_Option_t
603 typedef struct CANFD_MCANLoopbackCfgParams_t
624 typedef struct CANFD_MCANBitTimingParams_t
663 typedef struct CANFD_MCANTdcConfig_t
682 typedef struct CANFD_MCANGlobalFiltConfig_t
723 typedef struct CANFD_MCANMsgRAMCfgParams_t
820 typedef struct CANFD_MCANECCConfigParams_t
847 typedef struct CANFD_MCANErrCntStatus_t
871 typedef struct CANFD_MCANProtocolStatus_t
942 typedef struct CANFD_MCANECCErrForceParams_t
976 typedef struct CANFD_MCANECCErrStatus_t
1012 typedef union CANFD_ErrStatusResp_t
1029 typedef struct CANFD_Attrs_s
1066 typedef struct CANFD_OptionTLV_t
1111 typedef struct CANFD_OpenParams_t
1287 typedef struct CANFD_Object_t
1428 typedef struct CANFD_Config_s
1443 typedef struct CANFD_DmaMsgConfig_s
1475 typedef struct CANFD_DmaRxBuf_s
1495 typedef struct CANFD_MessageObject_t
1600 typedef struct CANFD_MCANMsgObjectStats_t
1629 typedef struct CANFD_DmaConfig_s
CANFD_MCANECCErrStatus eccErrStatus
Definition: canfd.h:1015
int32_t CANFD_dmaClose(CANFD_Handle canfdHandle)
API to close an CANFD DMA channel.
uint32_t tdco
Definition: canfd.h:673
CANFD_Handle handle
Instance handle to which this object belongs.
Definition: canfd.h:1292
uint32_t errType
Definition: canfd.h:947
uint32_t txBufMode
Definition: canfd.h:757
uint32_t txEventFIFOWaterMark
Definition: canfd.h:771
@ CANFD_MCANElemSize_64BYTES
Definition: canfd.h:269
uint32_t warningStatus
Definition: canfd.h:894
@ CANFD_MCANTimeOutSelect_RX_FIFO0
Definition: canfd.h:369
int32_t CANFD_configureDmaTx(const CANFD_Object *ptrCanFdObj, CANFD_MessageObject *ptrCanMsgObj, uint32_t dataLengthPerMsg, uint32_t numMsgs, const void *data)
API to enable dma event transfer for the Tx. Called from the API CANFD_writeDma.
uint32_t tdcv
Definition: canfd.h:933
uint32_t rrfe
Definition: canfd.h:688
@ CANFD_MCANCommState_TRANSMITTER
Definition: canfd.h:428
uint32_t rbrs
Definition: canfd.h:917
void * args
Definition: hsmclient_msg.h:4
uint32_t busOffStatus
Definition: canfd.h:900
CANFD_Object * object
Definition: canfd.h:1432
void CANFD_deinit(void)
This function de-initializes each driver instance object and delete a driver lock.
HwiP_Object hwiObj0
Definition: canfd.h:1409
uint32_t dataPseg2
Definition: canfd.h:651
int32_t CANFD_writeCancel(CANFD_MsgObjHandle handle)
Function used by the application to cancel a pending data transmit.
uint32_t dataSjw
Definition: canfd.h:654
void * args
Pointer to be used by application to store miscellaneous data.
Definition: canfd.h:1387
@ CANFD_MCANErrCode_STUFF_ERROR
Definition: canfd.h:447
int32_t CANFD_dmaOpen(CANFD_Handle canfdHandle, CANFD_DmaChConfig dmaChCfg)
API to open an CANFD DMA channel.
uint32_t errPassive
Definition: canfd.h:887
uint32_t timeoutPreload
Definition: canfd.h:1244
CANFD_MCANErrCode
Definition: canfd.h:438
CANFD_MCANElemSize
Definition: canfd.h:246
void CANFD_errStatusCallBack(CANFD_Handle handle, CANFD_Reason reason, CANFD_ErrStatusResp *errStatusResp)
Application specified callback function which is invoked by the CANFD driver on error or status chang...
@ CANFD_DriverState_SLEEP
Definition: canfd.h:290
uint32_t currentMsgNum
Used by driver to store current message count out of the numMsgs already processed.
Definition: canfd.h:1460
uint32_t act
Definition: canfd.h:881
uint32_t transErrLogCnt
Definition: canfd.h:850
Structure for MCAN Rx Buffer element.
Definition: mcan.h:1439
@ CANFD_Option_MCAN_MSG_OBJECT_STATS
Definition: canfd.h:563
int32_t CANFD_configBitTime(CANFD_Handle handle, const CANFD_MCANBitTimingParams *bitTimeParams)
Function configures the bit time parameters for the CANFD module.
uint32_t endMsgIdentifier
Definition: canfd.h:1614
uint32_t asmEnable
Definition: canfd.h:1219
int32_t CANFD_deleteDmaRxMsgObject(const CANFD_Object *ptrCanFdObj, const CANFD_MessageObject *ptrCanMsgObj)
API to delete dma configuration for the Rx message object. Called from the CANFD_deleteMsgObject.
uint32_t fifoNum
FIFO Num (MCAN_RX_FIFO_NUM_0/MCAN_RX_FIFO_NUM_0).
Definition: canfd.h:1558
@ CANFD_MCANElemSize_32BYTES
Definition: canfd.h:263
@ CANFD_Option_MCAN_LOOPBACK
Definition: canfd.h:579
uint32_t nomSjw
Definition: canfd.h:639
uint32_t interrupts
Number of interrupts received for message Tx or Rx.
Definition: canfd.h:1337
@ CANFD_Reason_BUSOFF
Bus Off condition detected.
Definition: canfd.h:518
uint32_t dlec
Definition: canfd.h:905
uint32_t darEnable
Definition: canfd.h:1160
@ CANFD_MCANTimeOutSelect_TX_EVENT_FIFO
Definition: canfd.h:366
@ CANFD_Reason_PROTOCOL_ERR_DATA_PHASE
Protocol error in data phase detected.
Definition: canfd.h:523
uint32_t gCANFDConfigNum
Externally defined driver configuration array size.
uint32_t brsEnable
Definition: canfd.h:1134
uint32_t enableChk
Definition: canfd.h:832
uint32_t dmaEventNo
Dma Event number allocated for this message object.
Definition: canfd.h:1573
@ CANFD_Option_MCAN_POWER_DOWN
Definition: canfd.h:590
@ CANFD_MCANTimeOutSelect_RX_FIFO1
Definition: canfd.h:372
uint32_t timeoutCntEnable
Definition: canfd.h:1250
const void * data
pointer to the data buffer. This should a 2d array of uint8[numMsgs][dataLengthPerMsg]
Definition: canfd.h:1456
uint32_t protoArbErrInterrupts
Number of Protocol error in arbitration phase interrupts received.
Definition: canfd.h:1357
CANFD_MCANCommState
Definition: canfd.h:417
CANFD_MCANLoopBackMode
Definition: canfd.h:398
uint32_t tsPrescalar
Definition: canfd.h:1224
CANFD_DmaHandle canfdDmaHandle
Dma driver handle.
Definition: canfd.h:1377
CANFD_TransferCallbackFxn transferCallbackFxn
Definition: canfd.h:1118
CANFD_MCANFrameType
Definition: canfd.h:346
uint32_t protoDataErrInterrupts
Number of Protocol error in data phase interrupts received.
Definition: canfd.h:1352
uint32_t emulationEnable
Definition: canfd.h:1178
CANFD_MCANXidType msgIdType
Message object type.
Definition: canfd.h:1522
@ CANFD_Reason_ECC_ERROR
Data has been succesfully transmitted.
Definition: canfd.h:513
void * readTransferSem
Definition: canfd.h:1391
uint32_t rrfs
Definition: canfd.h:694
void CANFD_transferCallBack(void *args, CANFD_Reason reason)
Application specified callback function which is invoked by the CANFD driver once transmit is complet...
CANFD_DmaChConfig canfdDmaChCfg
Pointer to Dma channel configuration.
Definition: canfd.h:1382
#define MCAN_MAX_MSG_OBJECTS
Maximum number of message objects that can be supported by CANFD.
Definition: mcan.h:341
uint32_t nomPseg2
Definition: canfd.h:636
void * CANFD_DmaChConfig
Definition: canfd.h:595
uint32_t busOffInterrupts
Number of Bus-Off interrupts received.
Definition: canfd.h:1347
void * writeTransferSem
Definition: canfd.h:1399
@ CANFD_MCANFrameType_CLASSIC
Definition: canfd.h:348
CANFD_MsgObjHandle handle
Definition: canfd.h:1603
@ CANFD_MCANCommState_SYNCHRONIZING
Definition: canfd.h:419
#define MCAN_MAX_RX_MSG_OBJECTS
Maximum number of Rx message objects that can be supported by CANFD.
Definition: mcan.h:336
int32_t CANFD_cancelDmaTx(const CANFD_Object *ptrCanFdObj, const CANFD_MessageObject *ptrCanMsgObj)
API to disbale dma event transfer for the Tx to cancel the transfer.
uint32_t dataLength
Data Length used by application for transmission and reception. Valid values: 1 to 64 bytes.
Definition: canfd.h:1533
void CANFD_dmaTxCompletionCallback(CANFD_MessageObject *ptrCanMsgObj, const void *data, uint32_t completionType)
Callback function for the Tx completion. This is called for each message in the array of msgs provide...
uint32_t endMsgId
Ending range of the Message Id to which the configuration belongs For Tx and single Message Id object...
Definition: canfd.h:1507
void(* CANFD_TransferCallbackFxn)(void *args, CANFD_Reason reason)
The definition of a callback function used by the CANFD driver when used in CANFD_TRANSFER_MODE_CALLB...
Definition: canfd.h:1091
uint32_t bit1
Definition: canfd.h:955
@ CANFD_MCANErrCode_NO_CHANGE
Definition: canfd.h:483
uint32_t resi
Definition: canfd.h:911
int32_t CANFD_createDmaRxMsgObject(const CANFD_Object *ptrCanFdObj, CANFD_MessageObject *ptrCanMsgObj)
API to configure dma for the Rx message object. Called from the CANFD_createMsgObject.
uint32_t dataInterruptEnable
Definition: canfd.h:1273
@ CANFD_MCANElemSize_16BYTES
Definition: canfd.h:254
@ CANFD_Option_MCAN_MODE
Definition: canfd.h:571
void * CANFD_DmaHandle
Definition: canfd.h:593
CANFD_MessageObject * CANFD_MsgObjHandle
Definition: canfd.h:1592
void * hwiHandle
Definition: canfd.h:1406
uint32_t canErrLogCnt
Definition: canfd.h:862
CANFD_MCANProtocolStatus protocolStatus
Definition: canfd.h:1018
@ CANFD_MCANErrCode_BIT1_ERROR
Definition: canfd.h:460
@ CANFD_MCANXidType_29_BIT
Definition: canfd.h:336
uint32_t operMode
Definition: canfd.h:1041
CANFD_DmaMsgConfig dmaMsgConfig
Dma message configuration.
Definition: canfd.h:1577
@ CANFD_Direction_TX
Definition: canfd.h:321
@ CANFD_Reason_RX
Data has been received and the application is required to read and process the data.
Definition: canfd.h:498
void * value
Option Value.
Definition: canfd.h:1081
uint32_t enable
Definition: canfd.h:826
void CANFD_dmaRxCompletionCallback(CANFD_MessageObject *ptrCanMsgObj, const void *data, uint32_t completionType)
Callback function for the Rx completion. This is called for each message in the array of msgs provide...
uint32_t startMsgId
Starting range of the Message Id to which the configuration belongs. For Tx and single Message Id obj...
Definition: canfd.h:1501
void CANFD_init(void)
This function initializes each driver instance object and create a driver lock.
uint32_t txElement
Tx buffer number used to send data.
Definition: canfd.h:1538
uint32_t enableRdModWr
Definition: canfd.h:838
void CANFD_close(CANFD_Handle handle)
Function to close a CANFD peripheral specified by the CANFD handle.
uint32_t rxFIFO1size
Definition: canfd.h:798
@ CANFD_DriverState_UNINIT
Definition: canfd.h:281
uint32_t messageObjNum
Allocated message object number.
Definition: canfd.h:1527
int32_t CANFD_isDataSizeValid(uint32_t dataSize)
Function to verify the the data Size is valid or not.
CANFD_OpenParams * openParams
CANFD driver init parameters.
Definition: canfd.h:1307
CANFD_MCANLoopbackCfgParams CANFDMcanloopbackParams
Definition: canfd.h:1050
uint32_t txpEnable
Definition: canfd.h:1140
uint8_t intrPriority
Definition: canfd.h:1044
@ CANFD_Reason_TX_COMPLETION
Data has been succesfully transmitted.
Definition: canfd.h:503
void(* CANFD_ErrorCallbackFxn)(void *args, CANFD_Reason reason, CANFD_ErrStatusResp *errStatusResp)
The definition of a callback function used by the CANFD driver when used in CANFD_TRANSFER_MODE_CALLB...
Definition: canfd.h:1100
uint32_t CANFD_MCANECCErrType
This enumeration defines the MCAN ECC Error Types.
Definition: canfd.h:383
uint32_t OptionTLVtype
Definition: canfd.h:1047
uint32_t row
Definition: canfd.h:993
@ CANFD_MCANElemSize_20BYTES
Definition: canfd.h:257
@ CANFD_MCANErrCode_BIT0_ERROR
Definition: canfd.h:471
@ CANFD_MCANTimeOutSelect_CONT
Definition: canfd.h:363
@ CANFD_MCANElemSize_8BYTES
Definition: canfd.h:248
@ CANFD_MCANElemSize_24BYTES
Definition: canfd.h:260
uint32_t dataPseg1
Definition: canfd.h:648
CANFD_DriverState state
CANFD driver internal state.
Definition: canfd.h:1302
uint32_t intrNum0
Definition: canfd.h:1035
uint32_t anfs
Definition: canfd.h:708
CANFD_MCANBitTimingParams CANFDMcanBitTimingParams
Definition: canfd.h:1053
CANFD_MCANLoopBackMode mode
Definition: canfd.h:613
uint32_t rpStatus
Definition: canfd.h:859
uint32_t txBufNum
Definition: canfd.h:744
void * canfdDmaArgs
Definition: canfd.h:1631
@ CANFD_MCANOperationMode_SW_INIT
Definition: canfd.h:306
@ CANFD_MCANFrameType_FD
Definition: canfd.h:351
CANFD_Option type
Option Name.
Definition: canfd.h:1071
int32_t CANFD_createMsgObject(CANFD_Handle handle, CANFD_MessageObject *ptrCanMsgObj)
Function configures the receive or transmit message object. It also enables Tx completion and Tx canc...
int32_t CANFD_createDmaTxMsgObject(const CANFD_Object *ptrCanFdObj, CANFD_MessageObject *ptrCanMsgObj)
API to configure dma for the Tx message object. Called from the API CANFD_createMsgObject.
#define MCAN_MAX_TX_MSG_OBJECTS
Maximum number of Tx message objects that can be supported by CANFD.
Definition: mcan.h:331
uint32_t interruptsRxed
Number of interrupts received.
Definition: canfd.h:1563
SemaphoreP_Object readTransferSemObj
Definition: canfd.h:1395
CANFD_Handle CANFD_open(uint32_t index, CANFD_OpenParams *openPrms)
This function opens a given CANFD peripheral.
@ CANFD_Option_MCAN_ERROR_COUNTER
Definition: canfd.h:547
uint32_t tdcEnable
Definition: canfd.h:1201
@ CANFD_MCANLoopBackMode_INTERNAL
Definition: canfd.h:400
uint32_t errOnce
Definition: canfd.h:963
uint32_t rfdf
Definition: canfd.h:924
uint32_t efbi
Definition: canfd.h:1147
uint32_t clkStopFAck
Definition: canfd.h:1190
#define MCAN_MAX_RX_BUFFERS
Maximum number of Rx buffers.
Definition: canfd.h:196
CANFD_ErrorCallbackFxn errorCallbackFxn
Definition: canfd.h:1121
@ CANFD_MCANLoopBackMode_EXTERNAL
Definition: canfd.h:406
uint32_t CANFD_getFilterEventConfig(uint32_t eventNum)
@ CANFD_MCANErrCode_FORM_ERROR
Definition: canfd.h:450
uint32_t pxhddisable
Definition: canfd.h:1153
CANFD_MCANXidType
Definition: canfd.h:331
@ CANFD_MCANErrCode_CRC_ERROR
Definition: canfd.h:477
@ CANFD_MCANElemSize_12BYTES
Definition: canfd.h:251
uint32_t dedErr
Definition: canfd.h:988
uint32_t rxFIFO1OpMode
Definition: canfd.h:811
uint32_t tdcf
Definition: canfd.h:668
@ CANFD_MCANXidType_11_BIT
Definition: canfd.h:333
int32_t CANFD_deleteDmaTxMsgObject(const CANFD_Object *ptrCanFdObj, const CANFD_MessageObject *ptrCanMsgObj)
API to delete dma configuration for the Tx message object. Called from the API CANFD_deleteMsgObject.
MCAN_MemType rxMemType
Part of message ram to accessed by this message object. Refer enum MCAN_MemType.
Definition: canfd.h:1553
uint32_t MCAN_MemType
Enum to represent the MCAN Message RAM type.
Definition: mcan.h:399
uint32_t lss
Definition: canfd.h:730
int32_t CANFD_configureDmaRx(const CANFD_Object *ptrCanFdObj, CANFD_MessageObject *ptrCanMsgObj, uint32_t dataLengthPerMsg, uint32_t numMsgs, const void *data)
API to enable dma event transfer for the Rx. Called from the API CANFD_readDma.
@ CANFD_MCANErrCode_ACK_ERROR
Definition: canfd.h:453
uint32_t startMsgIdentifier
Definition: canfd.h:1610
void CANFD_int1Isr(void *args)
The function is the registered interrupt 1 ISR for the CANFD Driver.
@ CANFD_MCANCommState_IDLE
Definition: canfd.h:422
uint32_t fdMode
Definition: canfd.h:1127
uint32_t transferMode
Definition: canfd.h:1115
@ CANFD_DriverState_STARTED
Definition: canfd.h:284
uint32_t lse
Definition: canfd.h:737
int32_t CANFD_writeDmaTriggerNext(CANFD_MsgObjHandle handle)
Function used by the application to start transmission of next msg in dma mode. Transfer should be in...
HwiP_Object hwiObj1
Definition: canfd.h:1412
CANFD_MCANTdcConfig tdcConfig
Definition: canfd.h:1206
int32_t CANFD_deleteMsgObject(CANFD_MsgObjHandle handle)
Function deletes a message object.
uint32_t dataPropSeg
Definition: canfd.h:645
uint32_t numMsgs
Number of messages.
Definition: canfd.h:1452
CANFD_MCANGlobalFiltConfig filterConfig
Definition: canfd.h:1255
uint32_t useFifoNum
Flag to toggle the usage of FIFO 0 and FIFO 1. Valid values are 0 and 1.
Definition: canfd.h:1367
uint32_t txFIFOSize
Definition: canfd.h:751
uint32_t header1
Definition: canfd.h:1478
CANFD_MCANMsgRAMCfgParams msgRAMConfig
Definition: canfd.h:1260
uint32_t recErrCnt
Definition: canfd.h:853
Opaque Hwi object used with the Hwi APIs.
Definition: HwiP.h:93
void * CANFD_Handle
A handle that is returned from a CANFD_open() call.
Definition: canfd.h:106
void CANFD_int0Isr(void *args)
The function is the registered interrupt 0 ISR for the CANFD Driver.
uint32_t autoWkupEnable
Definition: canfd.h:1172
CANFD_Direction
Definition: canfd.h:316
uint32_t nomPropSeg
Definition: canfd.h:630
uint32_t rxFIFO0OpMode
Definition: canfd.h:791
@ CANFD_Option_MCAN_PROTOCOL_STATUS
Definition: canfd.h:554
uint32_t anfe
Definition: canfd.h:701
uint32_t errForce
Definition: canfd.h:966
uint32_t monEnable
Definition: canfd.h:1212
uint32_t bit2
Definition: canfd.h:1002
@ CANFD_MCANErrCode_NO_ERROR
Definition: canfd.h:442
#define CANFD_MAX_DLC_MAPPING
Maximum data to DLC mapping supported. Refer MCAN_DataLengthSize.
Definition: canfd.h:236
@ CANFD_Reason_PROTOCOL_ERR_ARB_PHASE
Protocol error in arbitration phase detected.
Definition: canfd.h:528
CANFD_MCANOperationMode
Definition: canfd.h:301
uint32_t lastErrCode
Definition: canfd.h:876
uint32_t nomPseg1
Definition: canfd.h:633
CANFD_MCANTimeOutSelect
Definition: canfd.h:361
Opaque semaphore object used with the semaphore APIs.
Definition: SemaphoreP.h:59
@ CANFD_Direction_RX
Definition: canfd.h:318
CANFD_MCANTimeOutSelect timeoutSelect
Definition: canfd.h:1237
CANFD_MCANECCConfigParams eccConfig
Definition: canfd.h:1265
@ CANFD_MCANCommState_RECEIVER
Definition: canfd.h:425
MCAN_RxBufElement rxBuffElem
Buffer used to read message RAM.
Definition: canfd.h:1372
int32_t CANFD_read(CANFD_MsgObjHandle handle, uint32_t numMsgs, uint8_t *data)
Function is used by the application to get the CAN message from message RAM using a receive message o...
uint32_t regBaseAddress
Base address of the register address space to be used.
Definition: canfd.h:1297
uint32_t header2
Definition: canfd.h:1480
uint32_t txEventFIFOSize
Definition: canfd.h:764
uint32_t rxFIFO0waterMark
Definition: canfd.h:785
uint32_t wdcPreload
Definition: canfd.h:1195
@ CANFD_MCANOperationMode_NORMAL
Definition: canfd.h:303
uint32_t bit2
Definition: canfd.h:958
int32_t length
Option Length.
Definition: canfd.h:1076
uint32_t intrNum1
Definition: canfd.h:1038
int32_t CANFD_getOptions(CANFD_Handle handle, const CANFD_OptionTLV *ptrOptInfo)
Function is used by the application to get the error and status information from the driver.
uint32_t wkupReqEnable
Definition: canfd.h:1166
int32_t CANFD_setOptions(CANFD_Handle handle, const CANFD_OptionTLV *ptrOptInfo)
Function is used by the application to configure the driver options.
uint32_t rxElement
Rx buffer number used to receive data.
Definition: canfd.h:1543
CANFD_Direction direction
Message object direction.
Definition: canfd.h:1517
uint32_t errStatusInterrupts
Number of error and status interrupts received.
Definition: canfd.h:1332
@ CANFD_Reason_TX_CANCELED
Data transmission is succesfully canceled.
Definition: canfd.h:508
uint32_t bit1
Definition: canfd.h:997
uint32_t nomBrp
Definition: canfd.h:627
int32_t CANFD_write(CANFD_MsgObjHandle handle, uint32_t id, CANFD_MCANFrameType frameType, uint32_t numMsgs, const uint8_t *data)
Function used by the application to transmit data.
uint32_t rowNum
Definition: canfd.h:950
uint32_t interruptsRxed
Definition: canfd.h:1617
SemaphoreP_Object writeTransferSemObj
Definition: canfd.h:1403
CANFD_Reason
Definition: canfd.h:494
This file contains the prototypes of the APIs present in the device abstraction layer file of MCAN....
uint32_t rxFIFO1waterMark
Definition: canfd.h:805
CANFD_Attrs * attrs
Definition: canfd.h:1430
uint32_t pxe
Definition: canfd.h:930
uint32_t eccInterrupts
Number of ECC interrupts received.
Definition: canfd.h:1342
uint32_t secErr
Definition: canfd.h:982
CANFD_Option
Definition: canfd.h:541
uint32_t dataBrp
Definition: canfd.h:642
int32_t CANFD_readDmaConfig(CANFD_MsgObjHandle handle, const void *data, uint32_t numMsgs)
Function is used by the application to configure reading the received msgs from message ram....
@ CANFD_DriverState_STOPPED
Definition: canfd.h:287
uint32_t direction
Definition: canfd.h:1606
uint32_t emulationFAck
Definition: canfd.h:1184
@ CANFD_MCANElemSize_48BYTES
Definition: canfd.h:266
uint32_t tsSelect
Definition: canfd.h:1232
void * args
Pointer to be used by application to store rx buffer.
Definition: canfd.h:1582
uint32_t errInterruptEnable
Definition: canfd.h:1269
uint32_t messageProcessed
Definition: canfd.h:1620
uint32_t rxFIFO0size
Definition: canfd.h:778
MCAN_MemType txMemType
Part of message ram to accessed by this message object. Refer enum MCAN_MemType.
Definition: canfd.h:1548
uint32_t baseAddr
Definition: canfd.h:1032
int32_t CANFD_writeDma(CANFD_MsgObjHandle handle, uint32_t id, CANFD_MCANFrameType frameType, uint32_t numMsgs, const void *data)
Function used by the application to initiate transmit data in dma mode. DMA mode is recommended to be...
CANFD_DriverState
Definition: canfd.h:279
CANFD_Config * canfdHandle
Pointer to the CANFD driver object.
Definition: canfd.h:1512
uint32_t enable
Definition: canfd.h:610
uint32_t dataLengthPerMsg
data length in Bytes for every message.
Definition: canfd.h:1448
uint32_t messageProcessed
Number of messages processed.
Definition: canfd.h:1568
int32_t CANFD_createRxRangeMsgObject(CANFD_Handle handle, CANFD_MessageObject *ptrCanMsgObj)
Function configures a receive message objects for a range of message identifiers. It also enables Rx ...