|
| | mcp2518fd (byte _CS) |
| |
| virtual void | enableTxInterrupt (bool enable=true) |
| |
| virtual void | reserveTxBuffers (byte nTxBuf=0) |
| |
| virtual byte | getLastTxBuffer () |
| |
| virtual byte | begin (uint32_t speedset, const byte clockset=MCP2518FD_20MHz) |
| | Init can and set speed.
|
| |
| virtual byte | init_Mask (byte num, byte ext, unsigned long ulData) |
| |
| virtual byte | init_Filt (byte num, byte ext, unsigned long ulData) |
| |
| virtual byte | CANFDSPI_FilterDisable (CAN_FILTER filter) |
| |
| virtual byte | init_Filt_Mask (byte num, byte ext, unsigned long f, unsigned long m) |
| |
| virtual void | setSleepWakeup (const byte enable) |
| |
| virtual byte | sleep () |
| |
| virtual byte | wake () |
| |
| virtual byte | __setMode (const byte opMode) |
| |
| virtual byte | setMode (const byte opMode) |
| |
| virtual byte | getMode () |
| |
| virtual byte | checkError (uint8_t *err_ptr=NULL) |
| |
| virtual byte | checkReceive (void) |
| |
| virtual byte | readMsgBufID (byte status, volatile unsigned long *id, volatile byte *ext, volatile byte *rtr, volatile byte *len, volatile byte *buf) |
| |
| byte | readMsgBufID (unsigned long *ID, byte *len, byte *buf) |
| |
| byte | readMsgBuf (byte *len, byte *buf) |
| |
| virtual byte | trySendMsgBuf (unsigned long id, byte ext, byte rtr, byte dlc, const byte *buf, byte iTxBuf=0xff) |
| |
| virtual byte | sendMsgBuf (byte status, unsigned long id, byte ext, byte rtr, byte dlc, volatile const byte *buf) |
| |
| virtual byte | sendMsgBuf (unsigned long id, byte ext, byte rtr, byte dlc, const byte *buf, bool wait_sent=true) |
| |
| byte | sendMsgBuf (unsigned long id, byte ext, byte len, const byte *buf) |
| |
| virtual void | clearBufferTransmitIfFlags (byte flags=0) |
| |
| virtual byte | readRxTxStatus (void) |
| | Read RX and TX interrupt bits. Function uses status reading, but translates.
|
| |
| virtual byte | checkClearRxStatus (byte *status) |
| | Return first found rx CANINTF status and clears it from parameter.
|
| |
| virtual byte | checkClearTxStatus (byte *status, byte iTxBuf=0xff) |
| | Return specified buffer of first found tx CANINTF status and clears it from parameter.
|
| |
| virtual bool | mcpPinMode (const byte pin, const byte mode) |
| | switch supported pins between HiZ, interrupt, output
|
| |
| virtual bool | mcpDigitalWrite (const byte pin, const byte mode) |
| | write HIGH or LOW from supported pins
|
| |
| virtual byte | mcpDigitalRead (const byte pin) |
| | read HIGH or LOW from supported pins
|
| |
| unsigned long | getCanId (void) |
| |
| byte | isRemoteRequest (void) |
| |
| byte | isExtendedFrame (void) |
| |
| | MCP_CAN (byte _CS) |
| |
| void | init_CS (byte _CS) |
| |
| void | setSPI (SPIClass *_pSPI) |
| |
|
| byte | mcp2518fd_readMsgBufID (volatile byte *len, volatile byte *buf) |
| |
| byte | mcp2518fd_sendMsg (const byte *buf, byte len, unsigned long id, byte ext, byte rtr, bool wait_sent) |
| |
| int8_t | mcp2518fd_receiveMsg () |
| |
| uint8_t | mcp2518fd_init (uint32_t speedset, const byte clock) |
| |
| int8_t | mcp2518fd_reset (void) |
| | Resets device.
|
| |
| int8_t | mcp2518fd_EccEnable (void) |
| | Enable error correcting code.
|
| |
| int8_t | mcp2518fd_RamInit (uint8_t d) |
| | Initialize RAM.
|
| |
| int8_t | mcp2518fd_ConfigureObjectReset (CAN_CONFIG *config) |
| | Configure object reset.
|
| |
| int8_t | mcp2518fd_Configure (CAN_CONFIG *config) |
| | Sets all configuration data from CAN_CONFIG structure.
|
| |
| int8_t | mcp2518fd_TransmitChannelConfigureObjectReset (CAN_TX_FIFO_CONFIG *config) |
| |
| int8_t | mcp2518fd_TransmitChannelConfigure (CAN_FIFO_CHANNEL channel, CAN_TX_FIFO_CONFIG *config) |
| |
| int8_t | mcp2518fd_ReceiveChannelConfigureObjectReset (CAN_RX_FIFO_CONFIG *config) |
| |
| int8_t | mcp2518fd_ReceiveChannelConfigure (CAN_FIFO_CHANNEL channel, CAN_RX_FIFO_CONFIG *config) |
| |
| int8_t | mcp2518fd_FilterObjectConfigure (CAN_FILTER filter, CAN_FILTEROBJ_ID *id) |
| |
| int8_t | mcp2518fd_FilterMaskConfigure (CAN_FILTER filter, CAN_MASKOBJ_ID *mask) |
| |
| int8_t | mcp2518fd_FilterToFifoLink (CAN_FILTER filter, CAN_FIFO_CHANNEL channel, bool enable) |
| |
| int8_t | mcp2518fd_BitTimeConfigure (uint32_t speedset, CAN_SSP_MODE sspMode, CAN_SYSCLK_SPEED clk) |
| |
| int8_t | mcp2518fd_GpioModeConfigure (GPIO_PIN_MODE gpio0, GPIO_PIN_MODE gpio1) |
| |
| int8_t | mcp2518fd_TransmitChannelEventEnable (CAN_FIFO_CHANNEL channel, CAN_TX_FIFO_EVENT flags) |
| |
| int8_t | mcp2518fd_ReceiveChannelEventEnable (CAN_FIFO_CHANNEL channel, CAN_RX_FIFO_EVENT flags) |
| |
| int8_t | mcp2518fd_ModuleEventEnable (CAN_MODULE_EVENT flags) |
| |
| int8_t | mcp2518fd_OperationModeSelect (CAN_OPERATION_MODE opMode) |
| |
| CAN_OPERATION_MODE | mcp2518fd_OperationModeGet () |
| |
| int8_t | mcp2518fd_TransmitMessageQueue () |
| |
| int8_t | mcp2518fd_TransmitChannelEventGet (CAN_FIFO_CHANNEL channel, CAN_TX_FIFO_EVENT *flags) |
| |
| int8_t | mcp2518fd_ErrorCountStateGet (uint8_t *tec, uint8_t *rec, CAN_ERROR_STATE *flags) |
| |
| int8_t | mcp2518fd_TransmitChannelLoad (CAN_FIFO_CHANNEL channel, CAN_TX_MSGOBJ *txObj, uint8_t *txd, uint32_t txdNumBytes, bool flush) |
| |
| int8_t | mcp2518fd_ReceiveChannelEventGet (CAN_FIFO_CHANNEL channel, CAN_RX_FIFO_EVENT *flags) |
| |
| int8_t | mcp2518fd_ReceiveMessageGet (CAN_FIFO_CHANNEL channel, CAN_RX_MSGOBJ *rxObj, uint8_t *rxd, uint8_t nBytes) |
| |
| int8_t | mcp2518fd_ReceiveChannelUpdate (CAN_FIFO_CHANNEL channel) |
| |
| int8_t | mcp2518fd_TransmitChannelUpdate (CAN_FIFO_CHANNEL channel, bool flush) |
| |
| int8_t | mcp2518fd_ReceiveChannelStatusGet (CAN_FIFO_CHANNEL channel, CAN_RX_FIFO_STATUS *status) |
| |
| int8_t | mcp2518fd_ErrorStateGet (CAN_ERROR_STATE *flags) |
| |
| int8_t | mcp2518fd_ModuleEventRxCodeGet (CAN_RXCODE *rxCode) |
| |
| int8_t | mcp2518fd_ModuleEventTxCodeGet (CAN_TXCODE *txCode) |
| |
| int8_t | mcp2518fd_TransmitChannelEventAttemptClear (CAN_FIFO_CHANNEL channel) |
| |
| int8_t | mcp2518fd_LowPowerModeEnable () |
| |
| int8_t | mcp2518fd_LowPowerModeDisable () |
| |
| int8_t | mcp2518fd_ReadByte (uint16_t address, uint8_t *rxd) |
| | Reads byte from breakout board.
|
| |
| int8_t | mcp2518fd_WriteByte (uint16_t address, uint8_t txd) |
| | Writes byte to breakout board.
|
| |
| int8_t | mcp2518fd_ReadWord (uint16_t address, uint32_t *rxd) |
| | Reads 32 bit word from breakout board.
|
| |
| int8_t | mcp2518fd_WriteWord (uint16_t address, uint32_t txd) |
| | Writes 32 bit word to breakout board.
|
| |
| int8_t | mcp2518fd_ReadHalfWord (uint16_t address, uint16_t *rxd) |
| | Reads 16 bit word from breakout board.
|
| |
| int8_t | mcp2518fd_WriteHalfWord (uint16_t address, uint16_t txd) |
| | Writes 16 bit word to breakout board.
|
| |
| int8_t | mcp2518fd_ReadByteArray (uint16_t address, uint8_t *rxd, uint16_t nBytes) |
| | Reads n bytes from breakout board.
|
| |
| int8_t | mcp2518fd_WriteByteArray (uint16_t address, uint8_t *txd, uint16_t nBytes) |
| | Writes n bytes to breakout board.
|
| |
| int8_t | mcp2518fd_WriteByteSafe (uint16_t address, uint8_t txd) |
| | Writes byte to breakout board with CRC method.
|
| |
| int8_t | mcp2518fd_WriteWordSafe (uint16_t address, uint32_t txd) |
| | Writes 32 bit word to breakout board with CRC method.
|
| |
| int8_t | mcp2518fd_ReadByteArrayWithCRC (uint16_t address, uint8_t *rxd, uint16_t nBytes, bool fromRam, bool *crcIsCorrect) |
| | Reads byteS from breakout board with CRC method.
|
| |
| int8_t | mcp2518fd_WriteByteArrayWithCRC (uint16_t address, uint8_t *txd, uint16_t nBytes, bool fromRam) |
| | Write bytes to breakout board with CRC method.
|
| |
| int8_t | mcp2518fd_ReadWordArray (uint16_t address, uint32_t *rxd, uint16_t nWords) |
| | Read 32 bit words from breakout board.
|
| |
| int8_t | mcp2518fd_WriteWordArray (uint16_t address, uint32_t *txd, uint16_t nWords) |
| | Write 32 bit words to breakout board.
|
| |
| int8_t | mcp2518fd_BitTimeConfigureNominal (void) |
| |
| int8_t | mcp2518fd_BitTimeConfigureData (CAN_SSP_MODE sspMode) |
| |
| uint32_t | bittime_compat_to_mcp2518fd (uint32_t speedset) |
| |
| int | calcBittime (const uint32_t inDesiredArbitrationBitRate, const uint32_t inTolerancePPM=10000) |
| | Bittime calculation.
|
| |