#include <mcp2515.h>
|
enum | ERROR {
ERROR_OK = 0
, ERROR_FAIL = 1
, ERROR_ALLTXBUSY = 2
, ERROR_FAILINIT = 3
,
ERROR_FAILTX = 4
, ERROR_NOMSG = 5
} |
|
enum | MASK { MASK0
, MASK1
} |
|
enum | RXF {
RXF0 = 0
, RXF1 = 1
, RXF2 = 2
, RXF3 = 3
,
RXF4 = 4
, RXF5 = 5
} |
|
enum | RXBn { RXB0 = 0
, RXB1 = 1
} |
|
enum | TXBn { TXB0 = 0
, TXB1 = 1
, TXB2 = 2
} |
|
enum | CANINTF : uint8_t {
CANINTF_RX0IF = 0x01
, CANINTF_RX1IF = 0x02
, CANINTF_TX0IF = 0x04
, CANINTF_TX1IF = 0x08
,
CANINTF_TX2IF = 0x10
, CANINTF_ERRIF = 0x20
, CANINTF_WAKIF = 0x40
, CANINTF_MERRF = 0x80
} |
|
enum | EFLG : uint8_t {
EFLG_RX1OVR = (1<<7)
, EFLG_RX0OVR = (1<<6)
, EFLG_TXBO = (1<<5)
, EFLG_TXEP = (1<<4)
,
EFLG_RXEP = (1<<3)
, EFLG_TXWAR = (1<<2)
, EFLG_RXWAR = (1<<1)
, EFLG_EWARN = (1<<0)
} |
|
◆ CANINTF
Enumerator |
---|
CANINTF_RX0IF | |
CANINTF_RX1IF | |
CANINTF_TX0IF | |
CANINTF_TX1IF | |
CANINTF_TX2IF | |
CANINTF_ERRIF | |
CANINTF_WAKIF | |
CANINTF_MERRF | |
◆ EFLG
Enumerator |
---|
EFLG_RX1OVR | |
EFLG_RX0OVR | |
EFLG_TXBO | |
EFLG_TXEP | |
EFLG_RXEP | |
EFLG_TXWAR | |
EFLG_RXWAR | |
EFLG_EWARN | |
◆ ERROR
Enumerator |
---|
ERROR_OK | |
ERROR_FAIL | |
ERROR_ALLTXBUSY | |
ERROR_FAILINIT | |
ERROR_FAILTX | |
ERROR_NOMSG | |
◆ MASK
◆ RXBn
◆ RXF
Enumerator |
---|
RXF0 | |
RXF1 | |
RXF2 | |
RXF3 | |
RXF4 | |
RXF5 | |
◆ TXBn
◆ MCP2515()
MCP2515::MCP2515 |
( |
const uint8_t |
_CS, |
|
|
const uint32_t |
_SPI_CLOCK = DEFAULT_SPI_CLOCK , |
|
|
SPIClass * |
_SPI = nullptr |
|
) |
| |
◆ checkError()
bool MCP2515::checkError |
( |
void |
| ) |
|
◆ checkReceive()
bool MCP2515::checkReceive |
( |
void |
| ) |
|
◆ clearERRIF()
void MCP2515::clearERRIF |
( |
| ) |
|
◆ clearInterrupts()
void MCP2515::clearInterrupts |
( |
void |
| ) |
|
◆ clearMERR()
void MCP2515::clearMERR |
( |
| ) |
|
◆ clearRXnOVR()
void MCP2515::clearRXnOVR |
( |
void |
| ) |
|
◆ clearRXnOVRFlags()
void MCP2515::clearRXnOVRFlags |
( |
void |
| ) |
|
◆ clearTXInterrupts()
void MCP2515::clearTXInterrupts |
( |
void |
| ) |
|
◆ errorCountRX()
uint8_t MCP2515::errorCountRX |
( |
void |
| ) |
|
◆ errorCountTX()
uint8_t MCP2515::errorCountTX |
( |
void |
| ) |
|
◆ getErrorFlags()
uint8_t MCP2515::getErrorFlags |
( |
void |
| ) |
|
◆ getInterruptMask()
uint8_t MCP2515::getInterruptMask |
( |
void |
| ) |
|
◆ getInterrupts()
uint8_t MCP2515::getInterrupts |
( |
void |
| ) |
|
◆ getStatus()
uint8_t MCP2515::getStatus |
( |
void |
| ) |
|
◆ readMessage() [1/2]
◆ readMessage() [2/2]
◆ reset()
◆ sendMessage() [1/2]
◆ sendMessage() [2/2]
◆ setBitrate() [1/2]
◆ setBitrate() [2/2]
◆ setClkOut()
◆ setConfigMode()
◆ setFilter()
MCP2515::ERROR MCP2515::setFilter |
( |
const RXF |
num, |
|
|
const bool |
ext, |
|
|
const uint32_t |
ulData |
|
) |
| |
◆ setFilterMask()
MCP2515::ERROR MCP2515::setFilterMask |
( |
const MASK |
num, |
|
|
const bool |
ext, |
|
|
const uint32_t |
ulData |
|
) |
| |
◆ setListenOnlyMode()
◆ setLoopbackMode()
◆ setNormalMode()
◆ setSleepMode()
The documentation for this class was generated from the following files: