|
AM263Px MCU+ SDK
10.01.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)
249 #define CANFD_DRIVER_STATE_UNINIT (0U)
251 #define CANFD_DRIVER_STATE_STARTED (1U)
253 #define CANFD_DRIVER_STATE_STOPPED (2U)
255 #define CCANFD_DRIVER_STATE_SLEEP (3U)
264 typedef enum CANFD_MCANElemSize_t
298 typedef enum CANFD_MCANOperationMode_t
313 typedef enum CANFD_Direction_t
328 typedef enum CANFD_MCANXidType_t
343 typedef enum CANFD_MCANFrameType_t
358 typedef enum CANFD_MCANTimeOutSelect_t
383 #define CANFD_MCAN_ECC_ERR_TYPE_SEC (0U)
385 #define CANFD_MCAN_ECC_ERR_TYPE_DED (1U)
395 typedef enum CANFD_MCANLoopBackMode_t
414 typedef enum CANFD_MCANCommState_t
435 typedef enum CANFD_MCANErrCode_t
491 typedef enum CANFD_Reason_t
538 typedef enum CANFD_Option_t
601 typedef struct CANFD_MCANLoopbackCfgParams_t
622 typedef struct CANFD_MCANBitTimingParams_t
661 typedef struct CANFD_MCANTdcConfig_t
680 typedef struct CANFD_MCANGlobalFiltConfig_t
721 typedef struct CANFD_MCANMsgRAMCfgParams_t
818 typedef struct CANFD_MCANECCConfigParams_t
845 typedef struct CANFD_MCANErrCntStatus_t
869 typedef struct CANFD_MCANProtocolStatus_t
940 typedef struct CANFD_MCANECCErrForceParams_t
974 typedef struct CANFD_MCANECCErrStatus_t
1010 typedef union CANFD_ErrStatusResp_t
1027 typedef struct CANFD_Attrs_s
1077 typedef struct CANFD_OptionTLV_t
1122 typedef struct CANFD_OpenParams_t
1298 typedef struct CANFD_Object_t
1439 typedef struct CANFD_Config_s
1454 typedef struct CANFD_DmaMsgConfig_s
1486 typedef struct CANFD_DmaRxBuf_s
1506 typedef struct CANFD_MessageObject_t
1617 typedef struct CANFD_MCANMsgObjectStats_t
1646 typedef struct CANFD_DmaConfig_s
CANFD_MCANECCErrStatus eccErrStatus
Definition: canfd.h:1013
int32_t CANFD_dmaClose(CANFD_Handle canfdHandle)
API to close an CANFD DMA channel.
uint32_t tdco
Definition: canfd.h:671
CANFD_Handle handle
Instance handle to which this object belongs.
Definition: canfd.h:1303
uint32_t errType
Definition: canfd.h:945
uint32_t txBufMode
Definition: canfd.h:755
uint32_t txEventFIFOWaterMark
Definition: canfd.h:769
@ CANFD_MCANElemSize_64BYTES
Definition: canfd.h:288
uint32_t warningStatus
Definition: canfd.h:892
@ CANFD_MCANTimeOutSelect_RX_FIFO0
Definition: canfd.h:367
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 rxMemType
Definition: canfd.h:1057
uint32_t tdcv
Definition: canfd.h:931
uint32_t rrfe
Definition: canfd.h:686
@ CANFD_MCANCommState_TRANSMITTER
Definition: canfd.h:426
uint32_t rbrs
Definition: canfd.h:915
void * args
Definition: hsmclient_msg.h:4
uint32_t busOffStatus
Definition: canfd.h:898
CANFD_Object * object
Definition: canfd.h:1443
void CANFD_deinit(void)
This function de-initializes each driver instance object and delete a driver lock.
HwiP_Object hwiObj0
Definition: canfd.h:1420
uint32_t dataPseg2
Definition: canfd.h:649
int32_t CANFD_writeCancel(CANFD_MsgObjHandle handle)
Function used by the application to cancel a pending data transmit.
uint32_t dataSjw
Definition: canfd.h:652
void * args
Pointer to be used by application to store miscellaneous data.
Definition: canfd.h:1398
@ CANFD_MCANErrCode_STUFF_ERROR
Definition: canfd.h:445
int32_t CANFD_dmaOpen(CANFD_Handle canfdHandle, CANFD_DmaChConfig dmaChCfg)
API to open an CANFD DMA channel.
uint32_t errPassive
Definition: canfd.h:885
uint32_t timeoutPreload
Definition: canfd.h:1255
CANFD_MCANErrCode
Definition: canfd.h:436
CANFD_MCANElemSize
Definition: canfd.h:265
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...
uint32_t currentMsgNum
Used by driver to store current message count out of the numMsgs already processed.
Definition: canfd.h:1471
uint32_t act
Definition: canfd.h:879
uint32_t transErrLogCnt
Definition: canfd.h:848
Structure for MCAN Rx Buffer element.
Definition: mcan.h:1491
@ CANFD_Option_MCAN_MSG_OBJECT_STATS
Definition: canfd.h:561
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:1631
uint32_t asmEnable
Definition: canfd.h:1230
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:1569
@ CANFD_MCANElemSize_32BYTES
Definition: canfd.h:282
@ CANFD_Option_MCAN_LOOPBACK
Definition: canfd.h:577
uint32_t nomSjw
Definition: canfd.h:637
uint32_t interrupts
Number of interrupts received for message Tx or Rx.
Definition: canfd.h:1348
@ CANFD_Reason_BUSOFF
Bus Off condition detected.
Definition: canfd.h:516
uint32_t dlec
Definition: canfd.h:903
uint32_t darEnable
Definition: canfd.h:1171
@ CANFD_MCANTimeOutSelect_TX_EVENT_FIFO
Definition: canfd.h:364
@ CANFD_Reason_PROTOCOL_ERR_DATA_PHASE
Protocol error in data phase detected.
Definition: canfd.h:521
uint32_t gCANFDConfigNum
Externally defined driver configuration array size.
uint32_t brsEnable
Definition: canfd.h:1145
uint32_t enableChk
Definition: canfd.h:830
uint32_t dmaEventNo
Dma Event number allocated for this message object.
Definition: canfd.h:1584
@ CANFD_Option_MCAN_POWER_DOWN
Definition: canfd.h:588
@ CANFD_MCANTimeOutSelect_RX_FIFO1
Definition: canfd.h:370
uint32_t timeoutCntEnable
Definition: canfd.h:1261
const void * data
pointer to the data buffer. This should a 2d array of uint8[numMsgs][dataLengthPerMsg]
Definition: canfd.h:1467
uint32_t protoArbErrInterrupts
Number of Protocol error in arbitration phase interrupts received.
Definition: canfd.h:1368
CANFD_MCANCommState
Definition: canfd.h:415
CANFD_MCANLoopBackMode
Definition: canfd.h:396
uint32_t tsPrescalar
Definition: canfd.h:1235
CANFD_DmaHandle canfdDmaHandle
Dma driver handle.
Definition: canfd.h:1388
CANFD_TransferCallbackFxn transferCallbackFxn
Definition: canfd.h:1129
CANFD_MCANFrameType
Definition: canfd.h:344
uint32_t protoDataErrInterrupts
Number of Protocol error in data phase interrupts received.
Definition: canfd.h:1363
uint32_t emulationEnable
Definition: canfd.h:1189
CANFD_MCANXidType msgIdType
Message object type.
Definition: canfd.h:1533
@ CANFD_Reason_ECC_ERROR
Data has been succesfully transmitted.
Definition: canfd.h:511
void * readTransferSem
Definition: canfd.h:1402
uint32_t rrfs
Definition: canfd.h:692
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:1393
#define MCAN_MAX_MSG_OBJECTS
Maximum number of message objects that can be supported by CANFD.
Definition: mcan.h:393
uint32_t nomPseg2
Definition: canfd.h:634
void * CANFD_DmaChConfig
Definition: canfd.h:593
uint32_t busOffInterrupts
Number of Bus-Off interrupts received.
Definition: canfd.h:1358
void * writeTransferSem
Definition: canfd.h:1410
@ CANFD_MCANFrameType_CLASSIC
Definition: canfd.h:346
CANFD_MsgObjHandle handle
Definition: canfd.h:1620
@ CANFD_MCANCommState_SYNCHRONIZING
Definition: canfd.h:417
#define MCAN_MAX_RX_MSG_OBJECTS
Maximum number of Rx message objects that can be supported by CANFD.
Definition: mcan.h:388
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:1544
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:1518
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:1102
uint32_t bit1
Definition: canfd.h:953
@ CANFD_MCANErrCode_NO_CHANGE
Definition: canfd.h:481
uint32_t resi
Definition: canfd.h:909
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:1284
@ CANFD_MCANElemSize_16BYTES
Definition: canfd.h:273
@ CANFD_Option_MCAN_MODE
Definition: canfd.h:569
void * CANFD_DmaHandle
Definition: canfd.h:591
CANFD_MessageObject * CANFD_MsgObjHandle
Definition: canfd.h:1609
void * hwiHandle
Definition: canfd.h:1417
uint32_t canErrLogCnt
Definition: canfd.h:860
CANFD_MCANProtocolStatus protocolStatus
Definition: canfd.h:1016
@ CANFD_MCANErrCode_BIT1_ERROR
Definition: canfd.h:458
@ CANFD_MCANXidType_29_BIT
Definition: canfd.h:334
uint32_t operMode
Definition: canfd.h:1039
CANFD_DmaMsgConfig dmaMsgConfig
Dma message configuration.
Definition: canfd.h:1588
@ CANFD_Direction_TX
Definition: canfd.h:319
@ CANFD_Reason_RX
Data has been received and the application is required to read and process the data.
Definition: canfd.h:496
void * value
Option Value.
Definition: canfd.h:1092
uint32_t enable
Definition: canfd.h:824
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:1512
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:1549
uint32_t enableRdModWr
Definition: canfd.h:836
void CANFD_close(CANFD_Handle handle)
Function to close a CANFD peripheral specified by the CANFD handle.
uint32_t rxFIFO1size
Definition: canfd.h:796
uint32_t messageObjNum
Allocated message object number.
Definition: canfd.h:1538
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:1318
CANFD_MCANLoopbackCfgParams CANFDMcanloopbackParams
Definition: canfd.h:1048
uint32_t txpEnable
Definition: canfd.h:1151
uint8_t intrPriority
Definition: canfd.h:1042
@ CANFD_Reason_TX_COMPLETION
Data has been succesfully transmitted.
Definition: canfd.h:501
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:1111
uint32_t CANFD_MCANECCErrType
This enumeration defines the MCAN ECC Error Types.
Definition: canfd.h:381
uint32_t OptionTLVtype
Definition: canfd.h:1045
uint32_t row
Definition: canfd.h:991
@ CANFD_MCANElemSize_20BYTES
Definition: canfd.h:276
@ CANFD_MCANErrCode_BIT0_ERROR
Definition: canfd.h:469
@ CANFD_MCANTimeOutSelect_CONT
Definition: canfd.h:361
@ CANFD_MCANElemSize_8BYTES
Definition: canfd.h:267
@ CANFD_MCANElemSize_24BYTES
Definition: canfd.h:279
uint32_t dataPseg1
Definition: canfd.h:646
uint32_t intrNum0
Definition: canfd.h:1033
uint32_t anfs
Definition: canfd.h:706
CANFD_MCANBitTimingParams CANFDMcanBitTimingParams
Definition: canfd.h:1051
CANFD_MCANLoopBackMode mode
Definition: canfd.h:611
uint32_t rpStatus
Definition: canfd.h:857
uint32_t txBufNum
Definition: canfd.h:742
void * canfdDmaArgs
Definition: canfd.h:1648
@ CANFD_MCANOperationMode_SW_INIT
Definition: canfd.h:304
@ CANFD_MCANFrameType_FD
Definition: canfd.h:349
CANFD_Option type
Option Name.
Definition: canfd.h:1082
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:383
uint32_t interruptsRxed
Number of interrupts received.
Definition: canfd.h:1574
SemaphoreP_Object readTransferSemObj
Definition: canfd.h:1406
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:545
uint32_t tdcEnable
Definition: canfd.h:1212
@ CANFD_MCANLoopBackMode_INTERNAL
Definition: canfd.h:398
uint32_t errOnce
Definition: canfd.h:961
uint32_t rfdf
Definition: canfd.h:922
uint32_t efbi
Definition: canfd.h:1158
uint32_t clkStopFAck
Definition: canfd.h:1201
#define MCAN_MAX_RX_BUFFERS
Maximum number of Rx buffers.
Definition: canfd.h:196
CANFD_ErrorCallbackFxn errorCallbackFxn
Definition: canfd.h:1132
@ CANFD_MCANLoopBackMode_EXTERNAL
Definition: canfd.h:404
uint32_t CANFD_getFilterEventConfig(uint32_t eventNum)
@ CANFD_MCANErrCode_FORM_ERROR
Definition: canfd.h:448
uint32_t pxhddisable
Definition: canfd.h:1164
CANFD_MCANXidType
Definition: canfd.h:329
@ CANFD_MCANErrCode_CRC_ERROR
Definition: canfd.h:475
@ CANFD_MCANElemSize_12BYTES
Definition: canfd.h:270
uint32_t dedErr
Definition: canfd.h:986
uint32_t rxFIFO1OpMode
Definition: canfd.h:809
uint32_t tdcf
Definition: canfd.h:666
@ CANFD_MCANXidType_11_BIT
Definition: canfd.h:331
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:1564
uint32_t MCAN_MemType
Enum to represent the MCAN Message RAM type.
Definition: mcan.h:451
uint32_t lss
Definition: canfd.h:728
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:451
uint32_t startMsgIdentifier
Definition: canfd.h:1627
void CANFD_int1Isr(void *args)
The function is the registered interrupt 1 ISR for the CANFD Driver.
@ CANFD_MCANCommState_IDLE
Definition: canfd.h:420
uint32_t fdMode
Definition: canfd.h:1138
uint32_t transferMode
Definition: canfd.h:1126
uint32_t lse
Definition: canfd.h:735
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:1423
CANFD_MCANTdcConfig tdcConfig
Definition: canfd.h:1217
int32_t CANFD_deleteMsgObject(CANFD_MsgObjHandle handle)
Function deletes a message object.
uint32_t dataPropSeg
Definition: canfd.h:643
uint32_t numMsgs
Number of messages.
Definition: canfd.h:1463
CANFD_MCANGlobalFiltConfig filterConfig
Definition: canfd.h:1266
uint32_t useFifoNum
Flag to toggle the usage of FIFO 0 and FIFO 1. Valid values are 0 and 1.
Definition: canfd.h:1378
void * filterConfig
void pointer to MCAN_ExtMsgIDFilterElement or MCAN_StdMsgIDFilterElement structure....
Definition: canfd.h:1064
uint32_t txFIFOSize
Definition: canfd.h:749
uint32_t header1
Definition: canfd.h:1489
CANFD_MCANMsgRAMCfgParams msgRAMConfig
Definition: canfd.h:1271
uint32_t recErrCnt
Definition: canfd.h:851
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:1183
CANFD_Direction
Definition: canfd.h:314
uint32_t nomPropSeg
Definition: canfd.h:628
uint32_t rxFIFO0OpMode
Definition: canfd.h:789
@ CANFD_Option_MCAN_PROTOCOL_STATUS
Definition: canfd.h:552
uint32_t anfe
Definition: canfd.h:699
uint32_t errForce
Definition: canfd.h:964
uint32_t monEnable
Definition: canfd.h:1223
uint32_t bit2
Definition: canfd.h:1000
@ CANFD_MCANErrCode_NO_ERROR
Definition: canfd.h:440
#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:526
CANFD_MCANOperationMode
Definition: canfd.h:299
uint32_t lastErrCode
Definition: canfd.h:874
uint32_t nomPseg1
Definition: canfd.h:631
CANFD_MCANTimeOutSelect
Definition: canfd.h:359
Opaque semaphore object used with the semaphore APIs.
Definition: SemaphoreP.h:59
@ CANFD_Direction_RX
Definition: canfd.h:316
CANFD_MCANTimeOutSelect timeoutSelect
Definition: canfd.h:1248
CANFD_MCANECCConfigParams eccConfig
Definition: canfd.h:1276
@ CANFD_MCANCommState_RECEIVER
Definition: canfd.h:423
MCAN_RxBufElement rxBuffElem
Buffer used to read message RAM.
Definition: canfd.h:1383
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:1308
uint32_t header2
Definition: canfd.h:1491
uint32_t txEventFIFOSize
Definition: canfd.h:762
uint32_t rxFIFO0waterMark
Definition: canfd.h:783
uint32_t wdcPreload
Definition: canfd.h:1206
@ CANFD_MCANOperationMode_NORMAL
Definition: canfd.h:301
uint32_t bit2
Definition: canfd.h:956
int32_t length
Option Length.
Definition: canfd.h:1087
uint32_t intrNum1
Definition: canfd.h:1036
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:1177
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:1554
CANFD_Direction direction
Message object direction.
Definition: canfd.h:1528
uint32_t errStatusInterrupts
Number of error and status interrupts received.
Definition: canfd.h:1343
@ CANFD_Reason_TX_CANCELED
Data transmission is succesfully canceled.
Definition: canfd.h:506
uint32_t bit1
Definition: canfd.h:995
uint32_t nomBrp
Definition: canfd.h:625
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:948
uint32_t interruptsRxed
Definition: canfd.h:1634
SemaphoreP_Object writeTransferSemObj
Definition: canfd.h:1414
CANFD_Reason
Definition: canfd.h:492
uint32_t txMemType
Definition: canfd.h:1054
This file contains the prototypes of the APIs present in the device abstraction layer file of MCAN....
uint32_t rxFIFO1waterMark
Definition: canfd.h:803
CANFD_Attrs * attrs
Definition: canfd.h:1441
uint32_t pxe
Definition: canfd.h:928
uint32_t eccInterrupts
Number of ECC interrupts received.
Definition: canfd.h:1353
void * filterConfig
void pointer to MCAN_ExtMsgIDFilterElement or MCAN_StdMsgIDFilterElement structure....
Definition: canfd.h:1600
uint32_t secErr
Definition: canfd.h:980
CANFD_Option
Definition: canfd.h:539
uint32_t dataBrp
Definition: canfd.h:640
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....
uint32_t direction
Definition: canfd.h:1623
uint32_t emulationFAck
Definition: canfd.h:1195
@ CANFD_MCANElemSize_48BYTES
Definition: canfd.h:285
uint32_t tsSelect
Definition: canfd.h:1243
void * args
Pointer to be used by application to store rx buffer.
Definition: canfd.h:1593
uint32_t state
CANFD driver internal state.
Definition: canfd.h:1313
uint32_t errInterruptEnable
Definition: canfd.h:1280
uint32_t messageProcessed
Definition: canfd.h:1637
uint32_t rxFIFO0size
Definition: canfd.h:776
MCAN_MemType txMemType
Part of message ram to accessed by this message object. Refer enum MCAN_MemType.
Definition: canfd.h:1559
uint32_t baseAddr
Definition: canfd.h:1030
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_Config * canfdHandle
Pointer to the CANFD driver object.
Definition: canfd.h:1523
uint32_t enable
Definition: canfd.h:608
uint32_t dataLengthPerMsg
data length in Bytes for every message.
Definition: canfd.h:1459
uint32_t messageProcessed
Number of messages processed.
Definition: canfd.h:1579
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 ...