103 void setSpeed(MCP2515_SPEED_T speed);
123 int id,
bool ext,
bool rtr,
124 std::string payload);
167 MCP2515_TXP_T priority);
179 void abortTX(MCP2515_TX_BUFFER_T bufnum);
195 MCP2515_RXMODE_T rxm);
240 upm_result_t
getRXMsg(MCP2515_RX_BUFFER_T bufnum);
276 return m_message.rtr;
288 return m_message.ext;
300 return m_message.filter_num;
312 return m_message.len;
324 return std::string((
char *)m_message.pkt.data, m_message.len);
337 void installISR(
int pin,
void (*isr)(
void *),
void *arg);
414 void setFilter(MCP2515_RX_FILTER_T filter,
bool ext,
int id);
430 void setMask(MCP2515_RX_MASK_T mask,
bool ext,
int id);
451 std::string
busRead(uint8_t cmd, std::string args,
int datalen);
463 void busWrite(uint8_t cmd, std::string data);
474 void writeReg(uint8_t reg, uint8_t value);
485 void writeRegs(uint8_t reg, std::string buffer);
510 void bitModify(uint8_t addr, uint8_t mask, uint8_t value);
void setIntrFlags(uint8_t flags)
Definition: mcp2515.cxx:171
void uninstallISR()
Definition: mcp2515.cxx:150
MCP2515(int bus, int csPin)
Definition: mcp2515.cxx:35
std::string busRead(uint8_t cmd, std::string args, int datalen)
Definition: mcp2515.cxx:215
void clearErrorFlags(uint8_t flags)
Definition: mcp2515.cxx:194
uint8_t getErrorFlags()
Definition: mcp2515.cxx:185
~MCP2515()
Definition: mcp2515.cxx:43
uint8_t readReg(uint8_t reg)
void reset()
Definition: mcp2515.cxx:48
bool isTXBufferFree(MCP2515_TX_BUFFER_T bufnum)
Definition: mcp2515.cxx:86
void setSpeed(MCP2515_SPEED_T speed)
Definition: mcp2515.cxx:62
void transmitBuffer(MCP2515_TX_BUFFER_T bufnum, bool wait)
Definition: mcp2515.cxx:79
int msgGetPayloadLen()
Definition: mcp2515.hpp:310
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void setRXBufferMode(MCP2515_RX_BUFFER_T bufnum, MCP2515_RXMODE_T rxm)
Definition: mcp2515.cxx:111
void clearIntrFlags(uint8_t flags)
Definition: mcp2515.cxx:178
MCP2515_TX_BUFFER_T findFreeTXBuffer()
Definition: mcp2515.cxx:91
void busWrite(uint8_t cmd, std::string data)
Definition: mcp2515.cxx:226
void setMask(MCP2515_RX_MASK_T mask, bool ext, int id)
Definition: mcp2515.cxx:208
int msgGetID()
Definition: mcp2515.hpp:263
void setOpmode(MCP2515_OPMODE_T opmode)
Definition: mcp2515.cxx:55
void abortTX(MCP2515_TX_BUFFER_T bufnum)
Definition: mcp2515.cxx:104
MCP2515_MSGTYPE_T rxStatusMsgType()
Definition: mcp2515.cxx:123
void writeReg(uint8_t reg, uint8_t value)
Definition: mcp2515.cxx:233
void setFilter(MCP2515_RX_FILTER_T filter, bool ext, int id)
Definition: mcp2515.cxx:201
void bitModify(uint8_t addr, uint8_t mask, uint8_t value)
Definition: mcp2515.cxx:248
void installISR(int pin, void(*isr)(void *), void *arg)
Definition: mcp2515.cxx:143
bool msgGetEXT()
Definition: mcp2515.hpp:286
void loadTXBuffer(MCP2515_TX_BUFFER_T bufnum, int id, bool ext, bool rtr, std::string payload)
Definition: mcp2515.cxx:69
upm_result_t getRXMsg(MCP2515_RX_BUFFER_T bufnum)
Definition: mcp2515.cxx:133
MCP2515_FILTERMATCH_T rxStatusFiltermatch()
Definition: mcp2515.cxx:128
API for the MCP2515 CAN bus controller.
Definition: mcp2515.hpp:59
Definition: mcp2515_regs.h:92
void setTXBufferPriority(MCP2515_TX_BUFFER_T bufnum, MCP2515_TXP_T priority)
Definition: mcp2515.cxx:96
int msgGetFilterNum()
Definition: mcp2515.hpp:298
void printMsg()
Definition: mcp2515.cxx:138
std::string msgGetPayload()
Definition: mcp2515.hpp:322
void writeRegs(uint8_t reg, std::string buffer)
Definition: mcp2515.cxx:240
void setIntrEnables(uint8_t enables)
Definition: mcp2515.cxx:155
MCP2515_RXMSG_T rxStatusMsgs()
Definition: mcp2515.cxx:118
uint8_t getIntrFlags()
Definition: mcp2515.cxx:162
bool msgGetRTR()
Definition: mcp2515.hpp:274