![]() |
![]() |
The section has a list of all the internal functions used by the driver. More...
Functions | |
| static void | CANFD_MCANInt0Isr (uintptr_t arg) |
| static void | CANFD_MCANInt1Isr (uintptr_t arg) |
| void | MCAN_reset (uint32_t baseAddr) |
| This API is used to initiate reset for MCAN module. More... | |
| uint32_t | MCAN_isInReset (uint32_t baseAddr) |
| This function checks if the MCAN module is in Reset. More... | |
| uint32_t | MCAN_isFDOpEnable (uint32_t baseAddr) |
| This API will return flexible data rate operation status MCAN module. More... | |
| uint32_t | MCAN_isMemInitDone (uint32_t baseAddr) |
| This function checks if the memory initialization is done for MCAN module. More... | |
| void | MCAN_setOpMode (uint32_t baseAddr, uint32_t mode) |
| This API will set MCAN module mode of operation. More... | |
| uint32_t | MCAN_getOpMode (uint32_t baseAddr) |
| This API will return MCAN module mode of operation. More... | |
| int32_t | MCAN_init (uint32_t baseAddr, const CANFD_MCANInitParams *initParams) |
| This API will initialize MCAN module. More... | |
| int32_t | MCAN_config (uint32_t baseAddr, const CANFD_MCANInitParams *configParams) |
| This API will configure MCAN module. More... | |
| void | MCAN_eccConfig (uint32_t baseAddr, const CANFD_MCANECCConfigParams *configParams) |
| This API will enable/disable ECC on the Message RAM. More... | |
| int32_t | MCAN_setBitTime (uint32_t baseAddr, const MCAN_BitTimingParams *configParams) |
| This API will configure a bit timings for MCAN module. More... | |
| int32_t | MCAN_msgRAMConfig (uint32_t baseAddr, const MCAN_MsgRAMConfigParams *msgRAMConfigParams) |
| This API will configure Different sections of Message RAM. More... | |
| int32_t | MCAN_setExtIDAndMask (uint32_t baseAddr, uint32_t idMask) |
| This API will configure Extended ID AND Mask. More... | |
| 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. More... | |
| int32_t | MCAN_txBufAddReq (uint32_t baseAddr, uint32_t bufNum) |
| This API will set Tx Buffer Add Request. More... | |
| void | MCAN_getNewDataStatus (uint32_t baseAddr, MCAN_RxNewDataStatus *newDataStatus) |
| This API will return New Data Message Status. More... | |
| void | MCAN_clearNewDataStatus (uint32_t baseAddr, const MCAN_RxNewDataStatus *newDataStatus) |
| This API clear New Data Message Status. More... | |
| 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. More... | |
| void | MCAN_addStdMsgIDFilter (uint32_t baseAddr, uint32_t filtNum, const MCAN_StdMsgIDFilterElement *elem) |
| This API is used to add Standard Message ID Filter Element. More... | |
| void | MCAN_addExtMsgIDFilter (uint32_t baseAddr, uint32_t filtNum, const MCAN_ExtMsgIDFilterElement *elem) |
| This API is used to add Extended Message ID Filter Element. More... | |
| void | MCAN_lpbkModeEnable (uint32_t baseAddr, uint32_t lpbkMode, uint32_t enable) |
| This API will enable/disable Loop Back Test Mode for MCAN module. More... | |
| void | MCAN_getErrCounters (uint32_t baseAddr, CANFD_MCANErrCntStatus *errCounter) |
| This API will return error counter status for MCAN module. More... | |
| void | MCAN_getProtocolStatus (uint32_t baseAddr, CANFD_MCANProtocolStatus *protStatus) |
| This API will return protocol status for MCAN module. More... | |
| void | MCAN_enableIntr (uint32_t baseAddr, uint32_t intrMask, uint32_t enable) |
| This API is used to enable/disable interrupts. More... | |
| void | MCAN_selectIntrLine (uint32_t baseAddr, uint32_t intrMask, uint32_t lineNum) |
| This API is used to select interrupt line. More... | |
| void | MCAN_enableIntrLine (uint32_t baseAddr, uint32_t lineNum, uint32_t enable) |
| This API is used to enable/disable selected interrupt line. More... | |
| uint32_t | MCAN_getIntrStatus (uint32_t baseAddr) |
| This API will return interrupt status. More... | |
| void | MCAN_clearIntrStatus (uint32_t baseAddr, uint32_t intrMask) |
| This API is used to clear the interrupt status. More... | |
| void | MCAN_getHighPriorityMsgStatus (uint32_t baseAddr, MCAN_HighPriorityMsgInfo *hpm) |
| This API will return High Priority Message Status. More... | |
| void | MCAN_getRxFIFOStatus (uint32_t baseAddr, MCAN_RxFIFOStatus *fifoStatus) |
| This API will Rx FIFO status. More... | |
| int32_t | MCAN_writeRxFIFOAck (uint32_t baseAddr, uint32_t fifoNum, uint32_t idx) |
| This API will write Rx FIFO Acknowledgement. More... | |
| void | MCAN_getTxFIFOQueStatus (uint32_t baseAddr, MCAN_TxFIFOStatus *fifoStatus) |
| This API will Tx FIFO status. More... | |
| uint32_t | MCAN_getTxBufReqPend (uint32_t baseAddr) |
| This API will return Tx Buffer Request Pending status. More... | |
| int32_t | MCAN_txBufCancellationReq (uint32_t baseAddr, uint32_t buffNum) |
| This API will set Tx Buffer Cancellation Request. More... | |
| uint32_t | MCAN_getTxBufTransmissionStatus (uint32_t baseAddr) |
| This API will return Tx Buffer Transmission Occurred status. More... | |
| uint32_t | MCAN_txBufCancellationStatus (uint32_t baseAddr) |
| This API will return Transmit Buffer Cancellation Finished status. More... | |
| int32_t | MCAN_txBufTransIntrEnable (uint32_t baseAddr, uint32_t bufNum, uint32_t enable) |
| This API is used to enable/disable Tx Buffer Transmission Interrupt. More... | |
| int32_t | MCAN_getTxBufCancellationIntrEnable (uint32_t baseAddr, uint32_t bufNum, uint32_t enable) |
| This API is used to enable/disable Tx Buffer Cancellation Finished Interrupt. More... | |
| 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. More... | |
| void | MCAN_getTxEventFIFOStatus (uint32_t baseAddr, MCAN_TxEventFIFOStatus *fifoStatus) |
| This API will Tx Event FIFO status. More... | |
| int32_t | MCAN_writeTxEventFIFOAck (uint32_t baseAddr, uint32_t idx) |
| This API will write Event FIFO Acknowledge Index. More... | |
| void | MCAN_eccForceError (uint32_t baseAddr, const CANFD_MCANECCErrForceParams *eccErr) |
| This API will Force Error on ECC. More... | |
| void | MCAN_eccGetErrorStatus (uint32_t baseAddr, CANFD_MCANECCErrStatus *eccErr) |
| This API will return ECC Error status. More... | |
| void | MCAN_eccClearErrorStatus (uint32_t baseAddr, uint32_t errType) |
| This API is used to clear the ECC Error status. More... | |
| void | MCAN_eccWriteEOI (uint32_t baseAddr, uint32_t errType) |
| This API is used to write End of Interrupt for ECC interrupt. More... | |
| void | MCAN_eccEnableIntr (uint32_t baseAddr, uint32_t errType, uint32_t enable) |
| This API is used to enable ECC interrupt. More... | |
| uint32_t | MCAN_eccGetIntrStatus (uint32_t baseAddr, uint32_t errType) |
| This API is used to get ECC interrupt status. More... | |
| void | MCAN_eccClearIntrStatus (uint32_t baseAddr, uint32_t errType) |
| This API is used to clear ECC interrupt status. More... | |
| void | MCAN_extTSCounterConfig (uint32_t baseAddr, uint32_t prescalar) |
| This API will configure external timestamp counter for MCAN module. More... | |
| void | MCAN_extTSCounterEnable (uint32_t baseAddr, uint32_t enable) |
| This API will enable/disable fast external time stamp counter for MCAN module. More... | |
| void | MCAN_extTSEnableIntr (uint32_t baseAddr, uint32_t enable) |
| This API will enable/disable External TimeStamp Counter Overflow Interrupt for MCAN module. More... | |
| void | MCAN_extTSWriteEOI (uint32_t baseAddr) |
| This API is used to write End of Interrupt for External TimeStamp Counter Overflow Interrupt. More... | |
| uint32_t | MCAN_extTSGetUnservicedIntrCount (uint32_t baseAddr) |
| This API returns Number of unserviced rollover/overflow interrupts for external TimeStamp counter. More... | |
| void | MCAN_getRevisionId (uint32_t baseAddr, MCAN_RevisionId *revId) |
| This API is used get the MCAN revision ID. More... | |
| 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 not. More... | |
| void | MCAN_extTSSetRawStatus (uint32_t baseAddr) |
| This API will set External TimeStamp Counter Overflow Interrupt Raw status for MCAN module. More... | |
| void | MCAN_extTSClearRawStatus (uint32_t baseAddr) |
| This API will clear External TimeStamp Counter Overflow Interrupt raw status for MCAN module. More... | |
| uint32_t | MCAN_getRxPinState (uint32_t baseAddr) |
| This API will return Rx pin state of MCAN module. More... | |
| void | MCAN_setTxPinState (uint32_t baseAddr, uint32_t state) |
| This API will set Tx pin state of MCAN module. More... | |
| uint32_t | MCAN_getTxPinState (uint32_t baseAddr) |
| This API will return Tx pin state of MCAN module. More... | |
| uint32_t | MCAN_getTSCounterVal (uint32_t baseAddr) |
| This API will return current timestamp counter value. More... | |
| uint32_t | MCAN_getClkStopAck (uint32_t baseAddr) |
| This API will return clock stop acknowledgement for MCAN module. More... | |
| void | MCAN_getBitTime (uint32_t baseAddr, MCAN_BitTimingParams *configParams) |
| This API will get the configured bit timings for MCAN module. More... | |
| void | MCAN_resetTSCounter (uint32_t baseAddr) |
| This API will reset timestamp counter value. More... | |
| uint32_t | MCAN_getTOCounterVal (uint32_t baseAddr) |
| This API will return current time-out counter value. More... | |
| void | MCAN_eccAggrGetRevisionId (uint32_t baseAddr, MCAN_ECCAggrRevisionId *revId) |
| This API is used get the ECC AGGR revision ID. More... | |
| void | MCAN_eccWrapGetRevisionId (uint32_t baseAddr, MCAN_ECCWrapRevisionId *revId) |
| This API is used get the ECC Wrapper revision ID. More... | |
| uint32_t | MCAN_extTSIsIntrEnable (uint32_t baseAddr) |
| This API returns External TimeStamp Counter Overflow Interrupt enable status for MCAN module. More... | |
| uint32_t | MCAN_getEndianVal (uint32_t baseAddr) |
| This function return endianness value of MCAN module. More... | |
| uint32_t | MCAN_getExtIDANDMassk (uint32_t baseAddr) |
| This API will get the configured Extended ID AND Mask. More... | |
The section has a list of all the internal functions used by the driver.
|
static |
Description
The function is the registered interrupt 0 ISR for the CANFD Driver.
| [in] | arg | Argument which is registered with the OS while registering the ISR |
| Not | applicable |
|
static |
Description
The function is the registered interrupt 1 ISR for the CANFD Driver.
| [in] | arg | Argument which is registered with the OS while registering the ISR |
| Not | applicable |
| 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.
| baseAddr | Base Address of the MCAN Registers. |
| enable | Add CLock Stop Request. Adds Clock Clock stop Request is TRUE otherwise removes it. |
| void MCAN_addExtMsgIDFilter | ( | uint32_t | baseAddr, |
| uint32_t | filtNum, | ||
| const MCAN_ExtMsgIDFilterElement * | elem | ||
| ) |
This API is used to add Extended Message ID Filter Element.
| baseAddr | Base Address of the MCAN Registers. |
| filtNum | Filter number. |
| elem | Filter Object. Refer struct MCAN_ExtMsgIDFilterElement. |
| void MCAN_addStdMsgIDFilter | ( | uint32_t | baseAddr, |
| uint32_t | filtNum, | ||
| const MCAN_StdMsgIDFilterElement * | elem | ||
| ) |
This API is used to add Standard Message ID Filter Element.
| baseAddr | Base Address of the MCAN Registers. |
| filtNum | Filter number. |
| elem | Filter Object. Refer struct MCAN_StdMsgIDFilterElement. |
| void MCAN_clearIntrStatus | ( | uint32_t | baseAddr, |
| uint32_t | intrMask | ||
| ) |
This API is used to clear the interrupt status.
| baseAddr | Base Address of the MCAN Registers. |
| intrMask | Interrupts to clear status. |
| void MCAN_clearNewDataStatus | ( | uint32_t | baseAddr, |
| const MCAN_RxNewDataStatus * | newDataStatus | ||
| ) |
This API clear New Data Message Status.
| baseAddr | Base Address of the MCAN Registers. |
| newDataStatus | Rx Buffer new data status. Refer struct MCAN_RxNewDataStatus. |
| int32_t MCAN_config | ( | uint32_t | baseAddr, |
| const CANFD_MCANInitParams * | configParams | ||
| ) |
This API will configure MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| configParams | configuration parameters. Refer struct CANFD_MCANInitParams. |
| void MCAN_eccAggrGetRevisionId | ( | uint32_t | baseAddr, |
| MCAN_ECCAggrRevisionId * | revId | ||
| ) |
This API is used get the ECC AGGR revision ID.
| baseAddr | Base Address of the MCAN Registers. |
| revId | Contains Revision ID of ECC AGGR. Refer struct MCAN_ECCAggrRevisionId. |
| void MCAN_eccClearErrorStatus | ( | uint32_t | baseAddr, |
| uint32_t | errType | ||
| ) |
This API is used to clear the ECC Error status.
| baseAddr | Base Address of the MCAN Registers. |
| errType | Error type to clear status. Refer enum CANFD_MCANECCErrType. |
| void MCAN_eccClearIntrStatus | ( | uint32_t | baseAddr, |
| uint32_t | errType | ||
| ) |
This API is used to clear ECC interrupt status.
| baseAddr | Base Address of the MCAN Registers. |
| errType | Interrupt status to clear. Refer enum CANFD_MCANECCErrType. |
| void MCAN_eccConfig | ( | uint32_t | baseAddr, |
| const CANFD_MCANECCConfigParams * | configParams | ||
| ) |
This API will enable/disable ECC on the Message RAM.
| baseAddr | Base Address of the MCAN Registers. |
| configParams | MCAN ECC Configuration Parameters. Refer struct CANFD_MCANECCConfigParams. |
| void MCAN_eccEnableIntr | ( | uint32_t | baseAddr, |
| uint32_t | errType, | ||
| uint32_t | enable | ||
| ) |
This API is used to enable ECC interrupt.
| baseAddr | Base Address of the MCAN Registers. |
| errType | Interrupt to enable. Refer enum CANFD_MCANECCErrType. |
| enable | ECC Interrupt is enabled if it is TRUE. ECC Interrupt is disabled if it is FALSE. |
| void MCAN_eccForceError | ( | uint32_t | baseAddr, |
| const CANFD_MCANECCErrForceParams * | eccErr | ||
| ) |
This API will Force Error on ECC.
| baseAddr | Base Address of the MCAN Registers. |
| eccErr | Force Error on ECC configuration. Refer struct CANFD_MCANECCErrForceParams. |
| void MCAN_eccGetErrorStatus | ( | uint32_t | baseAddr, |
| CANFD_MCANECCErrStatus * | eccErr | ||
| ) |
This API will return ECC Error status.
| baseAddr | Base Address of the MCAN Registers. |
| eccErr | ECC error status. Refer struct CANFD_MCANECCErrStatus. |
| uint32_t MCAN_eccGetIntrStatus | ( | uint32_t | baseAddr, |
| uint32_t | errType | ||
| ) |
This API is used to get ECC interrupt status.
| baseAddr | Base Address of the MCAN Registers. |
| errType | Interrupt status to read. Refer enum CANFD_MCANECCErrType. |
| void MCAN_eccWrapGetRevisionId | ( | uint32_t | baseAddr, |
| MCAN_ECCWrapRevisionId * | revId | ||
| ) |
This API is used get the ECC Wrapper revision ID.
| baseAddr | Base Address of the MCAN Registers. |
| revId | Contains Revision ID of ECC Wrapper Refer struct MCAN_ECCWrapRevisionId. |
| void MCAN_eccWriteEOI | ( | uint32_t | baseAddr, |
| uint32_t | errType | ||
| ) |
This API is used to write End of Interrupt for ECC interrupt.
| baseAddr | Base Address of the MCAN Registers. |
| errType | Interrupt to enable. Refer enum CANFD_MCANECCErrType. |
| void MCAN_enableIntr | ( | uint32_t | baseAddr, |
| uint32_t | intrMask, | ||
| uint32_t | enable | ||
| ) |
This API is used to enable/disable interrupts.
| baseAddr | Base Address of the MCAN Registers. |
| intrMask | Interrupts to enable. Refer enum MCAN_IntrSrc. |
| enable | Interrupt is enabled if it is TRUE. Interrupt is disabled if it is FALSE. |
| void MCAN_enableIntrLine | ( | uint32_t | baseAddr, |
| uint32_t | lineNum, | ||
| uint32_t | enable | ||
| ) |
This API is used to enable/disable selected interrupt line.
| baseAddr | Base Address of the MCAN Registers. |
| lineNum | Interrupt Line to select. Refer enum MCAN_IntrLineNum, |
| enable | Interrupt Line is enabled if it is 1. Interrupt Line is disabled if it is 0. |
| void MCAN_extTSClearRawStatus | ( | uint32_t | baseAddr | ) |
This API will clear External TimeStamp Counter Overflow Interrupt raw status for MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| void MCAN_extTSCounterConfig | ( | uint32_t | baseAddr, |
| uint32_t | prescalar | ||
| ) |
This API will configure external timestamp counter for MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| prescalar | Timestamp Counter Prescaler. Range:[0x0-0xFFFFFF] |
| void MCAN_extTSCounterEnable | ( | uint32_t | baseAddr, |
| uint32_t | enable | ||
| ) |
This API will enable/disable fast external time stamp counter for MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| enable | External TS is enabled if it is 1. External TS is disabled if it is 0. |
| void MCAN_extTSEnableIntr | ( | uint32_t | baseAddr, |
| uint32_t | enable | ||
| ) |
This API will enable/disable External TimeStamp Counter Overflow Interrupt for MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| enable | External TimeStamp Counter Overflow Interrupt is enabled if it is TRUE. External TimeStamp Counter Overflow Interrupt is disabled if it is FALSE. |
| uint32_t MCAN_extTSGetUnservicedIntrCount | ( | uint32_t | baseAddr | ) |
This API returns Number of unserviced rollover/overflow interrupts for external TimeStamp counter.
| baseAddr | Base Address of the MCAN Registers. |
| uint32_t MCAN_extTSIsIntrEnable | ( | uint32_t | baseAddr | ) |
This API returns External TimeStamp Counter Overflow Interrupt enable status for MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| void MCAN_extTSSetRawStatus | ( | uint32_t | baseAddr | ) |
This API will set External TimeStamp Counter Overflow Interrupt Raw status for MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| void MCAN_extTSWriteEOI | ( | uint32_t | baseAddr | ) |
This API is used to write End of Interrupt for External TimeStamp Counter Overflow Interrupt.
| baseAddr | Base Address of the MCAN Registers. |
| void MCAN_getBitTime | ( | uint32_t | baseAddr, |
| MCAN_BitTimingParams * | configParams | ||
| ) |
This API will get the configured bit timings for MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| configParams | Configuration parameters for MCAN bit timing. Refer struct MCAN_BitTimingParams. |
| uint32_t MCAN_getClkStopAck | ( | uint32_t | baseAddr | ) |
This API will return clock stop acknowledgement for MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| 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 not.
| baseAddr | Base Address of the MCAN Registers. |
| uint32_t MCAN_getEndianVal | ( | uint32_t | baseAddr | ) |
This function return endianness value of MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| val | Endianness value. (0x87654321) |
| void MCAN_getErrCounters | ( | uint32_t | baseAddr, |
| CANFD_MCANErrCntStatus * | errCounter | ||
| ) |
This API will return error counter status for MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| errCounter | Error Counter Status. Refer struct CANFD_MCANErrCntStatus. |
| uint32_t MCAN_getExtIDANDMassk | ( | uint32_t | baseAddr | ) |
This API will get the configured Extended ID AND Mask.
| baseAddr | Base Address of the MCAN Registers. |
| void MCAN_getHighPriorityMsgStatus | ( | uint32_t | baseAddr, |
| MCAN_HighPriorityMsgInfo * | hpm | ||
| ) |
This API will return High Priority Message Status.
| baseAddr | Base Address of the MCAN Registers. |
| hpm | High Priority Message Status. Refer struct MCAN_HighPriorityMsgInfo. |
| uint32_t MCAN_getIntrStatus | ( | uint32_t | baseAddr | ) |
This API will return interrupt status.
| baseAddr | Base Address of the MCAN Registers. |
| void MCAN_getNewDataStatus | ( | uint32_t | baseAddr, |
| MCAN_RxNewDataStatus * | newDataStatus | ||
| ) |
This API will return New Data Message Status.
| baseAddr | Base Address of the MCAN Registers. |
| newDataStatus | Rx Buffer new data status. Refer struct MCAN_RxNewDataStatus. |
| uint32_t MCAN_getOpMode | ( | uint32_t | baseAddr | ) |
This API will return MCAN module mode of operation.
| baseAddr | Base Address of the MCAN Registers. |
| void MCAN_getProtocolStatus | ( | uint32_t | baseAddr, |
| CANFD_MCANProtocolStatus * | protStatus | ||
| ) |
This API will return protocol status for MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| protStatus | Protocol Status. Refer struct CANFD_MCANProtocolStatus. |
| void MCAN_getRevisionId | ( | uint32_t | baseAddr, |
| MCAN_RevisionId * | revId | ||
| ) |
This API is used get the MCAN revision ID.
| baseAddr | Base Address of the MCAN Registers. |
| revId | Contains Revision ID of MCAN module. Refer struct MCAN_RevisionId. |
| void MCAN_getRxFIFOStatus | ( | uint32_t | baseAddr, |
| MCAN_RxFIFOStatus * | fifoStatus | ||
| ) |
This API will Rx FIFO status.
| baseAddr | Base Address of the MCAN Registers. |
| fifoStatus | Rx FIFO Status. Refer struct MCAN_RxFIFOStatus. |
| uint32_t MCAN_getRxPinState | ( | uint32_t | baseAddr | ) |
This API will return Rx pin state of MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| uint32_t MCAN_getTOCounterVal | ( | uint32_t | baseAddr | ) |
This API will return current time-out counter value.
| baseAddr | Base Address of the MCAN Registers. |
| uint32_t MCAN_getTSCounterVal | ( | uint32_t | baseAddr | ) |
This API will return current timestamp counter value.
| baseAddr | Base Address of the MCAN Registers. |
| int32_t MCAN_getTxBufCancellationIntrEnable | ( | uint32_t | baseAddr, |
| uint32_t | bufNum, | ||
| uint32_t | enable | ||
| ) |
This API is used to enable/disable Tx Buffer Cancellation Finished Interrupt.
| baseAddr | Base Address of the MCAN Registers. |
| bufNum | Buffer number for which interrupt is to enable. |
| enable | Interrupt is enabled if it is TRUE. Interrupt is disabled if it is FALSE. |
| uint32_t MCAN_getTxBufReqPend | ( | uint32_t | baseAddr | ) |
This API will return Tx Buffer Request Pending status.
| baseAddr | Base Address of the MCAN Registers. |
| uint32_t MCAN_getTxBufTransmissionStatus | ( | uint32_t | baseAddr | ) |
This API will return Tx Buffer Transmission Occurred status.
| baseAddr | Base Address of the MCAN Registers. |
| void MCAN_getTxEventFIFOStatus | ( | uint32_t | baseAddr, |
| MCAN_TxEventFIFOStatus * | fifoStatus | ||
| ) |
This API will Tx Event FIFO status.
| baseAddr | Base Address of the MCAN Registers. |
| fifoStatus | Tx Event FIFO Status. Refer struct MCAN_TxEventFIFOStatus. |
| void MCAN_getTxFIFOQueStatus | ( | uint32_t | baseAddr, |
| MCAN_TxFIFOStatus * | fifoStatus | ||
| ) |
This API will Tx FIFO status.
| baseAddr | Base Address of the MCAN Registers. |
| fifoStatus | Tx FIFO Status. Refer struct MCAN_TxFIFOStatus. |
| uint32_t MCAN_getTxPinState | ( | uint32_t | baseAddr | ) |
This API will return Tx pin state of MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| int32_t MCAN_init | ( | uint32_t | baseAddr, |
| const CANFD_MCANInitParams * | initParams | ||
| ) |
This API will initialize MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| initParams | Initialization parameters. Refer struct CANFD_MCANInitParams. |
| uint32_t MCAN_isFDOpEnable | ( | uint32_t | baseAddr | ) |
This API will return flexible data rate operation status MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| uint32_t MCAN_isInReset | ( | uint32_t | baseAddr | ) |
This function checks if the MCAN module is in Reset.
| baseAddr | Base Address of the MCAN Registers. |
| state | Returns TRUE if not in reset. Else returns FALSE. |
| uint32_t MCAN_isMemInitDone | ( | uint32_t | baseAddr | ) |
This function checks if the memory initialization is done for MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| state | Returns TRUE if memory initialization is done. Else returns FALSE. |
| void MCAN_lpbkModeEnable | ( | uint32_t | baseAddr, |
| uint32_t | lpbkMode, | ||
| uint32_t | enable | ||
| ) |
This API will enable/disable Loop Back Test Mode for MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| lpbkMode | Loopback mode for MCAN. Refer enum CANFD_MCANLoopBackMode. |
| enable | Loop Back Mode is enabled if it is TRUE. Loop Back Mode is disabled if it is FALSE. |
| int32_t MCAN_msgRAMConfig | ( | uint32_t | baseAddr, |
| const MCAN_MsgRAMConfigParams * | msgRAMConfigParams | ||
| ) |
This API will configure Different sections of Message RAM.
| baseAddr | Base Address of the MCAN Registers. |
| msgRAMConfigParams | Message RAM Configuration parameters. Refer struct MCAN_MsgRAMConfigParams. |
| 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.
| baseAddr | Base Address of the MCAN Registers. |
| memType | Part of message ram to which given message to write. Refer enum MCAN_MemType. |
| bufNum | Buffer number from where message is to read. This parameter will ignored if memType is FIFO/Q. |
| fifoNum | FIFOs number from where message is to read. Refer enum MCAN_RxFIFONum. This parameter will ignored if memType is buffer. |
| elem | Message Object. Refer struct MCAN_RxBufElement. |
| void MCAN_reset | ( | uint32_t | baseAddr | ) |
This API is used to initiate reset for MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| void MCAN_resetTSCounter | ( | uint32_t | baseAddr | ) |
This API will reset timestamp counter value.
| baseAddr | Base Address of the MCAN Registers. |
| void MCAN_selectIntrLine | ( | uint32_t | baseAddr, |
| uint32_t | intrMask, | ||
| uint32_t | lineNum | ||
| ) |
This API is used to select interrupt line.
| baseAddr | Base Address of the MCAN Registers. |
| intrMask | Interrupt Number for which interrupt line is to be selected. Refer enum MCAN_IntrSrc. |
| lineNum | Interrupt Line to select. Refer enum MCAN_IntrLineNum, |
| int32_t MCAN_setBitTime | ( | uint32_t | baseAddr, |
| const MCAN_BitTimingParams * | configParams | ||
| ) |
This API will configure a bit timings for MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| configParams | Configuration parameters for MCAN bit timing. Refer struct MCAN_BitTimingParams. |
| int32_t MCAN_setExtIDAndMask | ( | uint32_t | baseAddr, |
| uint32_t | idMask | ||
| ) |
This API will configure Extended ID AND Mask.
| baseAddr | Base Address of the MCAN Registers. |
| idMask | Configuration parameters for MCAN Extended Id mask. This value is 29 bit wide. |
| void MCAN_setOpMode | ( | uint32_t | baseAddr, |
| uint32_t | mode | ||
| ) |
This API will set MCAN module mode of operation.
| baseAddr | Base Address of the MCAN Registers. |
| mode | Mode of operation. Refer enum CANFD_MCANOperationMode. |
| void MCAN_setTxPinState | ( | uint32_t | baseAddr, |
| uint32_t | state | ||
| ) |
This API will set Tx pin state of MCAN module.
| baseAddr | Base Address of the MCAN Registers. |
| 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 others - It will treated as 11. |
| int32_t MCAN_txBufAddReq | ( | uint32_t | baseAddr, |
| uint32_t | bufNum | ||
| ) |
This API will set Tx Buffer Add Request.
| baseAddr | Base Address of the MCAN Registers. |
| bufNum | Tx Buffer number for which request is to be added. |
| int32_t MCAN_txBufCancellationReq | ( | uint32_t | baseAddr, |
| uint32_t | buffNum | ||
| ) |
This API will set Tx Buffer Cancellation Request.
| baseAddr | Base Address of the MCAN Registers. |
| buffNum | Tx Buffer number for which request is to be added. |
| uint32_t MCAN_txBufCancellationStatus | ( | uint32_t | baseAddr | ) |
This API will return Transmit Buffer Cancellation Finished status.
| baseAddr | Base Address of the MCAN Registers. |
| int32_t MCAN_txBufTransIntrEnable | ( | uint32_t | baseAddr, |
| uint32_t | bufNum, | ||
| uint32_t | enable | ||
| ) |
This API is used to enable/disable Tx Buffer Transmission Interrupt.
| baseAddr | Base Address of the MCAN Registers. |
| bufNum | Buffer number for which interrupt is to enable. |
| enable | Interrupt is enabled if it is TRUE. Interrupt is disabled if it is FALSE. |
| 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.
| baseAddr | Base Address of the MCAN Registers. |
| memType | Part of message ram to which given message to write. Refer enum MCAN_MemType. |
| bufNum | Buffer number where message to write. This parameter will ignored if memType is FIFO/Q. |
| elem | Message Object. Refer struct MCAN_TxBufElement. |
| int32_t MCAN_writeRxFIFOAck | ( | uint32_t | baseAddr, |
| uint32_t | fifoNum, | ||
| uint32_t | idx | ||
| ) |
This API will write Rx FIFO Acknowledgement.
| baseAddr | Base Address of the MCAN Registers. Refer enum MCAN_RxFIFONum. |
| fifoNum | FIFO Number. |
| idx | Rx FIFO Acknowledge Index |
| int32_t MCAN_writeTxEventFIFOAck | ( | uint32_t | baseAddr, |
| uint32_t | idx | ||
| ) |
This API will write Event FIFO Acknowledge Index.
| baseAddr | Base Address of the MCAN Registers. |
| idx | Event FIFO Acknowledge Index |