|
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 MCAN_InitParams *initParams) |
| This API will initialize MCAN module. More...
|
|
int32_t | MCAN_config (uint32_t baseAddr, const MCAN_ConfigParams *configParams) |
| This API will configure MCAN module. More...
|
|
void | MCAN_eccConfig (uint32_t baseAddr, const MCAN_ECCConfigParams *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_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. 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...
|
|
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. More...
|
|
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. 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...
|
|
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 element which has data as a pointer instead of an array. Note that as the data is a pointer here hence corruption of data is possible in case you exceed the payload size. Also, this API should be used instead of MCAN_writeMsgRam in case a copy in the MCAL CAN driver needs to be avoided. Both can not be used together as both have different structure. 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...
|
|
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. 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_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 structure element which has data as pointer instead of an array. Note that as the data is a pointer here hence corruption of data is possible in case you exceed the payload size. Also, this API should be used instead of MCAN_readMsgRam in case a copy in the MCAL CAN driver needs to be avoided. Both can not be used together as both have different structure. More...
|
|
void | MCAN_readTxEventFIFO (uint32_t baseAddr, MCAN_TxEventFIFOElement *txEventElem) |
| This API is used to read message form Tx Event FIFO. 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, MCAN_ErrCntStatus *errCounter) |
| This API will return error counter status for MCAN module. More...
|
|
void | MCAN_getProtocolStatus (uint32_t baseAddr, MCAN_ProtocolStatus *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...
|
|
uint32_t | MCAN_getIntrLineSelectStatus (uint32_t baseAddr) |
| This API is used to get interrupt line selected for each interrupt. 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_txBufCancellationIntrEnable (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 MCAN_ECCErrForceParams *eccErr) |
| This API will Force Error on ECC. More...
|
|
void | MCAN_eccGetErrorStatus (uint32_t baseAddr, MCAN_ECCErrStatus *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...
|
|
void | MCAN_initTxBufElement (MCAN_TxBufElement *txMsg) |
| This API will initialize TX message object with default values. More...
|
|
void | MCAN_initOperModeParams (MCAN_InitParams *initParams) |
| This API will initialize MCAN Operating mode params with default values. More...
|
|
void | MCAN_initGlobalFilterConfigParams (MCAN_ConfigParams *configParams) |
| This API will initialize MCAN Global Filter config params with default values. More...
|
|
void | MCAN_initSetBitTimeParams (MCAN_BitTimingParams *bitTimes) |
| This API will initialize MCAN GBit Timing params with default 1Mbps and 5Mbps as nominal and data bit-rate respectively. More...
|
|
void | MCAN_initMsgRamConfigParams (MCAN_MsgRAMConfigParams *msgRAMConfigParams) |
| This API will initialize MCAN message config RAM params to default. More...
|
|
int32_t | MCAN_calcMsgRamParamsStartAddr (MCAN_MsgRAMConfigParams *msgRAMConfigParams) |
| This API will calculate start addresses of message RAM params. More...
|
|