CAN Bus Soldered Arduino Library 1.0.0
This is a library for the MCP2518 Can Bus Breakout by Soldered
Loading...
Searching...
No Matches
CANBus Class Reference

#include <CANBus-SOLDERED.h>

Inherits mcp2518fd.

Public Member Functions

 CANBus (int _pin)
 
- Public Member Functions inherited from mcp2518fd
 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
 
- Public Member Functions inherited from MCP_CAN
unsigned long getCanId (void)
 
byte isRemoteRequest (void)
 
byte isExtendedFrame (void)
 
 MCP_CAN (byte _CS)
 
void init_CS (byte _CS)
 
void setSPI (SPIClass *_pSPI)
 

Additional Inherited Members

- Protected Attributes inherited from MCP_CAN
byte ext_flg
 
unsigned long can_id
 
byte rtr
 
byte SPICS
 
SPIClass * pSPI
 
byte mcpMode
 

Constructor & Destructor Documentation

◆ CANBus()

CANBus::CANBus ( int _pin)
inline

The documentation for this class was generated from the following file: