![]() |
![]() |
|
MSPM0G1X0X_G3X0X Driver Library
1.10.01.05
|
|
Modules | |
| DL_MCAN_INTERRUPT | |
| DL_MCAN_MSP_INTERRUPT | |
| DL_MCAN_INTR_SRC | |
Data Structures | |
| struct | DL_MCAN_ClockConfig |
| Structure for CANCLK configuration. More... | |
| struct | DL_MCAN_BitTimingParams |
| Structure for bit timing calculation. Bit timing related to data phase will be valid only in case where MCAN is put in CAN-FD mode and will be '0' otherwise. More... | |
| struct | DL_MCAN_TDCConfig |
| Structure for MCAN Transmitter Delay Compensation parameters. More... | |
| struct | DL_MCAN_GlobalFiltConfig |
| Structure for MCAN Global Filter Configuration parameters. More... | |
| struct | DL_MCAN_InitParams |
| Structure for MCAN initialization parameters. More... | |
| struct | DL_MCAN_ConfigParams |
| Structure for MCAN configuration parameters. More... | |
| struct | DL_MCAN_ErrCntStatus |
| Structure for MCAN error logging counters status. More... | |
| struct | DL_MCAN_ProtocolStatus |
| Structure for MCAN protocol status. More... | |
| struct | DL_MCAN_MsgRAMConfigParams |
| Structure for MCAN Message RAM Configuration Parameters. Message RAM can contain following sections: Standard ID filters, Extended ID filters, TX FIFO(or TX Q), TX Buffers, TX EventFIFO, RX FIFO0, RX FIFO1, RX Buffer. Note: If particular section in the RAM is not used then it's size should be initialized to '0' (Number of buffers in case of Tx/Rx buffer). More... | |
| struct | DL_MCAN_HighPriorityMsgInfo |
| Structure for MCAN High Priority Message. More... | |
| struct | DL_MCAN_RxNewDataStatus |
| Structure for MCAN new data flag for Rx buffer. More... | |
| struct | DL_MCAN_RxFIFOStatus |
| Structure for MCAN Rx FIFO Status. More... | |
| struct | DL_MCAN_TxFIFOStatus |
| Structure for MCAN Tx FIFO Status. More... | |
| struct | DL_MCAN_TxEventFIFOStatus |
| Structure for MCAN Tx Event FIFO Status. More... | |
| struct | DL_MCAN_ECCErrForceParams |
| Structure for ECC Error forcing. More... | |
| struct | DL_MCAN_ECCErrStatus |
| Structure for ECC Error Status. More... | |
| struct | DL_MCAN_RevisionId |
| Structure for accessing Revision ID and Core Release Info. of MCAN module. More... | |
| struct | DL_MCAN_ECCAggrRevisionId |
| Structure for accessing Revision ID of ECC AGGR. More... | |
| struct | DL_MCAN_ECCConfigParams |
| Structure for MCAN ECC configuration parameters. More... | |
| struct | DL_MCAN_ECCWrapRevisionId |
| Structure for accessing Revision ID of ECC wrapper. More... | |
| struct | DL_MCAN_TxBufElement |
| Structure for MCAN Tx Buffer element. More... | |
| struct | DL_MCAN_RxBufElement |
| Structure for MCAN Rx Buffer element. More... | |
| struct | DL_MCAN_TxEventFIFOElement |
| Structure for MCAN Tx Event FIFO element. More... | |
| struct | DL_MCAN_StdMsgIDFilterElement |
| Structure for MCAN Standard Message ID Filter Element. More... | |
| struct | DL_MCAN_ExtMsgIDFilterElement |
| Structure for MCAN Extended Message ID Filter Element. More... | |
| struct | DL_MCAN_backupConfig |
| Configuration structure to backup MCAN peripheral state before entering STOP or STANDBY mode. Not required after PG 1.0 silicon. Used by DL_MCAN_saveConfiguration and DL_MCAN_restoreConfiguration. More... | |
Macros | |
| #define | DL_MCAN_INTR_MASK_ALL |
| Macro defines mask for all the interrupts status for MCAN. More... | |
| #define | DL_MCAN_MAX_PAYLOAD_BYTES (64U) |
| Maximum payload supported by CAn-FD protocol in bytes. | |
| #define | DL_MCAN_DBTP_DSJW_MAX (0xFU) |
| Maximum data synch jump width. | |
| #define | DL_MCAN_DBTP_DTSEG2_MAX (0xFU) |
| Max data time segment 2. | |
| #define | DL_MCAN_DBTP_DTSEG1_MAX (0x1FU) |
| Max data time segment 1. | |
| #define | DL_MCAN_DBTP_DBRP_MAX (0x1FU) |
| Max data date rate prescalar. | |
| #define | DL_MCAN_NBTP_NSJW_MAX (0x7FU) |
| Max nom synch jump width. | |
| #define | DL_MCAN_NBTP_NTSEG2_MAX (0x7FU) |
| Max nom synch time segment 2. | |
| #define | DL_MCAN_NBTP_NTSEG1_MAX (0xFFU) |
| Max nom synch time segment 1. | |
| #define | DL_MCAN_NBTP_NBRP_MAX (0x1FFU) |
| Max nom data date rate prescalar. | |
| #define | DL_MCAN_RWD_WDC_MAX (0xFFU) |
| Max wdc preload. | |
| #define | DL_MCAN_TDCR_TDCF_MAX (0x7FU) |
| Transmitter Delay Compensation Filter Window Length. | |
| #define | DL_MCAN_TDCR_TDCO_MAX (0x7FU) |
| Transmitter Delay Compensation Offset. | |
| #define | DL_MCAN_XIDAM_EIDM_MAX (0x1FFFFFFFU) |
| Max MCAN extended id mask. | |
| #define | DL_MCAN_TSCC_TCP_MAX (0xFU) |
| Max timestamp counter prescaler. | |
| #define | DL_MCAN_TOCC_TOP_MAX (0xFFFFU) |
| Max timeout preload. | |
Functions | |
| bool | DL_MCAN_isReady (DL_MCAN_INSTANCE instance) |
| if MCAN instance is ready to be configured More... | |
| void | DL_MCAN_setClockConfig (MCAN_Regs *mcan, DL_MCAN_ClockConfig *config) |
| Configure CANCLK source clock. More... | |
| void | DL_MCAN_getClockConfig (MCAN_Regs *mcan, DL_MCAN_ClockConfig *config) |
| Get CANCLK clock configuration. More... | |
| bool | DL_MCAN_isInReset (MCAN_Regs *mcan) |
| This function checks if the MCAN module is in Reset. More... | |
| bool | DL_MCAN_isFDOpEnable (MCAN_Regs *mcan) |
| This API will return flexible data rate operation status MCAN module. More... | |
| bool | DL_MCAN_isMemInitDone (MCAN_Regs *mcan) |
| This function checks if the memory initialization is done for MCAN module. More... | |
| void | DL_MCAN_setOpMode (MCAN_Regs *mcan, uint32_t mode) |
| This API will set MCAN module mode of operation. More... | |
| uint32_t | DL_MCAN_getOpMode (MCAN_Regs *mcan) |
| This API will return MCAN module mode of operation. More... | |
| int32_t | DL_MCAN_init (MCAN_Regs *mcan, const DL_MCAN_InitParams *initParams) |
| This API will initialize MCAN module. More... | |
| int32_t | DL_MCAN_config (MCAN_Regs *mcan, const DL_MCAN_ConfigParams *configParams) |
| This API will configure MCAN module. More... | |
| void | DL_MCAN_eccConfig (MCAN_Regs *mcan, const DL_MCAN_ECCConfigParams *configParams) |
| This API will enable/disable ECC on the Message RAM. More... | |
| int32_t | DL_MCAN_setBitTime (MCAN_Regs *mcan, const DL_MCAN_BitTimingParams *configParams) |
| This API will configure a bit timings for MCAN module. More... | |
| int32_t | DL_MCAN_msgRAMConfig (MCAN_Regs *mcan, const DL_MCAN_MsgRAMConfigParams *msgRAMConfigParams) |
| This API will configure Different sections of Message RAM. More... | |
| int32_t | DL_MCAN_setExtIDAndMask (MCAN_Regs *mcan, uint32_t idMask) |
| This API will configure Extended ID AND Mask. More... | |
| void | DL_MCAN_writeMsgRam (MCAN_Regs *mcan, uint32_t memType, uint32_t bufNum, const DL_MCAN_TxBufElement *elem) |
| This API is used to write Tx message to message RAM. More... | |
| int32_t | DL_MCAN_TXBufAddReq (MCAN_Regs *mcan, uint32_t bufNum) |
| This API will set Tx Buffer Add Request. More... | |
| void | DL_MCAN_getNewDataStatus (MCAN_Regs *mcan, DL_MCAN_RxNewDataStatus *newDataStatus) |
| This API will return New Data Message Status. More... | |
| void | DL_MCAN_clearNewDataStatus (MCAN_Regs *mcan, const DL_MCAN_RxNewDataStatus *newDataStatus) |
| This API clear New Data Message Status. More... | |
| void | DL_MCAN_readMsgRam (MCAN_Regs *mcan, uint32_t memType, uint32_t bufNum, uint32_t fifoNum, DL_MCAN_RxBufElement *elem) |
| This API is used to read received message form message RAM. More... | |
| void | DL_MCAN_readTxEventFIFO (MCAN_Regs *mcan, DL_MCAN_TxEventFIFOElement *txEventElem) |
| This API is used to read message form Tx Event FIFO. More... | |
| void | DL_MCAN_addStdMsgIDFilter (MCAN_Regs *mcan, uint32_t filtNum, const DL_MCAN_StdMsgIDFilterElement *elem) |
| This API is used to add Standard Message ID Filter Element. More... | |
| void | DL_MCAN_addExtMsgIDFilter (MCAN_Regs *mcan, uint32_t filtNum, const DL_MCAN_ExtMsgIDFilterElement *elem) |
| This API is used to add Extended Message ID Filter Element. More... | |
| void | DL_MCAN_lpbkModeEnable (MCAN_Regs *mcan, uint32_t lpbkMode, bool enable) |
| This API will enable/disable Loop Back Test Mode for MCAN module. More... | |
| void | DL_MCAN_getErrCounters (MCAN_Regs *mcan, DL_MCAN_ErrCntStatus *errCounter) |
| This API will return error counter status for MCAN module. More... | |
| void | DL_MCAN_getProtocolStatus (MCAN_Regs *mcan, DL_MCAN_ProtocolStatus *protStatus) |
| This API will return protocol status for MCAN module. More... | |
| void | DL_MCAN_enableIntr (MCAN_Regs *mcan, uint32_t intrMask, bool enable) |
| This API is used to enable/disable interrupts. More... | |
| void | DL_MCAN_selectIntrLine (MCAN_Regs *mcan, uint32_t intrMask, uint32_t lineNum) |
| This API is used to select interrupt line. More... | |
| uint32_t | DL_MCAN_getIntrLineSelectStatus (MCAN_Regs *mcan) |
| This API is used to get interrupt line selected for each interrupt. More... | |
| void | DL_MCAN_enableIntrLine (MCAN_Regs *mcan, uint32_t lineNum, bool enable) |
| This API is used to enable/disable selected interrupt line. More... | |
| uint32_t | DL_MCAN_getIntrStatus (MCAN_Regs *mcan) |
| This API will return interrupt status. More... | |
| void | DL_MCAN_clearIntrStatus (MCAN_Regs *mcan, uint32_t intrMask, DL_MCAN_INTR_SRC_MCAN eoi) |
| This API is used to clear the interrupt status. More... | |
| void | DL_MCAN_getHighPriorityMsgStatus (MCAN_Regs *mcan, DL_MCAN_HighPriorityMsgInfo *hpm) |
| This API will return High Priority Message Status. More... | |
| void | DL_MCAN_getRxFIFOStatus (MCAN_Regs *mcan, DL_MCAN_RxFIFOStatus *fifoStatus) |
| This API will Rx FIFO status. More... | |
| int32_t | DL_MCAN_writeRxFIFOAck (MCAN_Regs *mcan, uint32_t fifoNum, uint32_t idx) |
| This API will write Rx FIFO Acknowledgement. More... | |
| void | DL_MCAN_getTxFIFOQueStatus (MCAN_Regs *mcan, DL_MCAN_TxFIFOStatus *fifoStatus) |
| This API will Tx FIFO status. More... | |
| uint32_t | DL_MCAN_getTxBufReqPend (MCAN_Regs *mcan) |
| This API will return Tx Buffer Request Pending status. More... | |
| int32_t | DL_MCAN_txBufCancellationReq (MCAN_Regs *mcan, uint32_t buffNum) |
| This API will set Tx Buffer Cancellation Request. More... | |
| uint32_t | DL_MCAN_getTxBufTransmissionStatus (MCAN_Regs *mcan) |
| This API will return Tx Buffer Transmission Occurred status. More... | |
| uint32_t | DL_MCAN_txBufCancellationStatus (MCAN_Regs *mcan) |
| This API will return Transmit Buffer Cancellation Finished status. More... | |
| int32_t | DL_MCAN_TXBufTransIntrEnable (MCAN_Regs *mcan, uint32_t bufNum, bool enable) |
| This API is used to enable/disable Tx Buffer Transmission Interrupt. More... | |
| int32_t | DL_MCAN_getTxBufCancellationIntrEnable (MCAN_Regs *mcan, uint32_t bufNum, bool enable) |
| This API is used to enable/disable Tx Buffer Cancellation Finished Interrupt. More... | |
| void | DL_MCAN_addClockStopRequest (MCAN_Regs *mcan, bool enable) |
| This API add clock stop request for MCAN module to put it in power down mode. More... | |
| void | DL_MCAN_getTxEventFIFOStatus (MCAN_Regs *mcan, DL_MCAN_TxEventFIFOStatus *fifoStatus) |
| This API will Tx Event FIFO status. More... | |
| int32_t | DL_MCAN_writeTxEventFIFOAck (MCAN_Regs *mcan, uint32_t idx) |
| This API will write Event FIFO Acknowledge Index. More... | |
| void | DL_MCAN_eccForceError (MCAN_Regs *mcan, const DL_MCAN_ECCErrForceParams *eccErr) |
| This API will Force Error on ECC. More... | |
| void | DL_MCAN_eccGetErrorStatus (MCAN_Regs *mcan, DL_MCAN_ECCErrStatus *eccErr) |
| This API will return ECC Error status. More... | |
| void | DL_MCAN_eccClearErrorStatus (MCAN_Regs *mcan, uint32_t errType) |
| This API is used to clear the ECC Error status. More... | |
| void | DL_MCAN_eccWriteEOI (MCAN_Regs *mcan, uint32_t errType) |
| This API is used to write End of Interrupt for ECC interrupt. More... | |
| void | DL_MCAN_eccEnableIntr (MCAN_Regs *mcan, uint32_t errType, bool enable) |
| This API is used to enable ECC interrupt. More... | |
| uint32_t | DL_MCAN_eccGetIntrStatus (MCAN_Regs *mcan, uint32_t errType) |
| This API is used to get ECC interrupt status. More... | |
| void | DL_MCAN_eccClearIntrStatus (MCAN_Regs *mcan, uint32_t errType) |
| This API is used to clear ECC interrupt status. More... | |
| void | DL_MCAN_extTSCounterConfig (MCAN_Regs *mcan, uint32_t prescalar) |
| This API will configure external timestamp counter for MCAN module. More... | |
| void | DL_MCAN_extTSCounterEnable (MCAN_Regs *mcan, bool enable) |
| This API will enable/disable fast external time stamp counter for MCAN module. More... | |
| void | DL_MCAN_extTSEnableIntr (MCAN_Regs *mcan, bool enable) |
| This API will enable/disable External TimeStamp Counter Overflow Interrupt for MCAN module. More... | |
| void | DL_MCAN_extTSWriteEOI (MCAN_Regs *mcan) |
| This API is used to write End of Interrupt for External TimeStamp Counter Overflow Interrupt. More... | |
| uint32_t | DL_MCAN_extTSGetUnservicedIntrCount (MCAN_Regs *mcan) |
| This API returns Number of unserviced rollover/overflow interrupts for external TimeStamp counter. More... | |
| void | DL_MCAN_getRevisionId (MCAN_Regs *mcan, DL_MCAN_RevisionId *revId) |
| This API is used get the MCAN revision ID. More... | |
| uint32_t | DL_MCAN_getClockStopAck (MCAN_Regs *mcan) |
| This API get clock stop acknowledgement for MCAN module. It return whether MCAN is power down mode or not. More... | |
| void | DL_MCAN_extTSSetRawStatus (MCAN_Regs *mcan) |
| This API will set External TimeStamp Counter Overflow Interrupt Raw status for MCAN module. More... | |
| void | DL_MCAN_extTSClearRawStatus (MCAN_Regs *mcan) |
| This API will clear External TimeStamp Counter Overflow Interrupt raw status for MCAN module. More... | |
| uint32_t | DL_MCAN_getRxPinState (MCAN_Regs *mcan) |
| This API will return Rx pin state of MCAN module. More... | |
| void | DL_MCAN_setTxPinState (MCAN_Regs *mcan, uint32_t state) |
| This API will set Tx pin state of MCAN module. More... | |
| uint32_t | DL_MCAN_getTxPinState (MCAN_Regs *mcan) |
| This API will return Tx pin state of MCAN module. More... | |
| uint32_t | DL_MCAN_getTSCounterVal (MCAN_Regs *mcan) |
| This API will return current timestamp counter value. More... | |
| uint32_t | DL_MCAN_getClkStopAck (MCAN_Regs *mcan) |
| This API will return clock stop acknowledgement for MCAN module. More... | |
| void | DL_MCAN_getBitTime (MCAN_Regs *mcan, DL_MCAN_BitTimingParams *configParams) |
| This API will get the configured bit timings for MCAN module. More... | |
| void | DL_MCAN_resetTSCounter (MCAN_Regs *mcan) |
| This API will reset timestamp counter value. More... | |
| uint32_t | DL_MCAN_getTOCounterVal (MCAN_Regs *mcan) |
| This API will return current time-out counter value. More... | |
| void | DL_MCAN_eccAggrGetRevisionId (MCAN_Regs *mcan, DL_MCAN_ECCAggrRevisionId *revId) |
| This API is used get the ECC AGGR revision ID. More... | |
| void | DL_MCAN_eccWrapGetRevisionId (MCAN_Regs *mcan, DL_MCAN_ECCWrapRevisionId *revId) |
| This API is used get the ECC Wrapper revision ID. More... | |
| bool | DL_MCAN_extTSIsIntrEnable (MCAN_Regs *mcan) |
| This API returns External TimeStamp Counter Overflow Interrupt enable status for MCAN module. More... | |
| uint32_t | DL_MCAN_getEndianVal (MCAN_Regs *mcan) |
| This function return endianness value of MCAN module. More... | |
| uint32_t | DL_MCAN_getExtIDANDMask (MCAN_Regs *mcan) |
| This API will get the configured Extended ID AND Mask. More... | |
| __STATIC_INLINE void | DL_MCAN_enablePower (MCAN_Regs *mcan) |
| Enables power on MCAN module. More... | |
| __STATIC_INLINE void | DL_MCAN_disablePower (MCAN_Regs *mcan) |
| Disables power on mcan module. More... | |
| __STATIC_INLINE bool | DL_MCAN_isPowerEnabled (MCAN_Regs *mcan) |
| Returns if power on mcan module. More... | |
| __STATIC_INLINE void | DL_MCAN_reset (MCAN_Regs *mcan) |
| Resets mcan peripheral. More... | |
| __STATIC_INLINE bool | DL_MCAN_isReset (MCAN_Regs *mcan) |
| Returns if mcan peripheral was reset. More... | |
| __STATIC_INLINE void | DL_MCAN_enableInterrupt (MCAN_Regs *mcan, uint32_t interruptMask) |
| Enable MCAN interrupts. More... | |
| __STATIC_INLINE void | DL_MCAN_disableInterrupt (MCAN_Regs *mcan, uint32_t interruptMask) |
| Disable MCAN interrupts. More... | |
| __STATIC_INLINE uint32_t | DL_MCAN_getEnabledInterrupts (MCAN_Regs *mcan, uint32_t interruptMask) |
| Check which MCAN interrupts are enabled. More... | |
| __STATIC_INLINE uint32_t | DL_MCAN_getEnabledInterruptStatus (MCAN_Regs *mcan, uint32_t interruptMask) |
| Check interrupt flag of enabled MCAN interrupts. More... | |
| __STATIC_INLINE uint32_t | DL_MCAN_getRawInterruptStatus (MCAN_Regs *mcan, uint32_t interruptMask) |
| Check interrupt flag of any MCAN interrupt. More... | |
| __STATIC_INLINE DL_MCAN_IIDX | DL_MCAN_getPendingInterrupt (MCAN_Regs *mcan) |
| Get highest priority pending MCAN interrupt. More... | |
| __STATIC_INLINE void | DL_MCAN_clearInterruptStatus (MCAN_Regs *mcan, uint32_t interruptMask) |
| Clear pending MCAN interrupts. More... | |
| __STATIC_INLINE bool | DL_MCAN_isModuleClockEnabled (MCAN_Regs *mcan) |
| Checks if the MCAN module clock request is enabled. More... | |
| __STATIC_INLINE void | DL_MCAN_enableModuleClock (MCAN_Regs *mcan) |
| Enables the MCAN functional module clock. More... | |
| __STATIC_INLINE void | DL_MCAN_disableModuleClock (MCAN_Regs *mcan) |
| Disables the MCAN functional module clock. More... | |
| __STATIC_INLINE uint32_t | DL_MCAN_getModuleClockDivider (MCAN_Regs *mcan) |
| Gets the MCAN functional module clock divide ratio. More... | |
| __STATIC_INLINE void | DL_MCAN_setModuleClockDivider (MCAN_Regs *mcan, uint32_t clkdiv) |
| Configures clock divide settings for the MCAN functional module clock. More... | |
| __STATIC_INLINE bool | DL_MCAN_isClockStopGateRequestEnabled (MCAN_Regs *mcan) |
| Checks if the MCAN clock gating request is enabled. More... | |
| __STATIC_INLINE void | DL_MCAN_enableClockStopGateRequest (MCAN_Regs *mcan) |
| Enables the MCAN clock gating request. More... | |
| __STATIC_INLINE void | DL_MCAN_disableClockStopGateRequest (MCAN_Regs *mcan) |
| Disables the MCAN clock gating request. More... | |
| __STATIC_INLINE bool | DL_MCAN_isClockStopWakeupInterruptEnabled (MCAN_Regs *mcan) |
| Checks if the MCAN clock stop wakeup interrupt is enabled. More... | |
| __STATIC_INLINE void | DL_MCAN_enableClockStopWakeupInterrupt (MCAN_Regs *mcan) |
| Enables the MCAN clock stop wakeup interrupt. More... | |
| __STATIC_INLINE void | DL_MCAN_disableClockStopWakeupInterrupt (MCAN_Regs *mcan) |
| Disables the MCAN clock stop wakeup interrupt. More... | |
| __STATIC_INLINE bool | DL_MCAN_isGlitchFilterWakeupEnabled (MCAN_Regs *mcan) |
| Checks if the glitch filter on MCAN RXD input is enabled. More... | |
| __STATIC_INLINE void | DL_MCAN_enableGlitchFilterWakeup (MCAN_Regs *mcan) |
| Enables the glitch filter on MCAN RXD input. More... | |
| __STATIC_INLINE void | DL_MCAN_disableGlitchFilterWakeup (MCAN_Regs *mcan) |
| Disables the glitch filter on MCAN RXD input. More... | |
| __STATIC_INLINE bool | DL_MCAN_getClockStopAcknowledgeStatus (MCAN_Regs *mcan) |
| Gets the clock stop acknowledge status. More... | |
| __STATIC_INLINE bool | DL_MCAN_getClockStopHardwareOverrideStatus (MCAN_Regs *mcan) |
| Gets the clock stop hardware override status. More... | |
| __STATIC_INLINE bool | DL_MCAN_getControllerClockRequestStatus (MCAN_Regs *mcan) |
| Gets the status of MCAN controller clock request from GPRCM. More... | |
| bool | DL_MCAN_saveConfiguration (MCAN_Regs *mcan, DL_MCAN_backupConfig *ptr) |
| Saves MCAN configuration before entering STOP or STANDBY mode. Only necessary for PG 1.0 silicon. More... | |
| bool | DL_MCAN_restoreConfiguration (MCAN_Regs *mcan, DL_MCAN_backupConfig *ptr) |
| Restore MCAN configuration after leaving STOP or STANDBY mode. Only necessary for PG 1.0 silicon. More... | |
The MCAN Driver Library allows full configuration of the MSPM0 MCAN (CAN-FD) module. The Modular Controller Area Network (MCAN) peripheral supports both communication through classic CAN and CAN-FD protocols.
| #define DL_MCAN_INTR_MASK_ALL |
Macro defines mask for all the interrupts status for MCAN.
| enum DL_MCAN_INSTANCE |
| enum DL_MCAN_FCLK |
| enum DL_MCAN_FCLK_DIV |
| enum DL_MCAN_ID_TYPE |
| enum DL_MCAN_MEM_TYPE |
| enum DL_MCAN_RX_FIFO_NUM |
| enum DL_MCAN_PIN_TYPE |
| enum DL_MCAN_ELEM_SIZE |
Enum to represent FIFO/Buffer element Size.
Enum to represent the MCAN time-out counter configuration.
| enum DL_MCAN_ECC_ERR_TYPE |
| enum DL_MCAN_LPBK_MODE |
Enum to select the MCAN Loopback mode.
| enum DL_MCAN_COM_STATE |
Enum to represent MCAN's communication state.
| enum DL_MCAN_ERR_CODE |
Enum to represent MCAN's Error Code.
| enum DL_MCAN_CLOCK_DIVIDE |
| enum DL_MCAN_IIDX |
| bool DL_MCAN_isReady | ( | DL_MCAN_INSTANCE | instance | ) |
if MCAN instance is ready to be configured
| [in] | instance | Specifies the CANFD instance. One of DL_MCAN_INSTANCE |
| void DL_MCAN_setClockConfig | ( | MCAN_Regs * | mcan, |
| DL_MCAN_ClockConfig * | config | ||
| ) |
Configure CANCLK source clock.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | config | Pointer to the clock configuration struct DL_MCAN_ClockConfig. |
| void DL_MCAN_getClockConfig | ( | MCAN_Regs * | mcan, |
| DL_MCAN_ClockConfig * | config | ||
| ) |
Get CANCLK clock configuration.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | config | Pointer to the clock configuration struct DL_MCAN_ClockConfig. |
| bool DL_MCAN_isInReset | ( | MCAN_Regs * | mcan | ) |
This function checks if the MCAN module is in Reset.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| state | Returns TRUE if reset is in progress. Else returns FALSE. |
| bool DL_MCAN_isFDOpEnable | ( | MCAN_Regs * | mcan | ) |
This API will return flexible data rate operation status MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| bool DL_MCAN_isMemInitDone | ( | MCAN_Regs * | mcan | ) |
This function checks if the memory initialization is done for MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| state | Returns TRUE if memory initialization is done. Else returns FALSE. |
| void DL_MCAN_setOpMode | ( | MCAN_Regs * | mcan, |
| uint32_t | mode | ||
| ) |
This API will set MCAN module mode of operation.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | mode | Mode of operation. One of DL_MCAN_OPERATION_MODE. |
| uint32_t DL_MCAN_getOpMode | ( | MCAN_Regs * | mcan | ) |
This API will return MCAN module mode of operation.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| int32_t DL_MCAN_init | ( | MCAN_Regs * | mcan, |
| const DL_MCAN_InitParams * | initParams | ||
| ) |
This API will initialize MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | initParams | Initialization parameters. DL_MCAN_InitParams. |
| int32_t DL_MCAN_config | ( | MCAN_Regs * | mcan, |
| const DL_MCAN_ConfigParams * | configParams | ||
| ) |
This API will configure MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | configParams | Configuration parameters. DL_MCAN_ConfigParams. |
| void DL_MCAN_eccConfig | ( | MCAN_Regs * | mcan, |
| const DL_MCAN_ECCConfigParams * | configParams | ||
| ) |
This API will enable/disable ECC on the Message RAM.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | configParams | MCAN ECC Configuration Parameters. DL_MCAN_ECCConfigParams. |
| int32_t DL_MCAN_setBitTime | ( | MCAN_Regs * | mcan, |
| const DL_MCAN_BitTimingParams * | configParams | ||
| ) |
This API will configure a bit timings for MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | configParams | Configuration parameters for MCAN bit timing. DL_MCAN_BitTimingParams. |
| int32_t DL_MCAN_msgRAMConfig | ( | MCAN_Regs * | mcan, |
| const DL_MCAN_MsgRAMConfigParams * | msgRAMConfigParams | ||
| ) |
This API will configure Different sections of Message RAM.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | msgRAMConfigParams | Message RAM Configuration parameters. DL_MCAN_MsgRAMConfigParams. |
| int32_t DL_MCAN_setExtIDAndMask | ( | MCAN_Regs * | mcan, |
| uint32_t | idMask | ||
| ) |
This API will configure Extended ID AND Mask.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | idMask | Configuration parameters for MCAN Extended Id mask. This value is 29 bit wide. |
| void DL_MCAN_writeMsgRam | ( | MCAN_Regs * | mcan, |
| uint32_t | memType, | ||
| uint32_t | bufNum, | ||
| const DL_MCAN_TxBufElement * | elem | ||
| ) |
This API is used to write Tx message to message RAM.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | memType | Part of message ram to which given message to write. One of DL_MCAN_MEM_TYPE. |
| [in] | bufNum | Buffer number where message to write. This parameter will ignored if memType is FIFO/Q. |
| [in] | elem | Message Object. DL_MCAN_TxBufElement. |
| int32_t DL_MCAN_TXBufAddReq | ( | MCAN_Regs * | mcan, |
| uint32_t | bufNum | ||
| ) |
This API will set Tx Buffer Add Request.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | bufNum | Tx Buffer number for which request is to be added. |
| void DL_MCAN_getNewDataStatus | ( | MCAN_Regs * | mcan, |
| DL_MCAN_RxNewDataStatus * | newDataStatus | ||
| ) |
This API will return New Data Message Status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | newDataStatus | Rx Buffer new data status. DL_MCAN_RxNewDataStatus. |
| void DL_MCAN_clearNewDataStatus | ( | MCAN_Regs * | mcan, |
| const DL_MCAN_RxNewDataStatus * | newDataStatus | ||
| ) |
This API clear New Data Message Status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | newDataStatus | Rx Buffer new data status. DL_MCAN_RxNewDataStatus. |
| void DL_MCAN_readMsgRam | ( | MCAN_Regs * | mcan, |
| uint32_t | memType, | ||
| uint32_t | bufNum, | ||
| uint32_t | fifoNum, | ||
| DL_MCAN_RxBufElement * | elem | ||
| ) |
This API is used to read received message form message RAM.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | memType | Part of message ram to which given message to write.One of DL_MCAN_MEM_TYPE. |
| [in] | bufNum | Buffer number from where message is to read. This parameter will ignored if memType is FIFO/Q. |
| [in] | fifoNum | FIFOs number from where message is to read. One of DL_MCAN_RX_FIFO_NUM. This parameter will ignored if memType is buffer. |
| [in] | elem | Message Object. DL_MCAN_RxBufElement. |
| void DL_MCAN_readTxEventFIFO | ( | MCAN_Regs * | mcan, |
| DL_MCAN_TxEventFIFOElement * | txEventElem | ||
| ) |
This API is used to read message form Tx Event FIFO.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | txEventElem | Tx Event FIFO Message Object. DL_MCAN_TxEventFIFOElement. |
| void DL_MCAN_addStdMsgIDFilter | ( | MCAN_Regs * | mcan, |
| uint32_t | filtNum, | ||
| const DL_MCAN_StdMsgIDFilterElement * | elem | ||
| ) |
This API is used to add Standard Message ID Filter Element.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | filtNum | Filter number. |
| [in] | elem | Filter Object. DL_MCAN_StdMsgIDFilterElement. |
| void DL_MCAN_addExtMsgIDFilter | ( | MCAN_Regs * | mcan, |
| uint32_t | filtNum, | ||
| const DL_MCAN_ExtMsgIDFilterElement * | elem | ||
| ) |
This API is used to add Extended Message ID Filter Element.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | filtNum | Filter number. |
| [in] | elem | Filter Object. DL_MCAN_ExtMsgIDFilterElement. |
| void DL_MCAN_lpbkModeEnable | ( | MCAN_Regs * | mcan, |
| uint32_t | lpbkMode, | ||
| bool | enable | ||
| ) |
This API will enable/disable Loop Back Test Mode for MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | lpbkMode | Loopback mode for MCAN. One of DL_MCAN_LPBK_MODE. |
| [in] | enable | Loop Back Mode is enabled if it is TRUE. Loop Back Mode is disabled if it is FALSE. |
| void DL_MCAN_getErrCounters | ( | MCAN_Regs * | mcan, |
| DL_MCAN_ErrCntStatus * | errCounter | ||
| ) |
This API will return error counter status for MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | errCounter | Error Counter Status. DL_MCAN_ErrCntStatus. |
| void DL_MCAN_getProtocolStatus | ( | MCAN_Regs * | mcan, |
| DL_MCAN_ProtocolStatus * | protStatus | ||
| ) |
This API will return protocol status for MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | protStatus | Protocol Status. DL_MCAN_ProtocolStatus. |
| void DL_MCAN_enableIntr | ( | MCAN_Regs * | mcan, |
| uint32_t | intrMask, | ||
| bool | enable | ||
| ) |
This API is used to enable/disable interrupts.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | intrMask | Interrupts to enable. One of DL_MCAN_INTR_SRC. |
| [in] | enable | Interrupt is enabled if it is TRUE. Interrupt is disabled if it is FALSE. |
| void DL_MCAN_selectIntrLine | ( | MCAN_Regs * | mcan, |
| uint32_t | intrMask, | ||
| uint32_t | lineNum | ||
| ) |
This API is used to select interrupt line.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | intrMask | Interrupt Number for which interrupt line is to be selected. One of DL_MCAN_INTR_SRC. |
| [in] | lineNum | Interrupt Line to select. One of DL_MCAN_INTR_LINE_NUM, |
| uint32_t DL_MCAN_getIntrLineSelectStatus | ( | MCAN_Regs * | mcan | ) |
This API is used to get interrupt line selected for each interrupt.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| void DL_MCAN_enableIntrLine | ( | MCAN_Regs * | mcan, |
| uint32_t | lineNum, | ||
| bool | enable | ||
| ) |
This API is used to enable/disable selected interrupt line.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | lineNum | Interrupt Line to select. One of DL_MCAN_INTR_LINE_NUM, |
| [in] | enable | Interrupt Line is enabled if it is TRUE. Interrupt Line is disabled if it is FALSE. |
| uint32_t DL_MCAN_getIntrStatus | ( | MCAN_Regs * | mcan | ) |
This API will return interrupt status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| void DL_MCAN_clearIntrStatus | ( | MCAN_Regs * | mcan, |
| uint32_t | intrMask, | ||
| DL_MCAN_INTR_SRC_MCAN | eoi | ||
| ) |
This API is used to clear the interrupt status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | intrMask | Interrupts to clear status. |
| [in] | eoi | Specified the associated. DL_MCAN_INTR_SRC |
| void DL_MCAN_getHighPriorityMsgStatus | ( | MCAN_Regs * | mcan, |
| DL_MCAN_HighPriorityMsgInfo * | hpm | ||
| ) |
This API will return High Priority Message Status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | hpm | High Priority Message Status. DL_MCAN_HighPriorityMsgInfo. |
| void DL_MCAN_getRxFIFOStatus | ( | MCAN_Regs * | mcan, |
| DL_MCAN_RxFIFOStatus * | fifoStatus | ||
| ) |
This API will Rx FIFO status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | fifoStatus | Rx FIFO Status. DL_MCAN_RxFIFOStatus. |
| int32_t DL_MCAN_writeRxFIFOAck | ( | MCAN_Regs * | mcan, |
| uint32_t | fifoNum, | ||
| uint32_t | idx | ||
| ) |
This API will write Rx FIFO Acknowledgement.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | fifoNum | FIFO Number. One of DL_MCAN_RX_FIFO_NUM. |
| [in] | idx | Rx FIFO Acknowledge Index |
| void DL_MCAN_getTxFIFOQueStatus | ( | MCAN_Regs * | mcan, |
| DL_MCAN_TxFIFOStatus * | fifoStatus | ||
| ) |
This API will Tx FIFO status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | fifoStatus | Tx FIFO Status. DL_MCAN_TxFIFOStatus. |
| uint32_t DL_MCAN_getTxBufReqPend | ( | MCAN_Regs * | mcan | ) |
This API will return Tx Buffer Request Pending status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| int32_t DL_MCAN_txBufCancellationReq | ( | MCAN_Regs * | mcan, |
| uint32_t | buffNum | ||
| ) |
This API will set Tx Buffer Cancellation Request.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | buffNum | Tx Buffer number for which request is to be added. |
| uint32_t DL_MCAN_getTxBufTransmissionStatus | ( | MCAN_Regs * | mcan | ) |
This API will return Tx Buffer Transmission Occurred status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| uint32_t DL_MCAN_txBufCancellationStatus | ( | MCAN_Regs * | mcan | ) |
This API will return Transmit Buffer Cancellation Finished status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| int32_t DL_MCAN_TXBufTransIntrEnable | ( | MCAN_Regs * | mcan, |
| uint32_t | bufNum, | ||
| bool | enable | ||
| ) |
This API is used to enable/disable Tx Buffer Transmission Interrupt.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | bufNum | Buffer number for which interrupt is to enable. |
| [in] | enable | Interrupt is enabled if it is TRUE. Interrupt is disabled if it is FALSE. |
| int32_t DL_MCAN_getTxBufCancellationIntrEnable | ( | MCAN_Regs * | mcan, |
| uint32_t | bufNum, | ||
| bool | enable | ||
| ) |
This API is used to enable/disable Tx Buffer Cancellation Finished Interrupt.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | bufNum | Buffer number for which interrupt is to enable. |
| [in] | enable | Interrupt is enabled if it is TRUE. Interrupt is disabled if it is FALSE. |
| void DL_MCAN_addClockStopRequest | ( | MCAN_Regs * | mcan, |
| bool | enable | ||
| ) |
This API add clock stop request for MCAN module to put it in power down mode.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | enable | Add Clock Stop Request. Adds Clock Stop Request is TRUE otherwise removes it. |
| void DL_MCAN_getTxEventFIFOStatus | ( | MCAN_Regs * | mcan, |
| DL_MCAN_TxEventFIFOStatus * | fifoStatus | ||
| ) |
This API will Tx Event FIFO status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | fifoStatus | Tx Event FIFO Status. DL_MCAN_TxEventFIFOStatus. |
| int32_t DL_MCAN_writeTxEventFIFOAck | ( | MCAN_Regs * | mcan, |
| uint32_t | idx | ||
| ) |
This API will write Event FIFO Acknowledge Index.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | idx | Event FIFO Acknowledge Index |
| void DL_MCAN_eccForceError | ( | MCAN_Regs * | mcan, |
| const DL_MCAN_ECCErrForceParams * | eccErr | ||
| ) |
This API will Force Error on ECC.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | eccErr | Force Error on ECC configuration. DL_MCAN_ECCErrForceParams. |
| void DL_MCAN_eccGetErrorStatus | ( | MCAN_Regs * | mcan, |
| DL_MCAN_ECCErrStatus * | eccErr | ||
| ) |
This API will return ECC Error status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | eccErr | ECC error status. DL_MCAN_ECCErrStatus. |
| void DL_MCAN_eccClearErrorStatus | ( | MCAN_Regs * | mcan, |
| uint32_t | errType | ||
| ) |
This API is used to clear the ECC Error status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | errType | Error type to clear status. One of DL_MCAN_ECC_ERR_TYPE. |
| void DL_MCAN_eccWriteEOI | ( | MCAN_Regs * | mcan, |
| uint32_t | errType | ||
| ) |
This API is used to write End of Interrupt for ECC interrupt.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | errType | Interrupt to enable. One of DL_MCAN_ECC_ERR_TYPE. |
| void DL_MCAN_eccEnableIntr | ( | MCAN_Regs * | mcan, |
| uint32_t | errType, | ||
| bool | enable | ||
| ) |
This API is used to enable ECC interrupt.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | errType | Interrupt to enable. One of DL_MCAN_ECC_ERR_TYPE. |
| [in] | enable | ECC Interrupt is enabled if it is TRUE. ECC Interrupt is disabled if it is FALSE. |
| uint32_t DL_MCAN_eccGetIntrStatus | ( | MCAN_Regs * | mcan, |
| uint32_t | errType | ||
| ) |
This API is used to get ECC interrupt status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | errType | Interrupt status to read. One of DL_MCAN_ECC_ERR_TYPE. |
| void DL_MCAN_eccClearIntrStatus | ( | MCAN_Regs * | mcan, |
| uint32_t | errType | ||
| ) |
This API is used to clear ECC interrupt status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | errType | Interrupt status to clear. One of DL_MCAN_ECC_ERR_TYPE. |
| void DL_MCAN_extTSCounterConfig | ( | MCAN_Regs * | mcan, |
| uint32_t | prescalar | ||
| ) |
This API will configure external timestamp counter for MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | prescalar | Timestamp Counter Prescaler. Range:[0x0-0xFFFFFF] |
| void DL_MCAN_extTSCounterEnable | ( | MCAN_Regs * | mcan, |
| bool | enable | ||
| ) |
This API will enable/disable fast external time stamp counter for MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | enable | External TS is enabled if it is TRUE. External TS is disabled if it is FALSE. |
| void DL_MCAN_extTSEnableIntr | ( | MCAN_Regs * | mcan, |
| bool | enable | ||
| ) |
This API will enable/disable External TimeStamp Counter Overflow Interrupt for MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | enable | External TimeStamp Counter Overflow Interrupt is enabled if it is TRUE. External TimeStamp Counter Overflow Interrupt is disabled if it is FALSE. |
| void DL_MCAN_extTSWriteEOI | ( | MCAN_Regs * | mcan | ) |
This API is used to write End of Interrupt for External TimeStamp Counter Overflow Interrupt.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| uint32_t DL_MCAN_extTSGetUnservicedIntrCount | ( | MCAN_Regs * | mcan | ) |
This API returns Number of unserviced rollover/overflow interrupts for external TimeStamp counter.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| void DL_MCAN_getRevisionId | ( | MCAN_Regs * | mcan, |
| DL_MCAN_RevisionId * | revId | ||
| ) |
This API is used get the MCAN revision ID.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | revId | Contains Revision ID of MCAN module. DL_MCAN_RevisionId. |
| uint32_t DL_MCAN_getClockStopAck | ( | MCAN_Regs * | mcan | ) |
This API get clock stop acknowledgement for MCAN module. It return whether MCAN is power down mode or not.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| void DL_MCAN_extTSSetRawStatus | ( | MCAN_Regs * | mcan | ) |
This API will set External TimeStamp Counter Overflow Interrupt Raw status for MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| void DL_MCAN_extTSClearRawStatus | ( | MCAN_Regs * | mcan | ) |
This API will clear External TimeStamp Counter Overflow Interrupt raw status for MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| uint32_t DL_MCAN_getRxPinState | ( | MCAN_Regs * | mcan | ) |
This API will return Rx pin state of MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| void DL_MCAN_setTxPinState | ( | MCAN_Regs * | mcan, |
| uint32_t | state | ||
| ) |
This API will set Tx pin state of MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | state | MCAN Tx Pin State. 00= Reset value 01= Sample Point can be monitored at tx pin 10= The CAN bus is dominant 11= The CAN bus is recessive other= It will treated as 11. |
| uint32_t DL_MCAN_getTxPinState | ( | MCAN_Regs * | mcan | ) |
This API will return Tx pin state of MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| uint32_t DL_MCAN_getTSCounterVal | ( | MCAN_Regs * | mcan | ) |
This API will return current timestamp counter value.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| uint32_t DL_MCAN_getClkStopAck | ( | MCAN_Regs * | mcan | ) |
This API will return clock stop acknowledgement for MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| void DL_MCAN_getBitTime | ( | MCAN_Regs * | mcan, |
| DL_MCAN_BitTimingParams * | configParams | ||
| ) |
This API will get the configured bit timings for MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | configParams | Configuration parameters for MCAN bit timing. DL_MCAN_BitTimingParams. |
| void DL_MCAN_resetTSCounter | ( | MCAN_Regs * | mcan | ) |
This API will reset timestamp counter value.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| uint32_t DL_MCAN_getTOCounterVal | ( | MCAN_Regs * | mcan | ) |
This API will return current time-out counter value.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| void DL_MCAN_eccAggrGetRevisionId | ( | MCAN_Regs * | mcan, |
| DL_MCAN_ECCAggrRevisionId * | revId | ||
| ) |
This API is used get the ECC AGGR revision ID.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | revId | Contains Revision ID of ECC AGGR. DL_MCAN_ECCAggrRevisionId. |
| void DL_MCAN_eccWrapGetRevisionId | ( | MCAN_Regs * | mcan, |
| DL_MCAN_ECCWrapRevisionId * | revId | ||
| ) |
This API is used get the ECC Wrapper revision ID.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | revId | Contains Revision ID of ECC Wrapper DL_MCAN_ECCWrapRevisionId. |
| bool DL_MCAN_extTSIsIntrEnable | ( | MCAN_Regs * | mcan | ) |
This API returns External TimeStamp Counter Overflow Interrupt enable status for MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| uint32_t DL_MCAN_getEndianVal | ( | MCAN_Regs * | mcan | ) |
This function return endianness value of MCAN module.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| val | Endianness value. (0x87654321) |
| uint32_t DL_MCAN_getExtIDANDMask | ( | MCAN_Regs * | mcan | ) |
This API will get the configured Extended ID AND Mask.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_MCAN_enablePower | ( | MCAN_Regs * | mcan | ) |
Enables power on MCAN module.
| mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_MCAN_disablePower | ( | MCAN_Regs * | mcan | ) |
Disables power on mcan module.
| mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE bool DL_MCAN_isPowerEnabled | ( | MCAN_Regs * | mcan | ) |
Returns if power on mcan module.
| mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_MCAN_reset | ( | MCAN_Regs * | mcan | ) |
Resets mcan peripheral.
| mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE bool DL_MCAN_isReset | ( | MCAN_Regs * | mcan | ) |
Returns if mcan peripheral was reset.
| mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_MCAN_enableInterrupt | ( | MCAN_Regs * | mcan, |
| uint32_t | interruptMask | ||
| ) |
Enable MCAN interrupts.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | interruptMask | Bit mask of interrupts to enable. Bitwise OR of DL_MCAN_INTERRUPT. |
| __STATIC_INLINE void DL_MCAN_disableInterrupt | ( | MCAN_Regs * | mcan, |
| uint32_t | interruptMask | ||
| ) |
Disable MCAN interrupts.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | interruptMask | Bit mask of interrupts to disable. Bitwise OR of mcan interrupts. |
| __STATIC_INLINE uint32_t DL_MCAN_getEnabledInterrupts | ( | MCAN_Regs * | mcan, |
| uint32_t | interruptMask | ||
| ) |
Check which MCAN interrupts are enabled.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | interruptMask | Bit mask of interrupts to check. Bitwise OR of DL_MCAN_INTERRUPT. |
| Bitwise | OR of DL_MCAN_INTERRUPT values |
| __STATIC_INLINE uint32_t DL_MCAN_getEnabledInterruptStatus | ( | MCAN_Regs * | mcan, |
| uint32_t | interruptMask | ||
| ) |
Check interrupt flag of enabled MCAN interrupts.
Checks if any of the MCAN interrupts that were previously enabled are pending.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | interruptMask | Bit mask of interrupts to check. Bitwise OR of DL_MCAN_INTERRUPT. |
| Bitwise | OR of DL_MCAN_INTERRUPT values |
| __STATIC_INLINE uint32_t DL_MCAN_getRawInterruptStatus | ( | MCAN_Regs * | mcan, |
| uint32_t | interruptMask | ||
| ) |
Check interrupt flag of any MCAN interrupt.
Checks if any of the MCAN interrupts are pending. Interrupts do not have to be previously enabled.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | interruptMask | Bit mask of interrupts to check. Bitwise OR of DL_MCAN_INTERRUPT. |
| Bitwise | OR of DL_MCAN_INTERRUPT values |
| __STATIC_INLINE DL_MCAN_IIDX DL_MCAN_getPendingInterrupt | ( | MCAN_Regs * | mcan | ) |
Get highest priority pending MCAN interrupt.
Checks if any of the MCAN interrupts are pending. Interrupts do not have to be previously enabled.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_MCAN_clearInterruptStatus | ( | MCAN_Regs * | mcan, |
| uint32_t | interruptMask | ||
| ) |
Clear pending MCAN interrupts.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | interruptMask | Bit mask of interrupts to clear. Bitwise OR of DL_MCAN_INTERRUPT. |
| __STATIC_INLINE bool DL_MCAN_isModuleClockEnabled | ( | MCAN_Regs * | mcan | ) |
Checks if the MCAN module clock request is enabled.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_MCAN_enableModuleClock | ( | MCAN_Regs * | mcan | ) |
Enables the MCAN functional module clock.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_MCAN_disableModuleClock | ( | MCAN_Regs * | mcan | ) |
Disables the MCAN functional module clock.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE uint32_t DL_MCAN_getModuleClockDivider | ( | MCAN_Regs * | mcan | ) |
Gets the MCAN functional module clock divide ratio.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_MCAN_setModuleClockDivider | ( | MCAN_Regs * | mcan, |
| uint32_t | clkdiv | ||
| ) |
Configures clock divide settings for the MCAN functional module clock.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | clkdiv | The desired clock divide ratio, one of DL_MCAN_CLOCK_DIVIDE |
References DL_Common_updateReg().
| __STATIC_INLINE bool DL_MCAN_isClockStopGateRequestEnabled | ( | MCAN_Regs * | mcan | ) |
Checks if the MCAN clock gating request is enabled.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_MCAN_enableClockStopGateRequest | ( | MCAN_Regs * | mcan | ) |
Enables the MCAN clock gating request.
| [in] | mcan | Pointer to the register overlay for the peripheral |
References DL_Common_updateReg().
| __STATIC_INLINE void DL_MCAN_disableClockStopGateRequest | ( | MCAN_Regs * | mcan | ) |
Disables the MCAN clock gating request.
| [in] | mcan | Pointer to the register overlay for the peripheral |
References DL_Common_updateReg().
| __STATIC_INLINE bool DL_MCAN_isClockStopWakeupInterruptEnabled | ( | MCAN_Regs * | mcan | ) |
Checks if the MCAN clock stop wakeup interrupt is enabled.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_MCAN_enableClockStopWakeupInterrupt | ( | MCAN_Regs * | mcan | ) |
Enables the MCAN clock stop wakeup interrupt.
| [in] | mcan | Pointer to the register overlay for the peripheral |
References DL_Common_updateReg().
| __STATIC_INLINE void DL_MCAN_disableClockStopWakeupInterrupt | ( | MCAN_Regs * | mcan | ) |
Disables the MCAN clock stop wakeup interrupt.
| [in] | mcan | Pointer to the register overlay for the peripheral |
References DL_Common_updateReg().
| __STATIC_INLINE bool DL_MCAN_isGlitchFilterWakeupEnabled | ( | MCAN_Regs * | mcan | ) |
Checks if the glitch filter on MCAN RXD input is enabled.
When the glitch filter is enabled in MCAN RXD input, it wakes up the MCAN controller to exit clock gating
| [in] | mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE void DL_MCAN_enableGlitchFilterWakeup | ( | MCAN_Regs * | mcan | ) |
Enables the glitch filter on MCAN RXD input.
When the glitch filter is enabled in MCAN RXD input, it wakes up the MCAN controller to exit clock gating
| [in] | mcan | Pointer to the register overlay for the peripheral |
References DL_Common_updateReg().
| __STATIC_INLINE void DL_MCAN_disableGlitchFilterWakeup | ( | MCAN_Regs * | mcan | ) |
Disables the glitch filter on MCAN RXD input.
When the glitch filter is enabled in MCAN RXD input, it wakes up the MCAN controller to exit clock gating
| [in] | mcan | Pointer to the register overlay for the peripheral |
References DL_Common_updateReg().
| __STATIC_INLINE bool DL_MCAN_getClockStopAcknowledgeStatus | ( | MCAN_Regs * | mcan | ) |
Gets the clock stop acknowledge status.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE bool DL_MCAN_getClockStopHardwareOverrideStatus | ( | MCAN_Regs * | mcan | ) |
Gets the clock stop hardware override status.
This bit indicates when the MCANSS_CLKCTL.STOPREQ bit has been cleared by HW when a clock-stop wake-up event via CAN RX activity is triggered
| [in] | mcan | Pointer to the register overlay for the peripheral |
| __STATIC_INLINE bool DL_MCAN_getControllerClockRequestStatus | ( | MCAN_Regs * | mcan | ) |
Gets the status of MCAN controller clock request from GPRCM.
| [in] | mcan | Pointer to the register overlay for the peripheral |
References DL_MCAN_restoreConfiguration(), and DL_MCAN_saveConfiguration().
| bool DL_MCAN_saveConfiguration | ( | MCAN_Regs * | mcan, |
| DL_MCAN_backupConfig * | ptr | ||
| ) |
Saves MCAN configuration before entering STOP or STANDBY mode. Only necessary for PG 1.0 silicon.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | ptr | Configuration backup setup structure. See DL_MCAN_backupConfig. |
| FALSE | if a configuration already exists in ptr (will not be overwritten). TRUE if a configuration was successfully saved |
Referenced by DL_MCAN_getControllerClockRequestStatus().
| bool DL_MCAN_restoreConfiguration | ( | MCAN_Regs * | mcan, |
| DL_MCAN_backupConfig * | ptr | ||
| ) |
Restore MCAN configuration after leaving STOP or STANDBY mode. Only necessary for PG 1.0 silicon.
| [in] | mcan | Pointer to the register overlay for the peripheral |
| [in] | ptr | Configuration backup setup structure. See DL_MCAN_backupConfig. |
| FALSE | if a configuration does not exist in ptr (will not be loaded). TRUE if a configuration successfully loaded |
Referenced by DL_MCAN_getControllerClockRequestStatus().