AM263x MCU+ SDK  10.00.00
mcan.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 Texas Instruments Incorporated
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
50 #ifndef MCAN_H_
51 #define MCAN_H_
52 
53 /* ========================================================================== */
54 /* Include Files */
55 /* ========================================================================== */
56 
57 #include <drivers/hw_include/cslr.h>
58 #include <drivers/hw_include/cslr_mcan.h>
59 #include <drivers/hw_include/csl_types.h>
60 
61 #ifdef __cplusplus
62 extern "C" {
63 #endif
64 
65 /* ========================================================================== */
66 /* Macros & Typedefs */
67 /* ========================================================================== */
74 #define MCAN_STATUS_SUCCESS ((int32_t)0)
75 
79 #define MCAN_STATUS_FAILURE ((int32_t)-1)
80 
84 #define MCAN_TIMEOUT ((int32_t)-2)
85 
89 #define MCAN_INVALID_PARAM ((int32_t)-3)
90 
94 #define MCAN_STATUS_BUSY ((int32_t)-4)
95 
99 #define MCAN_INVALID_STATE ((int32_t)-5)
100 
104 #define MCAN_OUT_OF_RESOURCES ((int32_t)-6) //TODO
105 
109 #define MCAN_INTR_MASK_ALL (MCAN_IR_RF0N_MASK | \
110  MCAN_IR_RF0W_MASK | \
111  MCAN_IR_RF0F_MASK | \
112  MCAN_IR_RF0L_MASK | \
113  MCAN_IR_RF1N_MASK | \
114  MCAN_IR_RF1W_MASK | \
115  MCAN_IR_RF1F_MASK | \
116  MCAN_IR_RF1L_MASK | \
117  MCAN_IR_HPM_MASK | \
118  MCAN_IR_TC_MASK | \
119  MCAN_IR_TCF_MASK | \
120  MCAN_IR_TFE_MASK | \
121  MCAN_IR_TEFN_MASK | \
122  MCAN_IR_TEFW_MASK | \
123  MCAN_IR_TEFF_MASK | \
124  MCAN_IR_TEFL_MASK | \
125  MCAN_IR_TSW_MASK | \
126  MCAN_IR_MRAF_MASK | \
127  MCAN_IR_TOO_MASK | \
128  MCAN_IR_DRX_MASK | \
129  MCAN_IR_BEC_MASK | \
130  MCAN_IR_BEU_MASK | \
131  MCAN_IR_ELO_MASK | \
132  MCAN_IR_EP_MASK | \
133  MCAN_IR_EW_MASK | \
134  MCAN_IR_BO_MASK | \
135  MCAN_IR_WDI_MASK | \
136  MCAN_IR_PEA_MASK | \
137  MCAN_IR_PED_MASK | \
138  MCAN_IR_ARA_MASK)
139 
143 #define MCAN_HEADER_SIZE_BYTES (8U)
144 
149 #define MCAN_MAX_PAYLOAD_BYTES (64U)
150 
159 #define MCAN_MSG_RAM_STD_ELEM_SIZE (1U)
160 
161 #define MCAN_MSG_RAM_EXT_ELEM_SIZE (2U)
162 
163 #define MCAN_MSG_RAM_TX_RX_ELEM_SIZE (18U)
164 
176 #define MCAN_RX_FIFO_OPERATION_MODE_BLOCKING (0U)
177 
178 #define MCAN_RX_FIFO_OPERATION_MODE_OVERWRITE (1U)
179 
190 #define MCAN_TX_MEM_TYPE_BUF (0U)
191 
192 #define MCAN_TX_MEM_TYPE_QUEUE (1U)
193 
204 #define MCAN_DATA_SIZE_0BYTES (0U)
205 
206 #define MCAN_DATA_SIZE_1BYTES (1U)
207 
208 #define MCAN_DATA_SIZE_2BYTES (2U)
209 
210 #define MCAN_DATA_SIZE_3BYTES (3U)
211 
212 #define MCAN_DATA_SIZE_4BYTES (4U)
213 
214 #define MCAN_DATA_SIZE_5BYTES (5U)
215 
216 #define MCAN_DATA_SIZE_6BYTES (6U)
217 
218 #define MCAN_DATA_SIZE_7BYTES (7U)
219 
220 #define MCAN_DATA_SIZE_8BYTES (8U)
221 
222 #define MCAN_DATA_SIZE_12BYTES (9U)
223 
224 #define MCAN_DATA_SIZE_16BYTES (10U)
225 
226 #define MCAN_DATA_SIZE_20BYTES (11U)
227 
228 #define MCAN_DATA_SIZE_24BYTES (12U)
229 
230 #define MCAN_DATA_SIZE_32BYTES (13U)
231 
232 #define MCAN_DATA_SIZE_48BYTES (14U)
233 
234 #define MCAN_DATA_SIZE_64BYTES (15U)
235 
246 #define MCAN_STD_FILT_ELEM_DISABLE (0U)
247 
248 #define MCAN_STD_FILT_ELEM_FIFO0 (1U)
249 
250 #define MCAN_STD_FILT_ELEM_FIFO1 (2U)
251 
252 #define MCAN_STD_FILT_ELEM_REJECT (3U)
253 
254 #define MCAN_STD_FILT_ELEM_SET_PRIORITY (4U)
255 
256 #define MCAN_STD_FILT_ELEM_SET_PRIORITY_FIFO0 (5U)
257 
258 #define MCAN_STD_FILT_ELEM_SET_PRIORITY_FIFO1 (6U)
259 
260 #define MCAN_STD_FILT_ELEM_BUFFER (7U)
261 
273 #define MCAN_STD_FILT_TYPE_RANGE (0U)
274 
275 #define MCAN_STD_FILT_TYPE_DUAL (1U)
276 
277 #define MCAN_STD_FILT_TYPE_CLASSIC (2U)
278 
279 #define MCAN_STD_FILT_TYPE_DISABLE (3U)
280 
291 #define MCAN_EXT_FILT_ELEM_DISABLE (0U)
292 
293 #define MCAN_EXT_FILT_ELEM_FIFO0 (1U)
294 
295 #define MCAN_EXT_FILT_ELEM_FIFO1 (2U)
296 
297 #define MCAN_EXT_FILT_ELEM_REJECT (3U)
298 
299 #define MCAN_EXT_FILT_ELEM_SET_PRIORITY (4U)
300 
301 #define MCAN_EXT_FILT_ELEM_SET_PRIORITY_FIFO0 (5U)
302 
303 #define MCAN_EXT_FILT_ELEM_SET_PRIORITY_FIFO1 (6U)
304 
305 #define MCAN_EXT_FILT_ELEM_BUFFER (7U)
306 
318 #define MCAN_EXT_FILT_TYPE_RANGE (0U)
319 
320 #define MCAN_EXT_FILT_TYPE_DUAL (1U)
321 
322 #define MCAN_EXT_FILT_TYPE_CLASSIC (2U)
323 
324 #define MCAN_EXT_FILT_TYPE_DISABLE (3U)
325 
331 #define MCAN_MAX_TX_MSG_OBJECTS (32U)
332 
336 #define MCAN_MAX_RX_MSG_OBJECTS (32U)
337 
341 #define MCAN_MAX_MSG_OBJECTS (MCAN_MAX_TX_MSG_OBJECTS + MCAN_MAX_RX_MSG_OBJECTS)
342 
351 typedef uint32_t MCAN_IntrLineNum;
352 
353 #define MCAN_INTR_LINE_NUM_0 (0U)
354 
355 #define MCAN_INTR_LINE_NUM_1 (1U)
356 
367 typedef uint32_t MCAN_IdType;
368 
369 #define MCAN_ID_TYPE_11_BIT (0U)
370 
371 #define MCAN_ID_TYPE_29_BIT (1U)
372 
383 typedef uint32_t MCAN_OperationMode;
384 
385 #define MCAN_OPERATION_MODE_NORMAL (0U)
386 
387 #define MCAN_OPERATION_MODE_SW_INIT (1U)
388 
399 typedef uint32_t MCAN_MemType;
400 
401 #define MCAN_MEM_TYPE_BUF (0U)
402 
403 #define MCAN_MEM_TYPE_FIFO (1U)
404 
415 typedef uint32_t MCAN_RxFIFONum;
416 
417 #define MCAN_RX_FIFO_NUM_0 (0U)
418 
419 #define MCAN_RX_FIFO_NUM_1 (1U)
420 
431 typedef uint32_t MCAN_PinType;
432 
433 #define MCAN_PIN_TYPE_RX (0U)
434 
435 #define MCAN_PIN_TYPE_TX (1U)
436 
447 typedef uint32_t MCAN_ElemSize;
448 
449 #define MCAN_ELEM_SIZE_8BYTES (0U)
450 
451 #define MCAN_ELEM_SIZE_12BYTES (1U)
452 
453 #define MCAN_ELEM_SIZE_16BYTES (2U)
454 
455 #define MCAN_ELEM_SIZE_20BYTES (3U)
456 
457 #define MCAN_ELEM_SIZE_24BYTES (4U)
458 
459 #define MCAN_ELEM_SIZE_32BYTES (5U)
460 
461 #define MCAN_ELEM_SIZE_48BYTES (6U)
462 
463 #define MCAN_ELEM_SIZE_64BYTES (7U)
464 
475 typedef uint32_t MCAN_TimeOutSelect;
476 
477 #define MCAN_TIMEOUT_SELECT_CONT (0U)
478 
479 #define MCAN_TIMEOUT_SELECT_TX_EVENT_FIFO (1U)
480 
481 #define MCAN_TIMEOUT_SELECT_RX_FIFO0 (2U)
482 
483 #define MCAN_TIMEOUT_SELECT_RX_FIFO1 (3U)
484 
495 typedef uint32_t MCAN_IntrSrc;
496 
497 #define MCAN_INTR_SRC_RX_FIFO0_NEW_MSG (MCAN_IR_RF0N_MASK)
498 
499 #define MCAN_INTR_SRC_RX_FIFO0_WATERMARK (MCAN_IR_RF0W_MASK)
500 
501 #define MCAN_INTR_SRC_RX_FIFO0_FULL (MCAN_IR_RF0F_MASK)
502 
503 #define MCAN_INTR_SRC_RX_FIFO0_MSG_LOST (MCAN_IR_RF0L_MASK)
504 
505 #define MCAN_INTR_SRC_RX_FIFO1_NEW_MSG (MCAN_IR_RF1N_MASK)
506 
507 #define MCAN_INTR_SRC_RX_FIFO1_WATERMARK (MCAN_IR_RF1W_MASK)
508 
509 #define MCAN_INTR_SRC_RX_FIFO1_FULL (MCAN_IR_RF1F_MASK)
510 
511 #define MCAN_INTR_SRC_RX_FIFO1_MSG_LOST (MCAN_IR_RF1L_MASK)
512 
513 #define MCAN_INTR_SRC_HIGH_PRIO_MSG (MCAN_IR_HPM_MASK)
514 
515 #define MCAN_INTR_SRC_TRANS_COMPLETE (MCAN_IR_TC_MASK)
516 
517 #define MCAN_INTR_SRC_TRANS_CANCEL_FINISH (MCAN_IR_TCF_MASK)
518 
519 #define MCAN_INTR_SRC_TX_FIFO_EMPTY (MCAN_IR_TFE_MASK)
520 
521 #define MCAN_INTR_SRC_TX_EVT_FIFO_NEW_ENTRY (MCAN_IR_TEFN_MASK)
522 
523 #define MCAN_INTR_SRC_TX_EVT_FIFO_WATERMARK (MCAN_IR_TEFW_MASK)
524 
525 #define MCAN_INTR_SRC_TX_EVT_FIFO_FULL (MCAN_IR_TEFF_MASK)
526 
527 #define MCAN_INTR_SRC_TX_EVT_FIFO_ELEM_LOST (MCAN_IR_TEFL_MASK)
528 
529 #define MCAN_INTR_SRC_TIMESTAMP_WRAPAROUND (MCAN_IR_TSW_MASK)
530 
531 #define MCAN_INTR_SRC_MSG_RAM_ACCESS_FAILURE (MCAN_IR_MRAF_MASK)
532 
533 #define MCAN_INTR_SRC_TIMEOUT (MCAN_IR_TOO_MASK)
534 
535 #define MCAN_INTR_SRC_DEDICATED_RX_BUFF_MSG (MCAN_IR_DRX_MASK)
536 
537 #define MCAN_INTR_SRC_BIT_ERR_CORRECTED (MCAN_IR_BEC_MASK)
538 
539 #define MCAN_INTR_SRC_BIT_ERR_UNCORRECTED (MCAN_IR_BEU_MASK)
540 
541 #define MCAN_INTR_SRC_ERR_LOG_OVRFLW (MCAN_IR_ELO_MASK)
542 
543 #define MCAN_INTR_SRC_ERR_PASSIVE (MCAN_IR_EP_MASK)
544 
545 #define MCAN_INTR_SRC_WARNING_STATUS (MCAN_IR_EW_MASK)
546 
547 #define MCAN_INTR_SRC_BUS_OFF_STATUS (MCAN_IR_BO_MASK)
548 
549 #define MCAN_INTR_SRC_WATCHDOG (MCAN_IR_WDI_MASK)
550 
551 #define MCAN_INTR_SRC_PROTOCOL_ERR_ARB (MCAN_IR_PEA_MASK)
552 
553 #define MCAN_INTR_SRC_PROTOCOL_ERR_DATA (MCAN_IR_PED_MASK)
554 
555 #define MCAN_INTR_SRC_RES_ADDR_ACCESS (MCAN_IR_ARA_MASK)
556 
567 typedef uint32_t MCAN_ECCErrType;
568 
569 #define MCAN_ECC_ERR_TYPE_SEC (0U)
570 
571 #define MCAN_ECC_ERR_TYPE_DED (1U)
572 
583 typedef uint32_t MCAN_LpbkMode;
584 
585 #define MCAN_LPBK_MODE_INTERNAL (0U)
586 
590 #define MCAN_LPBK_MODE_EXTERNAL (1U)
591 
606 typedef uint32_t MCAN_ComState;
607 
608 #define MCAN_COM_STATE_SYNCHRONIZING (0U)
609 
610 #define MCAN_COM_STATE_IDLE (1U)
611 
612 #define MCAN_COM_STATE_RECEIVER (2U)
613 
614 #define MCAN_COM_STATE_TRANSMITTER (3U)
615 
626 typedef uint32_t MCAN_ErrCode;
627 
628 #define MCAN_ERR_CODE_NO_ERROR (0U)
629 
632 #define MCAN_ERR_CODE_STUFF_ERROR (1U)
633 
636 #define MCAN_ERR_CODE_FORM_ERROR (2U)
637 
638 #define MCAN_ERR_CODE_ACK_ERROR (3U)
639 
642 #define MCAN_ERR_CODE_BIT1_ERROR (4U)
643 
648 #define MCAN_ERR_CODE_BIT0_ERROR (5U)
649 
658 #define MCAN_ERR_CODE_CRC_ERROR (6U)
659 
663 #define MCAN_ERR_CODE_NO_CHANGE (7U)
664 
672 /* ========================================================================== */
673 /* Structures and Enums */
674 /* ========================================================================== */
675 
681 typedef struct
682 {
687  uint32_t nomTimeSeg1;
691  uint32_t nomTimeSeg2;
703  uint32_t dataTimeSeg1;
707  uint32_t dataTimeSeg2;
716 
720 typedef struct
721 {
722  uint32_t tdcf;
726  uint32_t tdco;
731 
735 typedef struct
736 {
737  uint32_t rrfe;
742  uint32_t rrfs;
747  uint32_t anfe;
753  uint32_t anfs;
760 
764 typedef struct
765 {
766  uint32_t fdMode;
771  uint32_t brsEnable;
777  uint32_t txpEnable;
782  uint32_t efbi;
788  uint32_t pxhddisable;
793  uint32_t darEnable;
799  uint32_t wkupReqEnable;
804  uint32_t autoWkupEnable;
809  uint32_t emulationEnable;
814  uint32_t emulationFAck;
819  uint32_t clkStopFAck;
824  uint32_t wdcPreload;
832  uint32_t tdcEnable;
838 
842 typedef struct
843 {
844  uint32_t monEnable;
849  uint32_t asmEnable;
855  uint32_t tsPrescalar;
859  uint32_t tsSelect;
866  uint32_t timeoutSelect;
870  uint32_t timeoutPreload;
886 
890 typedef struct
891 {
892  uint32_t transErrLogCnt;
894  uint32_t recErrCnt;
896  uint32_t rpStatus;
901  uint32_t canErrLogCnt;
904 
908 typedef struct
909 {
910  uint32_t lastErrCode;
914  uint32_t act;
918  uint32_t errPassive;
923  uint32_t warningStatus;
929  uint32_t busOffStatus;
934  uint32_t dlec;
938  uint32_t resi;
943  uint32_t rbrs;
948  uint32_t rfdf;
954  uint32_t pxe;
959  uint32_t tdcv;
962 
972 typedef struct
973 {
974  uint32_t lss;
980  uint32_t lse;
986  uint32_t txBufCnt;
992  uint32_t txFIFOCnt;
998  uint32_t txBufMode;
1003  uint32_t txEventFIFOCnt;
1009  uint32_t rxFIFO0Cnt;
1015  uint32_t rxFIFO0OpMode;
1020  uint32_t rxFIFO1Cnt;
1026  uint32_t rxFIFO1OpMode;
1031  uint32_t rxBufElemSize;
1055  uint32_t flssa;
1057  uint32_t flesa;
1059  uint32_t txStartAddr;
1061  uint32_t txBufElemSize;
1069  uint32_t rxBufStartAddr;
1072 
1076 typedef struct
1077 {
1078  uint32_t bufIdx;
1082  uint32_t msi;
1090  uint32_t filterIdx;
1092  uint32_t filterList;
1098 
1102 typedef struct
1103 {
1104  uint32_t statusLow;
1106  uint32_t statusHigh;
1109 
1113 typedef struct
1114 {
1115  uint32_t num;
1119  uint32_t fillLvl;
1121  uint32_t getIdx;
1123  uint32_t putIdx;
1125  uint32_t fifoFull;
1130  uint32_t msgLost;
1133 
1137 typedef struct
1138 {
1139  uint32_t freeLvl;
1141  uint32_t getIdx;
1145  uint32_t putIdx;
1147  uint32_t fifoFull;
1153 
1157 typedef struct
1158 {
1159  uint32_t fillLvl;
1161  uint32_t getIdx;
1163  uint32_t putIdx;
1165  uint32_t fifoFull;
1170  uint32_t eleLost;
1177 
1181 typedef struct
1182 {
1183  uint32_t errType;
1187  uint32_t rowNum;
1189  uint32_t bit1;
1193  uint32_t bit2;
1195  uint32_t errOnce;
1199  uint32_t errForce;
1202 
1206 typedef struct
1207 {
1208  uint32_t secErr;
1213  uint32_t dedErr;
1218  uint32_t row;
1222  uint32_t bit1;
1225  uint32_t bit2;
1230 
1235 typedef struct
1236 {
1237  uint32_t scheme;
1239  uint32_t bu;
1241  uint32_t modId;
1243  uint32_t rtlRev;
1245  uint32_t major;
1247  uint32_t custom;
1249  uint32_t minor;
1251  uint32_t day;
1253  uint32_t mon;
1255  uint32_t year;
1257  uint32_t subStep;
1259  uint32_t step;
1261  uint32_t rel;
1264 
1268 typedef struct
1269 {
1270  uint32_t scheme;
1272  uint32_t bu;
1274  uint32_t modId;
1276  uint32_t rtlRev;
1278  uint32_t major;
1280  uint32_t custom;
1282  uint32_t minor;
1285 
1289 typedef struct
1290 {
1291  uint32_t enable;
1296  uint32_t enableChk;
1301  uint32_t enableRdModWr;
1307 
1311 typedef struct
1312 {
1313  uint32_t scheme;
1315  uint32_t bu;
1317  uint32_t modId;
1319  uint32_t rtlRev;
1321  uint32_t major;
1323  uint32_t custom;
1325  uint32_t minor;
1328 
1332 typedef struct
1333 {
1334  uint32_t id;
1336  uint32_t rtr;
1341  uint32_t xtd;
1346  uint32_t esi;
1351  uint32_t dlc;
1357  uint32_t brs;
1362  uint32_t fdf;
1367  uint32_t efc;
1372  uint32_t mm;
1374  uint8_t data[MCAN_MAX_PAYLOAD_BYTES];
1379 
1387 typedef struct
1388 {
1389  uint32_t id;
1391  uint32_t rtr;
1396  uint32_t xtd;
1401  uint32_t esi;
1406  uint32_t dlc;
1412  uint32_t brs;
1417  uint32_t fdf;
1422  uint32_t efc;
1427  uint32_t mm;
1429  uint8_t *data;
1434 
1438 typedef struct
1439 {
1440  uint32_t id;
1442  uint32_t rtr;
1447  uint32_t xtd;
1452  uint32_t esi;
1457  uint32_t rxts;
1459  uint32_t dlc;
1465  uint32_t brs;
1470  uint32_t fdf;
1475  uint32_t fidx;
1477  uint32_t anmf;
1482  uint8_t data[MCAN_MAX_PAYLOAD_BYTES];
1487 
1495 typedef struct
1496 {
1497  uint32_t id;
1499  uint32_t rtr;
1504  uint32_t xtd;
1509  uint32_t esi;
1514  uint32_t rxts;
1516  uint32_t dlc;
1522  uint32_t brs;
1527  uint32_t fdf;
1532  uint32_t fidx;
1534  uint32_t anmf;
1539  uint8_t *data;
1544 
1548 typedef struct
1549 {
1550  uint32_t id;
1552  uint32_t rtr;
1557  uint32_t xtd;
1562  uint32_t esi;
1567  uint32_t txts;
1569  uint32_t dlc;
1575  uint32_t brs;
1580  uint32_t fdf;
1585  uint32_t et;
1593  uint32_t mm;
1596 
1600 typedef struct
1601 {
1602  uint32_t sfid2;
1604  uint32_t sfid1;
1606  uint32_t sfec;
1620  uint32_t sft;
1628 
1632 typedef struct
1633 {
1634  uint32_t efid1;
1636  uint32_t efec;
1650  uint32_t efid2;
1652  uint32_t eft;
1661 
1662 /* ========================================================================== */
1663 /* Global Variables */
1664 /* ========================================================================== */
1665 
1666 /* None */
1667 
1668 /* ========================================================================== */
1669 /* Function Declarations */
1670 /* ========================================================================== */
1671 
1678 void MCAN_reset(uint32_t baseAddr);
1679 
1688 uint32_t MCAN_isInReset(uint32_t baseAddr);
1689 
1699 uint32_t MCAN_isFDOpEnable(uint32_t baseAddr);
1700 
1710 uint32_t MCAN_isMemInitDone(uint32_t baseAddr);
1711 
1719 void MCAN_setOpMode(uint32_t baseAddr, uint32_t mode);
1720 
1729 uint32_t MCAN_getOpMode(uint32_t baseAddr);
1730 
1740 int32_t MCAN_init(uint32_t baseAddr, const MCAN_InitParams *initParams);
1741 
1751 int32_t MCAN_config(uint32_t baseAddr, const MCAN_ConfigParams *configParams);
1752 
1760 void MCAN_eccConfig(uint32_t baseAddr,
1761  const MCAN_ECCConfigParams *configParams);
1762 
1772 int32_t MCAN_setBitTime(uint32_t baseAddr,
1773  const MCAN_BitTimingParams *configParams);
1774 
1783 int32_t MCAN_writeDmaHeader( const void* data, const MCAN_TxBufElement *elem);
1784 
1795 int32_t MCAN_msgRAMConfig(uint32_t baseAddr,
1796  const MCAN_MsgRAMConfigParams *msgRAMConfigParams);
1797 
1807 int32_t MCAN_setExtIDAndMask(uint32_t baseAddr, uint32_t idMask);
1808 
1821 int32_t MCAN_getWriteMsgElemAddress(uint32_t baseAddr,
1822  uint32_t memType,
1823  uint32_t bufNum,
1824  uint32_t *elemAddr);
1825 
1837 void MCAN_writeHeaderToMsgRam(uint32_t baseAddr,
1838  uint32_t memType,
1839  uint32_t bufNum,
1840  const MCAN_TxBufElement *elem);
1841 
1853 void MCAN_writeMsgRam(uint32_t baseAddr,
1854  uint32_t memType,
1855  uint32_t bufNum,
1856  const MCAN_TxBufElement *elem);
1857 
1876 void MCAN_writeMsgRamNoCpy(uint32_t baseAddr,
1877  uint32_t memType,
1878  uint32_t bufNum,
1879  const MCAN_TxBufElementNoCpy *elem);
1880 
1889 int32_t MCAN_txBufAddReq(uint32_t baseAddr, uint32_t bufNum);
1890 
1898 void MCAN_getNewDataStatus(uint32_t baseAddr,
1899  MCAN_RxNewDataStatus *newDataStatus);
1900 
1916 int32_t MCAN_getReadMsgElemAddress(uint32_t baseAddr,
1917  uint32_t memType,
1918  uint32_t bufNum,
1919  uint32_t fifoNum,
1920  uint32_t *elemAddr);
1921 
1930 void MCAN_clearNewDataStatus(uint32_t baseAddr,
1931  const MCAN_RxNewDataStatus *newDataStatus);
1932 
1947 void MCAN_readMsgRam(uint32_t baseAddr,
1948  uint32_t memType,
1949  uint32_t bufNum,
1950  uint32_t fifoNum,
1951  MCAN_RxBufElement *elem);
1952 
1974 void MCAN_readMsgRamNoCpy(uint32_t baseAddr,
1975  uint32_t memType,
1976  uint32_t bufNum,
1977  uint32_t fifoNum,
1978  MCAN_RxBufElementNoCpy *elem);
1979 
1987 void MCAN_readTxEventFIFO(uint32_t baseAddr,
1988  MCAN_TxEventFIFOElement *txEventElem);
1989 
1998 void MCAN_addStdMsgIDFilter(uint32_t baseAddr,
1999  uint32_t filtNum,
2000  const MCAN_StdMsgIDFilterElement *elem);
2001 
2010 void MCAN_addExtMsgIDFilter(uint32_t baseAddr,
2011  uint32_t filtNum,
2012  const MCAN_ExtMsgIDFilterElement *elem);
2013 
2026 void MCAN_lpbkModeEnable(uint32_t baseAddr,
2027  uint32_t lpbkMode,
2028  uint32_t enable);
2029 
2037 void MCAN_getErrCounters(uint32_t baseAddr,
2038  MCAN_ErrCntStatus *errCounter);
2039 
2047 void MCAN_getProtocolStatus(uint32_t baseAddr,
2048  MCAN_ProtocolStatus *protStatus);
2049 
2059 void MCAN_enableIntr(uint32_t baseAddr, uint32_t intrMask, uint32_t enable);
2060 
2070 void MCAN_selectIntrLine(uint32_t baseAddr,
2071  uint32_t intrMask,
2072  uint32_t lineNum);
2073 
2081 uint32_t MCAN_getIntrLineSelectStatus(uint32_t baseAddr);
2082 
2092 void MCAN_enableIntrLine(uint32_t baseAddr,
2093  uint32_t lineNum,
2094  uint32_t enable);
2095 
2103 uint32_t MCAN_getIntrStatus(uint32_t baseAddr);
2104 
2112 void MCAN_clearIntrStatus(uint32_t baseAddr, uint32_t intrMask);
2113 
2121 void MCAN_getHighPriorityMsgStatus(uint32_t baseAddr,
2123 
2131 void MCAN_getRxFIFOStatus(uint32_t baseAddr,
2132  MCAN_RxFIFOStatus *fifoStatus);
2133 
2144 int32_t MCAN_writeRxFIFOAck(uint32_t baseAddr,
2145  uint32_t fifoNum,
2146  uint32_t idx);
2147 
2155 void MCAN_getTxFIFOQueStatus(uint32_t baseAddr,
2156  MCAN_TxFIFOStatus *fifoStatus);
2157 
2165 uint32_t MCAN_getTxBufReqPend(uint32_t baseAddr);
2166 
2175 int32_t MCAN_txBufCancellationReq(uint32_t baseAddr, uint32_t buffNum);
2176 
2184 uint32_t MCAN_getTxBufTransmissionStatus(uint32_t baseAddr);
2185 
2193 uint32_t MCAN_txBufCancellationStatus(uint32_t baseAddr);
2194 
2205 int32_t MCAN_txBufTransIntrEnable(uint32_t baseAddr,
2206  uint32_t bufNum,
2207  uint32_t enable);
2208 
2220 int32_t MCAN_txBufCancellationIntrEnable(uint32_t baseAddr,
2221  uint32_t bufNum,
2222  uint32_t enable);
2223 
2233 void MCAN_addClockStopRequest(uint32_t baseAddr, uint32_t enable);
2234 
2242 void MCAN_getTxEventFIFOStatus(uint32_t baseAddr,
2243  MCAN_TxEventFIFOStatus *fifoStatus);
2244 
2253 int32_t MCAN_writeTxEventFIFOAck(uint32_t baseAddr, uint32_t idx);
2254 
2262 void MCAN_eccForceError(uint32_t baseAddr,
2263  const MCAN_ECCErrForceParams *eccErr);
2264 
2272 void MCAN_eccGetErrorStatus(uint32_t baseAddr,
2273  MCAN_ECCErrStatus *eccErr);
2274 
2282 void MCAN_eccClearErrorStatus(uint32_t baseAddr, uint32_t errType);
2283 
2291 void MCAN_eccWriteEOI(uint32_t baseAddr, uint32_t errType);
2292 
2302 void MCAN_eccEnableIntr(uint32_t baseAddr, uint32_t errType, uint32_t enable);
2303 
2311 uint32_t MCAN_eccGetIntrStatus(uint32_t baseAddr, uint32_t errType);
2312 
2320 void MCAN_eccClearIntrStatus(uint32_t baseAddr, uint32_t errType);
2321 
2330 void MCAN_extTSCounterConfig(uint32_t baseAddr,
2331  uint32_t prescalar);
2332 
2341 void MCAN_extTSCounterEnable(uint32_t baseAddr, uint32_t enable);
2342 
2353 void MCAN_extTSEnableIntr(uint32_t baseAddr, uint32_t enable);
2354 
2362 void MCAN_extTSWriteEOI(uint32_t baseAddr);
2363 
2374 uint32_t MCAN_extTSGetUnservicedIntrCount(uint32_t baseAddr);
2375 
2376 /* ========================================================================== */
2377 /* Advance Functions */
2378 /* ========================================================================== */
2379 
2387 void MCAN_getRevisionId(uint32_t baseAddr, MCAN_RevisionId *revId);
2388 
2399 uint32_t MCAN_getClockStopAck(uint32_t baseAddr);
2400 
2408 void MCAN_extTSSetRawStatus(uint32_t baseAddr);
2409 
2417 void MCAN_extTSClearRawStatus(uint32_t baseAddr);
2418 
2428 uint32_t MCAN_getRxPinState(uint32_t baseAddr);
2429 
2441 void MCAN_setTxPinState(uint32_t baseAddr, uint32_t state);
2442 
2454 uint32_t MCAN_getTxPinState(uint32_t baseAddr);
2455 
2463 uint32_t MCAN_getTSCounterVal(uint32_t baseAddr);
2464 
2475 uint32_t MCAN_getClkStopAck(uint32_t baseAddr);
2476 
2484 void MCAN_getBitTime(uint32_t baseAddr,
2485  MCAN_BitTimingParams *configParams);
2486 
2493 void MCAN_resetTSCounter(uint32_t baseAddr);
2494 
2502 uint32_t MCAN_getTOCounterVal(uint32_t baseAddr);
2503 
2511 void MCAN_eccAggrGetRevisionId(uint32_t baseAddr,
2512  MCAN_ECCAggrRevisionId *revId);
2513 
2521 void MCAN_eccWrapGetRevisionId(uint32_t baseAddr,
2522  MCAN_ECCWrapRevisionId *revId);
2523 
2534 uint32_t MCAN_extTSIsIntrEnable(uint32_t baseAddr);
2535 
2543 uint32_t MCAN_getEndianVal(uint32_t baseAddr);
2544 
2552 uint32_t MCAN_getExtIDANDMassk(uint32_t baseAddr);
2553 
2554 /* ========================================================================== */
2555 /* Advanced Function Declarations */
2556 /* ========================================================================== */
2564 
2572 
2580 
2588 
2596  *msgRAMConfigParams);
2597 
2607  *msgRAMConfigParams);
2608 
2609 #ifdef __cplusplus
2610 }
2611 
2612 #endif /*extern "C" */
2613 
2614 #endif
2615 
MCAN_RxBufElementNoCpy::data
uint8_t * data
Definition: mcan.h:1539
MCAN_RevisionId::bu
uint32_t bu
Definition: mcan.h:1239
MCAN_ECCErrStatus::secErr
uint32_t secErr
Definition: mcan.h:1208
MCAN_ProtocolStatus::rfdf
uint32_t rfdf
Definition: mcan.h:948
MCAN_ProtocolStatus::tdcv
uint32_t tdcv
Definition: mcan.h:959
MCAN_RxFIFOStatus::getIdx
uint32_t getIdx
Definition: mcan.h:1121
MCAN_ECCWrapRevisionId::scheme
uint32_t scheme
Definition: mcan.h:1313
MCAN_getBitTime
void MCAN_getBitTime(uint32_t baseAddr, MCAN_BitTimingParams *configParams)
This API will get the configured bit timings for MCAN module.
MCAN_readMsgRamNoCpy
void MCAN_readMsgRamNoCpy(uint32_t baseAddr, uint32_t memType, uint32_t bufNum, uint32_t fifoNum, MCAN_RxBufElementNoCpy *elem)
This API is used to read received message from message RAM. This uses the MCAN_RxBufElementNoCpy stru...
MCAN_GlobalFiltConfig
Structure for MCAN Global Filter Configuration parameters.
Definition: mcan.h:736
MCAN_RxBufElement::fdf
uint32_t fdf
Definition: mcan.h:1470
MCAN_InitParams::emulationFAck
uint32_t emulationFAck
Definition: mcan.h:814
MCAN_ProtocolStatus::rbrs
uint32_t rbrs
Definition: mcan.h:943
MCAN_eccGetErrorStatus
void MCAN_eccGetErrorStatus(uint32_t baseAddr, MCAN_ECCErrStatus *eccErr)
This API will return ECC Error status.
MCAN_TxFIFOStatus::freeLvl
uint32_t freeLvl
Definition: mcan.h:1139
MCAN_getWriteMsgElemAddress
int32_t MCAN_getWriteMsgElemAddress(uint32_t baseAddr, uint32_t memType, uint32_t bufNum, uint32_t *elemAddr)
This API is used to get the address of Tx buffer in message ram.
MCAN_TxEventFIFOStatus::putIdx
uint32_t putIdx
Definition: mcan.h:1163
MCAN_MsgRAMConfigParams::lse
uint32_t lse
Definition: mcan.h:980
MCAN_TxBufElementNoCpy::esi
uint32_t esi
Definition: mcan.h:1401
MCAN_ECCConfigParams
Structure for MCAN ECC configuration parameters.
Definition: mcan.h:1290
MCAN_StdMsgIDFilterElement::sfec
uint32_t sfec
Definition: mcan.h:1606
MCAN_ECCErrForceParams::errType
uint32_t errType
Definition: mcan.h:1183
MCAN_RxBufElement
Structure for MCAN Rx Buffer element.
Definition: mcan.h:1439
MCAN_InitParams::efbi
uint32_t efbi
Definition: mcan.h:782
MCAN_TxEventFIFOElement::mm
uint32_t mm
Definition: mcan.h:1593
MCAN_ProtocolStatus::act
uint32_t act
Definition: mcan.h:914
MCAN_IntrLineNum
uint32_t MCAN_IntrLineNum
Enum to select the MCAN interrupt lines.
Definition: mcan.h:351
MCAN_RxBufElement::xtd
uint32_t xtd
Definition: mcan.h:1447
MCAN_TxEventFIFOElement
Structure for MCAN Tx Event FIFO element.
Definition: mcan.h:1549
MCAN_extTSClearRawStatus
void MCAN_extTSClearRawStatus(uint32_t baseAddr)
This API will clear External TimeStamp Counter Overflow Interrupt raw status for MCAN module.
MCAN_ConfigParams::timeoutPreload
uint32_t timeoutPreload
Definition: mcan.h:870
MCAN_RxBufElement::anmf
uint32_t anmf
Definition: mcan.h:1477
MCAN_ECCAggrRevisionId::minor
uint32_t minor
Definition: mcan.h:1282
MCAN_eccAggrGetRevisionId
void MCAN_eccAggrGetRevisionId(uint32_t baseAddr, MCAN_ECCAggrRevisionId *revId)
This API is used get the ECC AGGR revision ID.
MCAN_MsgRAMConfigParams::txStartAddr
uint32_t txStartAddr
Definition: mcan.h:1059
MCAN_TxBufElementNoCpy::xtd
uint32_t xtd
Definition: mcan.h:1396
MCAN_ProtocolStatus::pxe
uint32_t pxe
Definition: mcan.h:954
MCAN_enableIntr
void MCAN_enableIntr(uint32_t baseAddr, uint32_t intrMask, uint32_t enable)
This API is used to enable/disable interrupts.
MCAN_TxEventFIFOElement::esi
uint32_t esi
Definition: mcan.h:1562
MCAN_TxBufElement::xtd
uint32_t xtd
Definition: mcan.h:1341
MCAN_RxBufElementNoCpy::esi
uint32_t esi
Definition: mcan.h:1509
MCAN_setOpMode
void MCAN_setOpMode(uint32_t baseAddr, uint32_t mode)
This API will set MCAN module mode of operation.
MCAN_InitParams::tdcConfig
MCAN_TDCConfig tdcConfig
Definition: mcan.h:828
MCAN_RxFIFOStatus::fifoFull
uint32_t fifoFull
Definition: mcan.h:1125
MCAN_eccClearIntrStatus
void MCAN_eccClearIntrStatus(uint32_t baseAddr, uint32_t errType)
This API is used to clear ECC interrupt status.
MCAN_TxEventFIFOElement::et
uint32_t et
Definition: mcan.h:1585
MCAN_RxFIFOStatus::msgLost
uint32_t msgLost
Definition: mcan.h:1130
MCAN_ConfigParams
Structure for MCAN configuration parameters.
Definition: mcan.h:843
MCAN_PinType
uint32_t MCAN_PinType
Enum to represent the MCAN pin type.
Definition: mcan.h:431
MCAN_getTxEventFIFOStatus
void MCAN_getTxEventFIFOStatus(uint32_t baseAddr, MCAN_TxEventFIFOStatus *fifoStatus)
This API will Tx Event FIFO status.
MCAN_TxBufElement
Structure for MCAN Tx Buffer element.
Definition: mcan.h:1333
MCAN_getRevisionId
void MCAN_getRevisionId(uint32_t baseAddr, MCAN_RevisionId *revId)
This API is used get the MCAN revision ID.
MCAN_MsgRAMConfigParams::rxFIFO0StartAddr
uint32_t rxFIFO0StartAddr
Definition: mcan.h:1065
MCAN_TxEventFIFOElement::xtd
uint32_t xtd
Definition: mcan.h:1557
MCAN_isFDOpEnable
uint32_t MCAN_isFDOpEnable(uint32_t baseAddr)
This API will return flexible data rate operation status MCAN module.
MCAN_ProtocolStatus::dlec
uint32_t dlec
Definition: mcan.h:934
MCAN_MsgRAMConfigParams::rxFIFO0ElemSize
uint32_t rxFIFO0ElemSize
Definition: mcan.h:1033
MCAN_getRxPinState
uint32_t MCAN_getRxPinState(uint32_t baseAddr)
This API will return Rx pin state of MCAN module.
MCAN_MsgRAMConfigParams::rxFIFO1OpMode
uint32_t rxFIFO1OpMode
Definition: mcan.h:1026
MCAN_InitParams::wdcPreload
uint32_t wdcPreload
Definition: mcan.h:824
MCAN_ExtMsgIDFilterElement::efid1
uint32_t efid1
Definition: mcan.h:1634
MCAN_MsgRAMConfigParams::rxBufStartAddr
uint32_t rxBufStartAddr
Definition: mcan.h:1069
MCAN_TxBufElementNoCpy::dlc
uint32_t dlc
Definition: mcan.h:1406
MCAN_ExtMsgIDFilterElement::efid2
uint32_t efid2
Definition: mcan.h:1650
MCAN_MsgRAMConfigParams::txBufElemSize
uint32_t txBufElemSize
Definition: mcan.h:1061
MCAN_txBufCancellationStatus
uint32_t MCAN_txBufCancellationStatus(uint32_t baseAddr)
This API will return Transmit Buffer Cancellation Finished status.
MCAN_ProtocolStatus::busOffStatus
uint32_t busOffStatus
Definition: mcan.h:929
MCAN_ECCErrForceParams
Structure for ECC Error forcing.
Definition: mcan.h:1182
MCAN_MsgRAMConfigParams::txEventFIFOStartAddr
uint32_t txEventFIFOStartAddr
Definition: mcan.h:1063
MCAN_getOpMode
uint32_t MCAN_getOpMode(uint32_t baseAddr)
This API will return MCAN module mode of operation.
MCAN_eccConfig
void MCAN_eccConfig(uint32_t baseAddr, const MCAN_ECCConfigParams *configParams)
This API will enable/disable ECC on the Message RAM.
MCAN_ECCErrType
uint32_t MCAN_ECCErrType
Enum to represent the ECC Error Types.
Definition: mcan.h:567
MCAN_enableIntrLine
void MCAN_enableIntrLine(uint32_t baseAddr, uint32_t lineNum, uint32_t enable)
This API is used to enable/disable selected interrupt line.
MCAN_MsgRAMConfigParams::rxFIFO0WaterMark
uint32_t rxFIFO0WaterMark
Definition: mcan.h:1043
MCAN_MsgRAMConfigParams::rxBufElemSize
uint32_t rxBufElemSize
Definition: mcan.h:1031
MCAN_LpbkMode
uint32_t MCAN_LpbkMode
Enum to select the MCAN Loopback mode.
Definition: mcan.h:583
MCAN_MsgRAMConfigParams::txEventFIFOWaterMark
uint32_t txEventFIFOWaterMark
Definition: mcan.h:1037
MCAN_IntrSrc
uint32_t MCAN_IntrSrc
Enum for MCAN interrupts.
Definition: mcan.h:495
MCAN_TxEventFIFOStatus::fifoFull
uint32_t fifoFull
Definition: mcan.h:1165
MCAN_selectIntrLine
void MCAN_selectIntrLine(uint32_t baseAddr, uint32_t intrMask, uint32_t lineNum)
This API is used to select interrupt line.
MCAN_initMsgRamConfigParams
void MCAN_initMsgRamConfigParams(MCAN_MsgRAMConfigParams *msgRAMConfigParams)
This API will initialize MCAN message config RAM params to default.
MCAN_RxBufElementNoCpy::dlc
uint32_t dlc
Definition: mcan.h:1516
MCAN_ExtMsgIDFilterElement::efec
uint32_t efec
Definition: mcan.h:1636
MCAN_RxFIFONum
uint32_t MCAN_RxFIFONum
Enum to represent the MCAN Rx FIFO number.
Definition: mcan.h:415
MCAN_ErrCntStatus::rpStatus
uint32_t rpStatus
Definition: mcan.h:896
MCAN_TxEventFIFOStatus::fillLvl
uint32_t fillLvl
Definition: mcan.h:1159
MCAN_RxFIFOStatus::putIdx
uint32_t putIdx
Definition: mcan.h:1123
MCAN_MsgRAMConfigParams::flssa
uint32_t flssa
Definition: mcan.h:1055
MCAN_ECCErrStatus::dedErr
uint32_t dedErr
Definition: mcan.h:1213
MCAN_BitTimingParams::nomRatePrescalar
uint32_t nomRatePrescalar
Definition: mcan.h:683
MCAN_TxBufElementNoCpy::data
uint8_t * data
Definition: mcan.h:1429
MCAN_ECCWrapRevisionId::major
uint32_t major
Definition: mcan.h:1321
MCAN_ECCConfigParams::enable
uint32_t enable
Definition: mcan.h:1291
MCAN_calcMsgRamParamsStartAddr
int32_t MCAN_calcMsgRamParamsStartAddr(MCAN_MsgRAMConfigParams *msgRAMConfigParams)
This API will calculate start addresses of message RAM params.
MCAN_getErrCounters
void MCAN_getErrCounters(uint32_t baseAddr, MCAN_ErrCntStatus *errCounter)
This API will return error counter status for MCAN module.
MCAN_RxBufElementNoCpy::fidx
uint32_t fidx
Definition: mcan.h:1532
MCAN_InitParams::fdMode
uint32_t fdMode
Definition: mcan.h:766
MCAN_initSetBitTimeParams
void MCAN_initSetBitTimeParams(MCAN_BitTimingParams *bitTimes)
This API will initialize MCAN GBit Timing params with default 1Mbps and 5Mbps as nominal and data bit...
MCAN_InitParams::pxhddisable
uint32_t pxhddisable
Definition: mcan.h:788
MCAN_TxFIFOStatus::fifoFull
uint32_t fifoFull
Definition: mcan.h:1147
MCAN_ECCConfigParams::enableRdModWr
uint32_t enableRdModWr
Definition: mcan.h:1301
MCAN_RevisionId::rtlRev
uint32_t rtlRev
Definition: mcan.h:1243
MCAN_GlobalFiltConfig::anfe
uint32_t anfe
Definition: mcan.h:747
MCAN_reset
void MCAN_reset(uint32_t baseAddr)
This API is used to initiate reset for MCAN module.
MCAN_RevisionId::modId
uint32_t modId
Definition: mcan.h:1241
MCAN_ComState
uint32_t MCAN_ComState
Enum to represent MCAN's communication state.
Definition: mcan.h:606
MCAN_InitParams::brsEnable
uint32_t brsEnable
Definition: mcan.h:771
MCAN_TimeOutSelect
uint32_t MCAN_TimeOutSelect
Enum to represent the MCAN time-out counter configuration.
Definition: mcan.h:475
MCAN_getExtIDANDMassk
uint32_t MCAN_getExtIDANDMassk(uint32_t baseAddr)
This API will get the configured Extended ID AND Mask.
MCAN_RxBufElement::rtr
uint32_t rtr
Definition: mcan.h:1442
MCAN_isInReset
uint32_t MCAN_isInReset(uint32_t baseAddr)
This function checks if the MCAN module is in Reset.
MCAN_MsgRAMConfigParams::rxFIFO1WaterMark
uint32_t rxFIFO1WaterMark
Definition: mcan.h:1049
MCAN_GlobalFiltConfig::anfs
uint32_t anfs
Definition: mcan.h:753
MCAN_getRxFIFOStatus
void MCAN_getRxFIFOStatus(uint32_t baseAddr, MCAN_RxFIFOStatus *fifoStatus)
This API will Rx FIFO status.
MCAN_extTSIsIntrEnable
uint32_t MCAN_extTSIsIntrEnable(uint32_t baseAddr)
This API returns External TimeStamp Counter Overflow Interrupt enable status for MCAN module.
MCAN_TxEventFIFOElement::fdf
uint32_t fdf
Definition: mcan.h:1580
MCAN_ProtocolStatus::resi
uint32_t resi
Definition: mcan.h:938
MCAN_txBufCancellationIntrEnable
int32_t MCAN_txBufCancellationIntrEnable(uint32_t baseAddr, uint32_t bufNum, uint32_t enable)
This API is used to enable/disable Tx Buffer Cancellation Finished Interrupt.
MCAN_RxBufElement::dlc
uint32_t dlc
Definition: mcan.h:1459
MCAN_ConfigParams::monEnable
uint32_t monEnable
Definition: mcan.h:844
MCAN_getEndianVal
uint32_t MCAN_getEndianVal(uint32_t baseAddr)
This function return endianness value of MCAN module.
MCAN_ECCAggrRevisionId::major
uint32_t major
Definition: mcan.h:1278
MCAN_getTxBufReqPend
uint32_t MCAN_getTxBufReqPend(uint32_t baseAddr)
This API will return Tx Buffer Request Pending status.
MCAN_HighPriorityMsgInfo::filterIdx
uint32_t filterIdx
Definition: mcan.h:1090
MCAN_eccForceError
void MCAN_eccForceError(uint32_t baseAddr, const MCAN_ECCErrForceParams *eccErr)
This API will Force Error on ECC.
MCAN_BitTimingParams::nomTimeSeg2
uint32_t nomTimeSeg2
Definition: mcan.h:691
MCAN_eccWrapGetRevisionId
void MCAN_eccWrapGetRevisionId(uint32_t baseAddr, MCAN_ECCWrapRevisionId *revId)
This API is used get the ECC Wrapper revision ID.
MCAN_clearNewDataStatus
void MCAN_clearNewDataStatus(uint32_t baseAddr, const MCAN_RxNewDataStatus *newDataStatus)
This API clear New Data Message Status.
MCAN_ProtocolStatus
Structure for MCAN protocol status.
Definition: mcan.h:909
MCAN_setBitTime
int32_t MCAN_setBitTime(uint32_t baseAddr, const MCAN_BitTimingParams *configParams)
This API will configure a bit timings for MCAN module.
MCAN_BitTimingParams
Structure for bit timing calculation. Bit timing related to data phase will be valid only in case whe...
Definition: mcan.h:682
MCAN_resetTSCounter
void MCAN_resetTSCounter(uint32_t baseAddr)
This API will reset timestamp counter value.
MCAN_RxBufElementNoCpy::xtd
uint32_t xtd
Definition: mcan.h:1504
MCAN_TxEventFIFOElement::brs
uint32_t brs
Definition: mcan.h:1575
MCAN_ProtocolStatus::errPassive
uint32_t errPassive
Definition: mcan.h:918
MCAN_writeHeaderToMsgRam
void MCAN_writeHeaderToMsgRam(uint32_t baseAddr, uint32_t memType, uint32_t bufNum, const MCAN_TxBufElement *elem)
This API is used to write Tx message Header to message RAM.
MCAN_TxBufElement::esi
uint32_t esi
Definition: mcan.h:1346
MCAN_ProtocolStatus::warningStatus
uint32_t warningStatus
Definition: mcan.h:923
MCAN_RxBufElement::fidx
uint32_t fidx
Definition: mcan.h:1475
MCAN_InitParams::txpEnable
uint32_t txpEnable
Definition: mcan.h:777
MCAN_getClkStopAck
uint32_t MCAN_getClkStopAck(uint32_t baseAddr)
This API will return clock stop acknowledgement for MCAN module.
MCAN_TxFIFOStatus::putIdx
uint32_t putIdx
Definition: mcan.h:1145
MCAN_BitTimingParams::dataTimeSeg1
uint32_t dataTimeSeg1
Definition: mcan.h:703
MCAN_getTOCounterVal
uint32_t MCAN_getTOCounterVal(uint32_t baseAddr)
This API will return current time-out counter value.
MCAN_clearIntrStatus
void MCAN_clearIntrStatus(uint32_t baseAddr, uint32_t intrMask)
This API is used to clear the interrupt status.
MCAN_initOperModeParams
void MCAN_initOperModeParams(MCAN_InitParams *initParams)
This API will initialize MCAN Operating mode params with default values.
MCAN_RxBufElementNoCpy::rxts
uint32_t rxts
Definition: mcan.h:1514
MCAN_InitParams::autoWkupEnable
uint32_t autoWkupEnable
Definition: mcan.h:804
MCAN_ConfigParams::tsSelect
uint32_t tsSelect
Definition: mcan.h:859
MCAN_TxBufElementNoCpy::efc
uint32_t efc
Definition: mcan.h:1422
MCAN_ElemSize
uint32_t MCAN_ElemSize
Enum to represent FIFO/Buffer element Size.
Definition: mcan.h:447
MCAN_ErrCntStatus::transErrLogCnt
uint32_t transErrLogCnt
Definition: mcan.h:892
MCAN_writeMsgRam
void MCAN_writeMsgRam(uint32_t baseAddr, uint32_t memType, uint32_t bufNum, const MCAN_TxBufElement *elem)
This API is used to write Tx message to message RAM.
MCAN_TxBufElementNoCpy::rtr
uint32_t rtr
Definition: mcan.h:1391
MCAN_extTSGetUnservicedIntrCount
uint32_t MCAN_extTSGetUnservicedIntrCount(uint32_t baseAddr)
This API returns Number of unserviced rollover/overflow interrupts for external TimeStamp counter.
MCAN_HighPriorityMsgInfo::filterList
uint32_t filterList
Definition: mcan.h:1092
MCAN_getHighPriorityMsgStatus
void MCAN_getHighPriorityMsgStatus(uint32_t baseAddr, MCAN_HighPriorityMsgInfo *hpm)
This API will return High Priority Message Status.
MCAN_RxBufElementNoCpy::id
uint32_t id
Definition: mcan.h:1497
MCAN_TxEventFIFOStatus::eleLost
uint32_t eleLost
Definition: mcan.h:1170
MCAN_ECCAggrRevisionId
Structure for accessing Revision ID of ECC AGGR.
Definition: mcan.h:1269
MCAN_StdMsgIDFilterElement
Structure for MCAN Standard Message ID Filter Element.
Definition: mcan.h:1601
MCAN_RevisionId::mon
uint32_t mon
Definition: mcan.h:1253
MCAN_RxFIFOStatus
Structure for MCAN Rx FIFO Status.
Definition: mcan.h:1114
MCAN_RxBufElementNoCpy
Structure for MCAN Rx Buffer element which takes data as a pointer. Using this the MCAL CAN driver ca...
Definition: mcan.h:1496
MCAN_ECCWrapRevisionId::modId
uint32_t modId
Definition: mcan.h:1317
MCAN_TDCConfig::tdcf
uint32_t tdcf
Definition: mcan.h:722
MCAN_ECCWrapRevisionId::custom
uint32_t custom
Definition: mcan.h:1323
MCAN_MsgRAMConfigParams::rxFIFO1StartAddr
uint32_t rxFIFO1StartAddr
Definition: mcan.h:1067
MCAN_RxFIFOStatus::num
uint32_t num
Definition: mcan.h:1115
MCAN_HighPriorityMsgInfo
Structure for MCAN High Priority Message.
Definition: mcan.h:1077
MCAN_extTSSetRawStatus
void MCAN_extTSSetRawStatus(uint32_t baseAddr)
This API will set External TimeStamp Counter Overflow Interrupt Raw status for MCAN module.
MCAN_ConfigParams::tsPrescalar
uint32_t tsPrescalar
Definition: mcan.h:855
MCAN_msgRAMConfig
int32_t MCAN_msgRAMConfig(uint32_t baseAddr, const MCAN_MsgRAMConfigParams *msgRAMConfigParams)
This API will configure Different sections of Message RAM.
MCAN_OperationMode
uint32_t MCAN_OperationMode
Enum to represent the MCAN mode of operation.
Definition: mcan.h:383
MCAN_ConfigParams::filterConfig
MCAN_GlobalFiltConfig filterConfig
Definition: mcan.h:881
MCAN_RxNewDataStatus::statusHigh
uint32_t statusHigh
Definition: mcan.h:1106
MCAN_TxEventFIFOStatus::getIdx
uint32_t getIdx
Definition: mcan.h:1161
MCAN_ProtocolStatus::lastErrCode
uint32_t lastErrCode
Definition: mcan.h:910
MCAN_HighPriorityMsgInfo::msi
uint32_t msi
Definition: mcan.h:1082
MCAN_MemType
uint32_t MCAN_MemType
Enum to represent the MCAN Message RAM type.
Definition: mcan.h:399
MCAN_IdType
uint32_t MCAN_IdType
Enum to represent the MCAN Identifier Type.
Definition: mcan.h:367
MCAN_RxBufElementNoCpy::brs
uint32_t brs
Definition: mcan.h:1522
MCAN_InitParams::tdcEnable
uint32_t tdcEnable
Definition: mcan.h:832
MCAN_getNewDataStatus
void MCAN_getNewDataStatus(uint32_t baseAddr, MCAN_RxNewDataStatus *newDataStatus)
This API will return New Data Message Status.
MCAN_eccEnableIntr
void MCAN_eccEnableIntr(uint32_t baseAddr, uint32_t errType, uint32_t enable)
This API is used to enable ECC interrupt.
MCAN_ECCErrStatus::bit1
uint32_t bit1
Definition: mcan.h:1222
MCAN_MsgRAMConfigParams
Structure for MCAN Message RAM Configuration Parameters. Message RAM can contain following sections: ...
Definition: mcan.h:973
MCAN_eccClearErrorStatus
void MCAN_eccClearErrorStatus(uint32_t baseAddr, uint32_t errType)
This API is used to clear the ECC Error status.
MCAN_RevisionId
Structure for accessing Revision ID and Core Release Info. of MCAN module.
Definition: mcan.h:1236
MCAN_extTSWriteEOI
void MCAN_extTSWriteEOI(uint32_t baseAddr)
This API is used to write End of Interrupt for External TimeStamp Counter Overflow Interrupt.
MCAN_readMsgRam
void MCAN_readMsgRam(uint32_t baseAddr, uint32_t memType, uint32_t bufNum, uint32_t fifoNum, MCAN_RxBufElement *elem)
This API is used to read received message form message RAM.
MCAN_MsgRAMConfigParams::rxFIFO0OpMode
uint32_t rxFIFO0OpMode
Definition: mcan.h:1015
MCAN_InitParams::wkupReqEnable
uint32_t wkupReqEnable
Definition: mcan.h:799
MCAN_TxEventFIFOElement::id
uint32_t id
Definition: mcan.h:1550
MCAN_RevisionId::year
uint32_t year
Definition: mcan.h:1255
MCAN_addExtMsgIDFilter
void MCAN_addExtMsgIDFilter(uint32_t baseAddr, uint32_t filtNum, const MCAN_ExtMsgIDFilterElement *elem)
This API is used to add Extended Message ID Filter Element.
MCAN_RevisionId::rel
uint32_t rel
Definition: mcan.h:1261
MCAN_RxBufElement::brs
uint32_t brs
Definition: mcan.h:1465
MCAN_GlobalFiltConfig::rrfs
uint32_t rrfs
Definition: mcan.h:742
MCAN_getProtocolStatus
void MCAN_getProtocolStatus(uint32_t baseAddr, MCAN_ProtocolStatus *protStatus)
This API will return protocol status for MCAN module.
MCAN_BitTimingParams::dataTimeSeg2
uint32_t dataTimeSeg2
Definition: mcan.h:707
MCAN_RevisionId::subStep
uint32_t subStep
Definition: mcan.h:1257
MCAN_ECCErrStatus
Structure for ECC Error Status.
Definition: mcan.h:1207
MCAN_ECCErrStatus::row
uint32_t row
Definition: mcan.h:1218
MCAN_ECCAggrRevisionId::custom
uint32_t custom
Definition: mcan.h:1280
MCAN_TxFIFOStatus
Structure for MCAN Tx FIFO Status.
Definition: mcan.h:1138
MCAN_RxBufElementNoCpy::anmf
uint32_t anmf
Definition: mcan.h:1534
MCAN_MAX_PAYLOAD_BYTES
#define MCAN_MAX_PAYLOAD_BYTES
Maximum payload supported by CAN-FD protocol in bytes.
Definition: mcan.h:149
MCAN_ECCErrForceParams::errOnce
uint32_t errOnce
Definition: mcan.h:1195
MCAN_RevisionId::custom
uint32_t custom
Definition: mcan.h:1247
MCAN_eccWriteEOI
void MCAN_eccWriteEOI(uint32_t baseAddr, uint32_t errType)
This API is used to write End of Interrupt for ECC interrupt.
MCAN_extTSEnableIntr
void MCAN_extTSEnableIntr(uint32_t baseAddr, uint32_t enable)
This API will enable/disable External TimeStamp Counter Overflow Interrupt for MCAN module.
MCAN_TxBufElementNoCpy::brs
uint32_t brs
Definition: mcan.h:1412
MCAN_TxEventFIFOElement::dlc
uint32_t dlc
Definition: mcan.h:1569
MCAN_getTSCounterVal
uint32_t MCAN_getTSCounterVal(uint32_t baseAddr)
This API will return current timestamp counter value.
MCAN_getReadMsgElemAddress
int32_t MCAN_getReadMsgElemAddress(uint32_t baseAddr, uint32_t memType, uint32_t bufNum, uint32_t fifoNum, uint32_t *elemAddr)
This API is used to get the address of Rx buffer in message ram.
MCAN_ECCAggrRevisionId::scheme
uint32_t scheme
Definition: mcan.h:1270
MCAN_InitParams::darEnable
uint32_t darEnable
Definition: mcan.h:793
MCAN_ECCErrForceParams::rowNum
uint32_t rowNum
Definition: mcan.h:1187
MCAN_ECCAggrRevisionId::rtlRev
uint32_t rtlRev
Definition: mcan.h:1276
MCAN_ECCWrapRevisionId::rtlRev
uint32_t rtlRev
Definition: mcan.h:1319
MCAN_writeRxFIFOAck
int32_t MCAN_writeRxFIFOAck(uint32_t baseAddr, uint32_t fifoNum, uint32_t idx)
This API will write Rx FIFO Acknowledgement.
MCAN_MsgRAMConfigParams::txFIFOCnt
uint32_t txFIFOCnt
Definition: mcan.h:992
MCAN_init
int32_t MCAN_init(uint32_t baseAddr, const MCAN_InitParams *initParams)
This API will initialize MCAN module.
MCAN_MsgRAMConfigParams::txEventFIFOCnt
uint32_t txEventFIFOCnt
Definition: mcan.h:1003
MCAN_RevisionId::scheme
uint32_t scheme
Definition: mcan.h:1237
MCAN_ExtMsgIDFilterElement
Structure for MCAN Extended Message ID Filter Element.
Definition: mcan.h:1633
MCAN_ErrCntStatus::recErrCnt
uint32_t recErrCnt
Definition: mcan.h:894
MCAN_StdMsgIDFilterElement::sft
uint32_t sft
Definition: mcan.h:1620
MCAN_InitParams
Structure for MCAN initialization parameters.
Definition: mcan.h:765
MCAN_addStdMsgIDFilter
void MCAN_addStdMsgIDFilter(uint32_t baseAddr, uint32_t filtNum, const MCAN_StdMsgIDFilterElement *elem)
This API is used to add Standard Message ID Filter Element.
MCAN_txBufCancellationReq
int32_t MCAN_txBufCancellationReq(uint32_t baseAddr, uint32_t buffNum)
This API will set Tx Buffer Cancellation Request.
MCAN_writeMsgRamNoCpy
void MCAN_writeMsgRamNoCpy(uint32_t baseAddr, uint32_t memType, uint32_t bufNum, const MCAN_TxBufElementNoCpy *elem)
This API is used to write Tx message to message RAM. This uses the MCAN_TxBufElementNoCpy structure e...
MCAN_writeDmaHeader
int32_t MCAN_writeDmaHeader(const void *data, const MCAN_TxBufElement *elem)
This API is used to write only the message header to MCAN TX data buffer and is required in DMA mode.
MCAN_RxBufElementNoCpy::rtr
uint32_t rtr
Definition: mcan.h:1499
MCAN_RxBufElement::esi
uint32_t esi
Definition: mcan.h:1452
MCAN_MsgRAMConfigParams::flesa
uint32_t flesa
Definition: mcan.h:1057
MCAN_config
int32_t MCAN_config(uint32_t baseAddr, const MCAN_ConfigParams *configParams)
This API will configure MCAN module.
MCAN_TxBufElementNoCpy
Structure for MCAN Tx Buffer element which takes data as a pointer. Using this the MCAL CAN driver ca...
Definition: mcan.h:1388
MCAN_TxBufElementNoCpy::fdf
uint32_t fdf
Definition: mcan.h:1417
MCAN_ErrCntStatus::canErrLogCnt
uint32_t canErrLogCnt
Definition: mcan.h:901
MCAN_TDCConfig::tdco
uint32_t tdco
Definition: mcan.h:726
MCAN_ECCErrForceParams::errForce
uint32_t errForce
Definition: mcan.h:1199
MCAN_ErrCntStatus
Structure for MCAN error logging counters status.
Definition: mcan.h:891
MCAN_TxBufElement::brs
uint32_t brs
Definition: mcan.h:1357
MCAN_ECCErrForceParams::bit1
uint32_t bit1
Definition: mcan.h:1189
MCAN_TxBufElement::id
uint32_t id
Definition: mcan.h:1334
MCAN_TxBufElementNoCpy::mm
uint32_t mm
Definition: mcan.h:1427
MCAN_setTxPinState
void MCAN_setTxPinState(uint32_t baseAddr, uint32_t state)
This API will set Tx pin state of MCAN module.
MCAN_ECCWrapRevisionId
Structure for accessing Revision ID of ECC wrapper.
Definition: mcan.h:1312
MCAN_RxNewDataStatus
Structure for MCAN new data flag for Rx buffer.
Definition: mcan.h:1103
MCAN_lpbkModeEnable
void MCAN_lpbkModeEnable(uint32_t baseAddr, uint32_t lpbkMode, uint32_t enable)
This API will enable/disable Loop Back Test Mode for MCAN module.
MCAN_BitTimingParams::dataSynchJumpWidth
uint32_t dataSynchJumpWidth
Definition: mcan.h:711
MCAN_ErrCode
uint32_t MCAN_ErrCode
Enum to represent MCAN's Error Code.
Definition: mcan.h:626
MCAN_getIntrLineSelectStatus
uint32_t MCAN_getIntrLineSelectStatus(uint32_t baseAddr)
This API is used to get interrupt line selected for each interrupt.
MCAN_ECCAggrRevisionId::bu
uint32_t bu
Definition: mcan.h:1272
MCAN_ConfigParams::timeoutCntEnable
uint32_t timeoutCntEnable
Definition: mcan.h:876
MCAN_RevisionId::day
uint32_t day
Definition: mcan.h:1251
MCAN_TxBufElementNoCpy::id
uint32_t id
Definition: mcan.h:1389
MCAN_RxFIFOStatus::fillLvl
uint32_t fillLvl
Definition: mcan.h:1119
MCAN_writeTxEventFIFOAck
int32_t MCAN_writeTxEventFIFOAck(uint32_t baseAddr, uint32_t idx)
This API will write Event FIFO Acknowledge Index.
MCAN_ECCAggrRevisionId::modId
uint32_t modId
Definition: mcan.h:1274
MCAN_TDCConfig
Structure for MCAN Transmitter Delay Compensation parameters.
Definition: mcan.h:721
MCAN_TxBufElement::mm
uint32_t mm
Definition: mcan.h:1372
MCAN_TxEventFIFOElement::txts
uint32_t txts
Definition: mcan.h:1567
MCAN_getIntrStatus
uint32_t MCAN_getIntrStatus(uint32_t baseAddr)
This API will return interrupt status.
MCAN_ExtMsgIDFilterElement::eft
uint32_t eft
Definition: mcan.h:1652
MCAN_getTxBufTransmissionStatus
uint32_t MCAN_getTxBufTransmissionStatus(uint32_t baseAddr)
This API will return Tx Buffer Transmission Occurred status.
MCAN_TxFIFOStatus::getIdx
uint32_t getIdx
Definition: mcan.h:1141
MCAN_ECCConfigParams::enableChk
uint32_t enableChk
Definition: mcan.h:1296
MCAN_ECCErrStatus::bit2
uint32_t bit2
Definition: mcan.h:1225
MCAN_StdMsgIDFilterElement::sfid2
uint32_t sfid2
Definition: mcan.h:1602
MCAN_initGlobalFilterConfigParams
void MCAN_initGlobalFilterConfigParams(MCAN_ConfigParams *configParams)
This API will initialize MCAN Global Filter config params with default values.
MCAN_MsgRAMConfigParams::txBufCnt
uint32_t txBufCnt
Definition: mcan.h:986
MCAN_RevisionId::major
uint32_t major
Definition: mcan.h:1245
MCAN_eccGetIntrStatus
uint32_t MCAN_eccGetIntrStatus(uint32_t baseAddr, uint32_t errType)
This API is used to get ECC interrupt status.
MCAN_TxEventFIFOStatus
Structure for MCAN Tx Event FIFO Status.
Definition: mcan.h:1158
MCAN_RxBufElementNoCpy::fdf
uint32_t fdf
Definition: mcan.h:1527
MCAN_ConfigParams::asmEnable
uint32_t asmEnable
Definition: mcan.h:849
MCAN_TxEventFIFOElement::rtr
uint32_t rtr
Definition: mcan.h:1552
MCAN_RxBufElement::id
uint32_t id
Definition: mcan.h:1440
MCAN_TxBufElement::efc
uint32_t efc
Definition: mcan.h:1367
MCAN_ECCWrapRevisionId::bu
uint32_t bu
Definition: mcan.h:1315
MCAN_setExtIDAndMask
int32_t MCAN_setExtIDAndMask(uint32_t baseAddr, uint32_t idMask)
This API will configure Extended ID AND Mask.
MCAN_RxBufElement::rxts
uint32_t rxts
Definition: mcan.h:1457
MCAN_getTxFIFOQueStatus
void MCAN_getTxFIFOQueStatus(uint32_t baseAddr, MCAN_TxFIFOStatus *fifoStatus)
This API will Tx FIFO status.
MCAN_extTSCounterEnable
void MCAN_extTSCounterEnable(uint32_t baseAddr, uint32_t enable)
This API will enable/disable fast external time stamp counter for MCAN module.
MCAN_MsgRAMConfigParams::rxFIFO1ElemSize
uint32_t rxFIFO1ElemSize
Definition: mcan.h:1035
MCAN_MsgRAMConfigParams::lss
uint32_t lss
Definition: mcan.h:974
MCAN_BitTimingParams::nomSynchJumpWidth
uint32_t nomSynchJumpWidth
Definition: mcan.h:695
MCAN_RxNewDataStatus::statusLow
uint32_t statusLow
Definition: mcan.h:1104
MCAN_getClockStopAck
uint32_t MCAN_getClockStopAck(uint32_t baseAddr)
This API get clock stop acknowledgement for MCAN module. It return whether MCAN is power down mode or...
MCAN_RevisionId::minor
uint32_t minor
Definition: mcan.h:1249
MCAN_readTxEventFIFO
void MCAN_readTxEventFIFO(uint32_t baseAddr, MCAN_TxEventFIFOElement *txEventElem)
This API is used to read message form Tx Event FIFO.
MCAN_txBufAddReq
int32_t MCAN_txBufAddReq(uint32_t baseAddr, uint32_t bufNum)
This API will set Tx Buffer Add Request.
MCAN_HighPriorityMsgInfo::bufIdx
uint32_t bufIdx
Definition: mcan.h:1078
MCAN_isMemInitDone
uint32_t MCAN_isMemInitDone(uint32_t baseAddr)
This function checks if the memory initialization is done for MCAN module.
MCAN_ECCWrapRevisionId::minor
uint32_t minor
Definition: mcan.h:1325
MCAN_RevisionId::step
uint32_t step
Definition: mcan.h:1259
MCAN_TxBufElement::fdf
uint32_t fdf
Definition: mcan.h:1362
MCAN_getTxPinState
uint32_t MCAN_getTxPinState(uint32_t baseAddr)
This API will return Tx pin state of MCAN module.
MCAN_txBufTransIntrEnable
int32_t MCAN_txBufTransIntrEnable(uint32_t baseAddr, uint32_t bufNum, uint32_t enable)
This API is used to enable/disable Tx Buffer Transmission Interrupt.
MCAN_extTSCounterConfig
void MCAN_extTSCounterConfig(uint32_t baseAddr, uint32_t prescalar)
This API will configure external timestamp counter for MCAN module.
MCAN_ConfigParams::timeoutSelect
uint32_t timeoutSelect
Definition: mcan.h:866
MCAN_BitTimingParams::dataRatePrescalar
uint32_t dataRatePrescalar
Definition: mcan.h:699
MCAN_TxBufElement::dlc
uint32_t dlc
Definition: mcan.h:1351
MCAN_GlobalFiltConfig::rrfe
uint32_t rrfe
Definition: mcan.h:737
MCAN_MsgRAMConfigParams::rxFIFO1Cnt
uint32_t rxFIFO1Cnt
Definition: mcan.h:1020
MCAN_TxBufElement::rtr
uint32_t rtr
Definition: mcan.h:1336
MCAN_BitTimingParams::nomTimeSeg1
uint32_t nomTimeSeg1
Definition: mcan.h:687
MCAN_InitParams::clkStopFAck
uint32_t clkStopFAck
Definition: mcan.h:819
MCAN_StdMsgIDFilterElement::sfid1
uint32_t sfid1
Definition: mcan.h:1604
MCAN_initTxBufElement
void MCAN_initTxBufElement(MCAN_TxBufElement *txMsg)
This API will initialize TX message object with default values.
MCAN_InitParams::emulationEnable
uint32_t emulationEnable
Definition: mcan.h:809
MCAN_MsgRAMConfigParams::rxFIFO0Cnt
uint32_t rxFIFO0Cnt
Definition: mcan.h:1009
MCAN_ECCErrForceParams::bit2
uint32_t bit2
Definition: mcan.h:1193
MCAN_MsgRAMConfigParams::txBufMode
uint32_t txBufMode
Definition: mcan.h:998
MCAN_addClockStopRequest
void MCAN_addClockStopRequest(uint32_t baseAddr, uint32_t enable)
This API add clock stop request for MCAN module to put it in power down mode.