Loading...
Searching...
No Matches
mcp2515_defines.h File Reference

Driver for the Microchip MCP2515 can controller. More...

Detailed Description

Driver for the Microchip MCP2515 can controller.

Defines for the MCP2515 can controller driver.

MCP2515 SPI CAN Controller Register & Configuration Constant

Author
Toon Stegen toon..nosp@m.steg.nosp@m.en@al.nosp@m.tran.nosp@m..com

Definition in file mcp2515_defines.h.

#include <stdint.h>
+ Include dependency graph for mcp2515_defines.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

MCP2515 Register Memory Map

#define MCP2515_RXF0SIDH   0x00
 
#define MCP2515_RXF0SIDL   0x01
 
#define MCP2515_RXF0EID8   0x02
 
#define MCP2515_RXF0EID0   0x03
 
#define MCP2515_RXF1SIDH   0x04
 
#define MCP2515_RXF1SIDL   0x05
 
#define MCP2515_RXF1EID8   0x06
 
#define MCP2515_RXF1EID0   0x07
 
#define MCP2515_RXF2SIDH   0x08
 
#define MCP2515_RXF2SIDL   0x09
 
#define MCP2515_RXF2EID8   0x0A
 
#define MCP2515_RXF2EID0   0x0B
 
#define MCP2515_BFPCTRL   0x0C
 
#define MCP2515_TXRTSCTRL   0x0D
 
#define MCP2515_CANSTAT   0x0E
 
#define MCP2515_CANCTRL   0x0F
 
#define MCP2515_RXF3SIDH   0x10
 
#define MCP2515_RXF3SIDL   0x11
 
#define MCP2515_RXF3EID8   0x12
 
#define MCP2515_RXF3EID0   0x13
 
#define MCP2515_RXF4SIDH   0x14
 
#define MCP2515_RXF4SIDL   0x15
 
#define MCP2515_RXF4EID8   0x16
 
#define MCP2515_RXF4EID0   0x17
 
#define MCP2515_RXF5SIDH   0x18
 
#define MCP2515_RXF5SIDL   0x19
 
#define MCP2515_RXF5EID8   0x1A
 
#define MCP2515_RXF5EID0   0x1B
 
#define MCP2515_TEC   0x1C
 
#define MCP2515_REC   0x1D
 
#define MCP2515_RXM0SIDH   0x20
 
#define MCP2515_RXM0SIDL   0x21
 
#define MCP2515_RXM0EID8   0x22
 
#define MCP2515_RXM0EID0   0x23
 
#define MCP2515_RXM1SIDH   0x24
 
#define MCP2515_RXM1SIDL   0x25
 
#define MCP2515_RXM1EID8   0x26
 
#define MCP2515_RXM1EID0   0x27
 
#define MCP2515_CNF3   0x28
 
#define MCP2515_CNF2   0x29
 
#define MCP2515_CNF1   0x2A
 
#define MCP2515_CANINTE   0x2B
 
#define MCP2515_CANINTF   0x2C
 
#define MCP2515_EFLG   0x2D
 
#define MCP2515_TXB0CTRL   0x30
 
#define MCP2515_TXB0SIDH   0x31
 
#define MCP2515_TXB0SIDL   0x32
 
#define MCP2515_TXB0EID8   0x33
 
#define MCP2515_TXB0EID0   0x34
 
#define MCP2515_TXB0DLC   0x35
 
#define MCP2515_TXB0D0   0x36
 
#define MCP2515_TXB0D1   0x37
 
#define MCP2515_TXB0D2   0x38
 
#define MCP2515_TXB0D3   0x39
 
#define MCP2515_TXB0D4   0x3A
 
#define MCP2515_TXB0D5   0x3B
 
#define MCP2515_TXB0D6   0x3C
 
#define MCP2515_TXB0D7   0x3D
 
#define MCP2515_TXB1CTRL   0x40
 
#define MCP2515_TXB1SIDH   0x41
 
#define MCP2515_TXB1SIDL   0x42
 
#define MCP2515_TXB1EID8   0x43
 
#define MCP2515_TXB1EID0   0x44
 
#define MCP2515_TXB1DLC   0x45
 
#define MCP2515_TXB1D0   0x46
 
#define MCP2515_TXB1D1   0x47
 
#define MCP2515_TXB1D2   0x48
 
#define MCP2515_TXB1D3   0x49
 
#define MCP2515_TXB1D4   0x4A
 
#define MCP2515_TXB1D5   0x4B
 
#define MCP2515_TXB1D6   0x4C
 
#define MCP2515_TXB1D7   0x4D
 
#define MCP2515_TXB2CTRL   0x50
 
#define MCP2515_TXB2SIDH   0x51
 
#define MCP2515_TXB2SIDL   0x52
 
#define MCP2515_TXB2EID8   0x53
 
#define MCP2515_TXB2EID0   0x54
 
#define MCP2515_TXB2DLC   0x55
 
#define MCP2515_TXB2D0   0x56
 
#define MCP2515_TXB2D1   0x57
 
#define MCP2515_TXB2D2   0x58
 
#define MCP2515_TXB2D3   0x59
 
#define MCP2515_TXB2D4   0x5A
 
#define MCP2515_TXB2D5   0x5B
 
#define MCP2515_TXB2D6   0x5C
 
#define MCP2515_TXB2D7   0x5D
 
#define MCP2515_RXB0CTRL   0x60
 
#define MCP2515_RXB0SIDH   0x61
 
#define MCP2515_RXB0SIDL   0x62
 
#define MCP2515_RXB0EID8   0x63
 
#define MCP2515_RXB0EID0   0x64
 
#define MCP2515_RXB0DLC   0x65
 
#define MCP2515_RXB0D0   0x66
 
#define MCP2515_RXB0D1   0x67
 
#define MCP2515_RXB0D2   0x68
 
#define MCP2515_RXB0D3   0x69
 
#define MCP2515_RXB0D4   0x6A
 
#define MCP2515_RXB0D5   0x6B
 
#define MCP2515_RXB0D6   0x6C
 
#define MCP2515_RXB0D7   0x6D
 
#define MCP2515_RXB1CTRL   0x70
 
#define MCP2515_RXB1SIDH   0x71
 
#define MCP2515_RXB1SIDL   0x72
 
#define MCP2515_RXB1EID8   0x73
 
#define MCP2515_RXB1EID0   0x74
 
#define MCP2515_RXB1DLC   0x75
 
#define MCP2515_RXB1D0   0x76
 
#define MCP2515_RXB1D1   0x77
 
#define MCP2515_RXB1D2   0x78
 
#define MCP2515_RXB1D3   0x79
 
#define MCP2515_RXB1D4   0x7A
 
#define MCP2515_RXB1D5   0x7B
 
#define MCP2515_RXB1D6   0x7C
 
#define MCP2515_RXB1D7   0x7D
 

MCP2515 Control Register bits

#define MCP2515_BFPCTRL_B0BFM   0x01
 
#define MCP2515_BFPCTRL_B1BFM   0x02
 
#define MCP2515_BFPCTRL_B0BFE   0x04
 
#define MCP2515_BFPCTRL_B1BFE   0x08
 
#define MCP2515_BFPCTRL_B0BFS   0x10
 
#define MCP2515_BFPCTRL_B1BFS   0x20
 
#define MCP2515_TXRTSCTRL_B0RTSM   0x01
 
#define MCP2515_TXRTSCTRL_B1RTSM   0x02
 
#define MCP2515_TXRTSCTRL_B2RTSM   0x04
 
#define MCP2515_TXRTSCTRL_B0RTS   0x08
 
#define MCP2515_TXRTSCTRL_B1RTS   0x10
 
#define MCP2515_TXRTSCTRL_B2RTS   0x20
 
#define MCP2515_CANSTAT_ICOD0   0x02
 
#define MCP2515_CANSTAT_ICOD1   0x04
 
#define MCP2515_CANSTAT_ICOD2   0x08
 
#define MCP2515_CANSTAT_OPMOD0   0x20
 
#define MCP2515_CANSTAT_OPMOD1   0x40
 
#define MCP2515_CANSTAT_OPMOD2   0x80
 
#define MCP2515_CANSTAT_ICOD_MASK   0x0E
 
#define MCP2515_CANSTAT_OPMOD_MASK   0xE0
 
#define MCP2515_CANSTAT_OPMOD_CONFIGURATION   MCP2515_CANSTAT_OPMOD2
 
#define MCP2515_CANSTAT_OPMOD_NORMAL   0x00
 
#define MCP2515_CANSTAT_OPMOD_SLEEP   MCP2515_CANSTAT_OPMOD0
 
#define MCP2515_CANSTAT_OPMOD_LOOPBACK   MCP2515_CANSTAT_OPMOD1
 
#define MCP2515_CANSTAT_OPMOD_LISTEN_ONLY
 
#define MCP2515_CANCTRL_CLKPRE0   0x01
 
#define MCP2515_CANCTRL_CLKPRE1   0x02
 
#define MCP2515_CANCTRL_CLKEN   0x04
 
#define MCP2515_CANCTRL_OSM   0x08
 
#define MCP2515_CANCTRL_ABAT   0x10
 
#define MCP2515_CANCTRL_REQOP0   0x20
 
#define MCP2515_CANCTRL_REQOP1   0x40
 
#define MCP2515_CANCTRL_REQOP2   0x80
 
#define MCP2515_CANCTRL_CLKPRE_MASK
 
#define MCP2515_CANCTRL_REQOP_MASK   0xE0
 
#define MCP2515_CANCTRL_REQOP_CONFIGURATION   MCP2515_CANCTRL_REQOP2
 
#define MCP2515_CANCTRL_REQOP_NORMAL   0x00
 
#define MCP2515_CANCTRL_REQOP_SLEEP   MCP2515_CANCTRL_REQOP0
 
#define MCP2515_CANCTRL_REQOP_LOOPBACK   MCP2515_CANCTRL_REQOP1
 
#define MCP2515_CANCTRL_REQOP_LISTEN_ONLY
 
#define MCP2515_CNF3_PHSEG20   0x01
 
#define MCP2515_CNF3_PHSEG21   0x02
 
#define MCP2515_CNF3_PHSEG22   0x04
 
#define MCP2515_CNF3_WAKFIL   0x40
 
#define MCP2515_CNF3_SOF   0x80
 
#define MCP2515_CNF3_PHSEG_MASK   0x07
 
#define MCP2515_CNF2_PRSEG0   0x01
 
#define MCP2515_CNF2_PRSEG1   0x02
 
#define MCP2515_CNF2_PRSEG2   0x04
 
#define MCP2515_CNF2_PHSEG10   0x08
 
#define MCP2515_CNF2_PHSEG11   0x10
 
#define MCP2515_CNF2_PHSEG12   0x20
 
#define MCP2515_CNF2_SAM   0x40
 
#define MCP2515_CNF2_BTLMODE   0x80
 
#define MCP2515_CNF2_PRSEG_MASK   0x07
 
#define MCP2515_CNF2_PHSEG_MASK   0x38
 
#define MCP2515_CNF1_BRP0   0x01
 
#define MCP2515_CNF1_BRP1   0x02
 
#define MCP2515_CNF1_BRP2   0x04
 
#define MCP2515_CNF1_BRP3   0x08
 
#define MCP2515_CNF1_BRP4   0x10
 
#define MCP2515_CNF1_BRP5   0x20
 
#define MCP2515_CNF1_SJW0   0x40
 
#define MCP2515_CNF1_SJW1   0x80
 
#define MCP2515_CNF1_BRP_MASK   0x3F
 
#define MCP2515_CNF1_SJW_MASK   0xC0
 
#define MCP2515_CANINTE_RX0IE   0x01
 
#define MCP2515_CANINTE_RX1IE   0x02
 
#define MCP2515_CANINTE_TX0IE   0x04
 
#define MCP2515_CANINTE_TX1IE   0x08
 
#define MCP2515_CANINTE_TX2IE   0x10
 
#define MCP2515_CANINTE_ERRIE   0x20
 
#define MCP2515_CANINTE_WAKIE   0x40
 
#define MCP2515_CANINTE_MERRE   0x80
 
#define MCP2515_CANINTF_RX0IF   0x01
 
#define MCP2515_CANINTF_RX1IF   0x02
 
#define MCP2515_CANINTF_TX0IF   0x04
 
#define MCP2515_CANINTF_TX1IF   0x08
 
#define MCP2515_CANINTF_TX2IF   0x10
 
#define MCP2515_CANINTF_ERRIF   0x20
 
#define MCP2515_CANINTF_WAKIF   0x40
 
#define MCP2515_CANINTF_MERRF   0x80
 

MCP2515 error flags

#define MCP2515_EFLG_EWARN   0x01
 
#define MCP2515_EFLG_RXWAR   0x02
 
#define MCP2515_EFLG_TXWAR   0x04
 
#define MCP2515_EFLG_RXEP   0x08
 
#define MCP2515_EFLG_TXEP   0x10
 
#define MCP2515_EFLG_TXBO   0x20
 
#define MCP2515_EFLG_RX0OVR   0x40
 
#define MCP2515_EFLG_RX1OVR   0x80
 

MCP2515 Transmit and receive flags

#define MCP2515_TXBCTRL_TXP0   0x01
 
#define MCP2515_TXBCTRL_TXP1   0x02
 
#define MCP2515_TXBCTRL_TXREQ   0x08
 
#define MCP2515_TXBCTRL_TXERR   0x10
 
#define MCP2515_TXBCTRL_MLOA   0x20
 
#define MCP2515_TXBCTRL_ABTF   0x40
 
#define MCP2515_RXB0CTRL_FILHIT0   0x01
 
#define MCP2515_RXB0CTRL_BUKT1   0x02
 
#define MCP2515_RXB0CTRL_BUKT   0x04
 
#define MCP2515_RXB0CTRL_RXRTR   0x08
 
#define MCP2515_RXB0CTRL_MODE_RECV_FILTER   0x00
 
#define MCP2515_RXB0CTRL_RXM0   0x20
 
#define MCP2515_RXB0CTRL_RXM1   0x40
 
#define MCP2515_RXB0CTRL_MODE_RECV_ALL
 
#define MCP2515_RXB1CTRL_FILHIT0   0x01
 
#define MCP2515_RXB1CTRL_FILHIT1   0x02
 
#define MCP2515_RXB1CTRL_FILHIT2   0x04
 
#define MCP2515_RXB1CTRL_RXRTR   0x08
 
#define MCP2515_RXB1CTRL_MODE_RECV_FILTER   0x00
 
#define MCP2515_RXB1CTRL_RXM0   0x20
 
#define MCP2515_RXB1CTRL_RXM1   0x40
 
#define MCP2515_RXB1CTRL_MODE_RECV_ALL
 

MCP2515 SPI commands

#define MCP2515_SPI_RESET   0xC0
 
#define MCP2515_SPI_READ   0x03
 
#define MCP2515_SPI_READ_RXBUF   0x90
 
#define MCP2515_SPI_WRITE   0x02
 
#define MCP2515_SPI_LOAD_TXBUF   0x40
 
#define MCP2515_SPI_RTS   0x80
 
#define MCP2515_SPI_READ_STATUS   0xA0
 
#define MCP2515_SPI_RX_STATUS   0xB0
 
#define MCP2515_SPI_BITMOD   0x05
 

MCP2515 RX buffer id

#define MCP2515_RXBUF_RXB0SIDH   0x00
 
#define MCP2515_RXBUF_RXB0D0   0x02
 
#define MCP2515_RXBUF_RXB1SIDH   0x04
 
#define MCP2515_RXBUF_RXB1D0   0x06
 

MCP2515 TX buffer id

#define MCP2515_TXBUF_TXB0SIDH   0x00
 
#define MCP2515_TXBUF_TXB0D0   0x01
 
#define MCP2515_TXBUF_TXB1SIDH   0x02
 
#define MCP2515_TXBUF_TXB1D0   0x03
 
#define MCP2515_TXBUF_TXB2SIDH   0x04
 
#define MCP2515_TXBUF_TXB2D0   0x05
 

MCP2515 option ID for ioctl function

#define MCP2515_OPTION_ROLLOVER   1
 
#define MCP2515_OPTION_ONESHOT   2
 
#define MCP2515_OPTION_ABORT   3
 
#define MCP2515_OPTION_CLOCKOUT   4
 
#define MCP2515_OPTION_LOOPBACK   5
 
#define MCP2515_OPTION_LISTEN_ONLY   6
 
#define MCP2515_OPTION_SLEEP   7
 
#define MCP2515_OPTION_MULTISAMPLE   8
 
#define MCP2515_OPTION_SOFOUT   9
 
#define MCP2515_OPTION_WAKE_GLITCH_FILTER   10
 
#define MCP2515_OPTION_WAKE   11
 

MCP2515 IRQ handling

#define MCP2515_IRQ_FLAGGED   0x80
 
#define MCP2515_IRQ_HANDLED   0x40
 
#define MCP2515_IRQ_RX   0x01
 
#define MCP2515_IRQ_TX   0x02
 
#define MCP2515_IRQ_ERROR   0x04
 
#define MCP2515_IRQ_WAKEUP   0x08
 

MCP2515 Extended ID bit

#define MCP2515_RX_IDE   0x08
 

Macro Definition Documentation

◆ MCP2515_BFPCTRL

#define MCP2515_BFPCTRL   0x0C

Definition at line 50 of file mcp2515_defines.h.

◆ MCP2515_BFPCTRL_B0BFE

#define MCP2515_BFPCTRL_B0BFE   0x04

Definition at line 173 of file mcp2515_defines.h.

◆ MCP2515_BFPCTRL_B0BFM

#define MCP2515_BFPCTRL_B0BFM   0x01

Definition at line 171 of file mcp2515_defines.h.

◆ MCP2515_BFPCTRL_B0BFS

#define MCP2515_BFPCTRL_B0BFS   0x10

Definition at line 176 of file mcp2515_defines.h.

◆ MCP2515_BFPCTRL_B1BFE

#define MCP2515_BFPCTRL_B1BFE   0x08

Definition at line 174 of file mcp2515_defines.h.

◆ MCP2515_BFPCTRL_B1BFM

#define MCP2515_BFPCTRL_B1BFM   0x02

Definition at line 172 of file mcp2515_defines.h.

◆ MCP2515_BFPCTRL_B1BFS

#define MCP2515_BFPCTRL_B1BFS   0x20

Definition at line 177 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL

#define MCP2515_CANCTRL   0x0F

Definition at line 53 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_ABAT

#define MCP2515_CANCTRL_ABAT   0x10

Definition at line 207 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_CLKEN

#define MCP2515_CANCTRL_CLKEN   0x04

Definition at line 205 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_CLKPRE0

#define MCP2515_CANCTRL_CLKPRE0   0x01

Definition at line 203 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_CLKPRE1

#define MCP2515_CANCTRL_CLKPRE1   0x02

Definition at line 204 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_CLKPRE_MASK

#define MCP2515_CANCTRL_CLKPRE_MASK
Value:
(MCP2515_CANCTRL_CLKPRE1 | \
MCP2515_CANCTRL_CLKPRE0)

Definition at line 212 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_OSM

#define MCP2515_CANCTRL_OSM   0x08

Definition at line 206 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_REQOP0

#define MCP2515_CANCTRL_REQOP0   0x20

Definition at line 208 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_REQOP1

#define MCP2515_CANCTRL_REQOP1   0x40

Definition at line 209 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_REQOP2

#define MCP2515_CANCTRL_REQOP2   0x80

Definition at line 210 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_REQOP_CONFIGURATION

#define MCP2515_CANCTRL_REQOP_CONFIGURATION   MCP2515_CANCTRL_REQOP2

Definition at line 216 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_REQOP_LISTEN_ONLY

#define MCP2515_CANCTRL_REQOP_LISTEN_ONLY
Value:
(MCP2515_CANCTRL_REQOP1 | \
MCP2515_CANCTRL_REQOP0)

Definition at line 220 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_REQOP_LOOPBACK

#define MCP2515_CANCTRL_REQOP_LOOPBACK   MCP2515_CANCTRL_REQOP1

Definition at line 219 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_REQOP_MASK

#define MCP2515_CANCTRL_REQOP_MASK   0xE0

Definition at line 215 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_REQOP_NORMAL

#define MCP2515_CANCTRL_REQOP_NORMAL   0x00

Definition at line 217 of file mcp2515_defines.h.

◆ MCP2515_CANCTRL_REQOP_SLEEP

#define MCP2515_CANCTRL_REQOP_SLEEP   MCP2515_CANCTRL_REQOP0

Definition at line 218 of file mcp2515_defines.h.

◆ MCP2515_CANINTE

#define MCP2515_CANINTE   0x2B

Definition at line 86 of file mcp2515_defines.h.

◆ MCP2515_CANINTE_ERRIE

#define MCP2515_CANINTE_ERRIE   0x20

Definition at line 260 of file mcp2515_defines.h.

◆ MCP2515_CANINTE_MERRE

#define MCP2515_CANINTE_MERRE   0x80

Definition at line 262 of file mcp2515_defines.h.

◆ MCP2515_CANINTE_RX0IE

#define MCP2515_CANINTE_RX0IE   0x01

Definition at line 255 of file mcp2515_defines.h.

◆ MCP2515_CANINTE_RX1IE

#define MCP2515_CANINTE_RX1IE   0x02

Definition at line 256 of file mcp2515_defines.h.

◆ MCP2515_CANINTE_TX0IE

#define MCP2515_CANINTE_TX0IE   0x04

Definition at line 257 of file mcp2515_defines.h.

◆ MCP2515_CANINTE_TX1IE

#define MCP2515_CANINTE_TX1IE   0x08

Definition at line 258 of file mcp2515_defines.h.

◆ MCP2515_CANINTE_TX2IE

#define MCP2515_CANINTE_TX2IE   0x10

Definition at line 259 of file mcp2515_defines.h.

◆ MCP2515_CANINTE_WAKIE

#define MCP2515_CANINTE_WAKIE   0x40

Definition at line 261 of file mcp2515_defines.h.

◆ MCP2515_CANINTF

#define MCP2515_CANINTF   0x2C

Definition at line 88 of file mcp2515_defines.h.

◆ MCP2515_CANINTF_ERRIF

#define MCP2515_CANINTF_ERRIF   0x20

Definition at line 269 of file mcp2515_defines.h.

◆ MCP2515_CANINTF_MERRF

#define MCP2515_CANINTF_MERRF   0x80

Definition at line 271 of file mcp2515_defines.h.

◆ MCP2515_CANINTF_RX0IF

#define MCP2515_CANINTF_RX0IF   0x01

Definition at line 264 of file mcp2515_defines.h.

◆ MCP2515_CANINTF_RX1IF

#define MCP2515_CANINTF_RX1IF   0x02

Definition at line 265 of file mcp2515_defines.h.

◆ MCP2515_CANINTF_TX0IF

#define MCP2515_CANINTF_TX0IF   0x04

Definition at line 266 of file mcp2515_defines.h.

◆ MCP2515_CANINTF_TX1IF

#define MCP2515_CANINTF_TX1IF   0x08

Definition at line 267 of file mcp2515_defines.h.

◆ MCP2515_CANINTF_TX2IF

#define MCP2515_CANINTF_TX2IF   0x10

Definition at line 268 of file mcp2515_defines.h.

◆ MCP2515_CANINTF_WAKIF

#define MCP2515_CANINTF_WAKIF   0x40

Definition at line 270 of file mcp2515_defines.h.

◆ MCP2515_CANSTAT

#define MCP2515_CANSTAT   0x0E

Definition at line 52 of file mcp2515_defines.h.

◆ MCP2515_CANSTAT_ICOD0

#define MCP2515_CANSTAT_ICOD0   0x02

Definition at line 186 of file mcp2515_defines.h.

◆ MCP2515_CANSTAT_ICOD1

#define MCP2515_CANSTAT_ICOD1   0x04

Definition at line 187 of file mcp2515_defines.h.

◆ MCP2515_CANSTAT_ICOD2

#define MCP2515_CANSTAT_ICOD2   0x08

Definition at line 188 of file mcp2515_defines.h.

◆ MCP2515_CANSTAT_ICOD_MASK

#define MCP2515_CANSTAT_ICOD_MASK   0x0E

Definition at line 193 of file mcp2515_defines.h.

◆ MCP2515_CANSTAT_OPMOD0

#define MCP2515_CANSTAT_OPMOD0   0x20

Definition at line 189 of file mcp2515_defines.h.

◆ MCP2515_CANSTAT_OPMOD1

#define MCP2515_CANSTAT_OPMOD1   0x40

Definition at line 190 of file mcp2515_defines.h.

◆ MCP2515_CANSTAT_OPMOD2

#define MCP2515_CANSTAT_OPMOD2   0x80

Definition at line 191 of file mcp2515_defines.h.

◆ MCP2515_CANSTAT_OPMOD_CONFIGURATION

#define MCP2515_CANSTAT_OPMOD_CONFIGURATION   MCP2515_CANSTAT_OPMOD2

Definition at line 196 of file mcp2515_defines.h.

◆ MCP2515_CANSTAT_OPMOD_LISTEN_ONLY

#define MCP2515_CANSTAT_OPMOD_LISTEN_ONLY
Value:
(MCP2515_CANSTAT_OPMOD1 | \
MCP2515_CANSTAT_OPMOD0)

Definition at line 200 of file mcp2515_defines.h.

◆ MCP2515_CANSTAT_OPMOD_LOOPBACK

#define MCP2515_CANSTAT_OPMOD_LOOPBACK   MCP2515_CANSTAT_OPMOD1

Definition at line 199 of file mcp2515_defines.h.

◆ MCP2515_CANSTAT_OPMOD_MASK

#define MCP2515_CANSTAT_OPMOD_MASK   0xE0

Definition at line 195 of file mcp2515_defines.h.

◆ MCP2515_CANSTAT_OPMOD_NORMAL

#define MCP2515_CANSTAT_OPMOD_NORMAL   0x00

Definition at line 197 of file mcp2515_defines.h.

◆ MCP2515_CANSTAT_OPMOD_SLEEP

#define MCP2515_CANSTAT_OPMOD_SLEEP   MCP2515_CANSTAT_OPMOD0

Definition at line 198 of file mcp2515_defines.h.

◆ MCP2515_CNF1

#define MCP2515_CNF1   0x2A

Definition at line 85 of file mcp2515_defines.h.

◆ MCP2515_CNF1_BRP0

#define MCP2515_CNF1_BRP0   0x01

Definition at line 243 of file mcp2515_defines.h.

◆ MCP2515_CNF1_BRP1

#define MCP2515_CNF1_BRP1   0x02

Definition at line 244 of file mcp2515_defines.h.

◆ MCP2515_CNF1_BRP2

#define MCP2515_CNF1_BRP2   0x04

Definition at line 245 of file mcp2515_defines.h.

◆ MCP2515_CNF1_BRP3

#define MCP2515_CNF1_BRP3   0x08

Definition at line 246 of file mcp2515_defines.h.

◆ MCP2515_CNF1_BRP4

#define MCP2515_CNF1_BRP4   0x10

Definition at line 247 of file mcp2515_defines.h.

◆ MCP2515_CNF1_BRP5

#define MCP2515_CNF1_BRP5   0x20

Definition at line 248 of file mcp2515_defines.h.

◆ MCP2515_CNF1_BRP_MASK

#define MCP2515_CNF1_BRP_MASK   0x3F

Definition at line 252 of file mcp2515_defines.h.

◆ MCP2515_CNF1_SJW0

#define MCP2515_CNF1_SJW0   0x40

Definition at line 249 of file mcp2515_defines.h.

◆ MCP2515_CNF1_SJW1

#define MCP2515_CNF1_SJW1   0x80

Definition at line 250 of file mcp2515_defines.h.

◆ MCP2515_CNF1_SJW_MASK

#define MCP2515_CNF1_SJW_MASK   0xC0

Definition at line 253 of file mcp2515_defines.h.

◆ MCP2515_CNF2

#define MCP2515_CNF2   0x29

Definition at line 84 of file mcp2515_defines.h.

◆ MCP2515_CNF2_BTLMODE

#define MCP2515_CNF2_BTLMODE   0x80

Definition at line 238 of file mcp2515_defines.h.

◆ MCP2515_CNF2_PHSEG10

#define MCP2515_CNF2_PHSEG10   0x08

Definition at line 234 of file mcp2515_defines.h.

◆ MCP2515_CNF2_PHSEG11

#define MCP2515_CNF2_PHSEG11   0x10

Definition at line 235 of file mcp2515_defines.h.

◆ MCP2515_CNF2_PHSEG12

#define MCP2515_CNF2_PHSEG12   0x20

Definition at line 236 of file mcp2515_defines.h.

◆ MCP2515_CNF2_PHSEG_MASK

#define MCP2515_CNF2_PHSEG_MASK   0x38

Definition at line 241 of file mcp2515_defines.h.

◆ MCP2515_CNF2_PRSEG0

#define MCP2515_CNF2_PRSEG0   0x01

Definition at line 231 of file mcp2515_defines.h.

◆ MCP2515_CNF2_PRSEG1

#define MCP2515_CNF2_PRSEG1   0x02

Definition at line 232 of file mcp2515_defines.h.

◆ MCP2515_CNF2_PRSEG2

#define MCP2515_CNF2_PRSEG2   0x04

Definition at line 233 of file mcp2515_defines.h.

◆ MCP2515_CNF2_PRSEG_MASK

#define MCP2515_CNF2_PRSEG_MASK   0x07

Definition at line 240 of file mcp2515_defines.h.

◆ MCP2515_CNF2_SAM

#define MCP2515_CNF2_SAM   0x40

Definition at line 237 of file mcp2515_defines.h.

◆ MCP2515_CNF3

#define MCP2515_CNF3   0x28

Definition at line 83 of file mcp2515_defines.h.

◆ MCP2515_CNF3_PHSEG20

#define MCP2515_CNF3_PHSEG20   0x01

Definition at line 223 of file mcp2515_defines.h.

◆ MCP2515_CNF3_PHSEG21

#define MCP2515_CNF3_PHSEG21   0x02

Definition at line 224 of file mcp2515_defines.h.

◆ MCP2515_CNF3_PHSEG22

#define MCP2515_CNF3_PHSEG22   0x04

Definition at line 225 of file mcp2515_defines.h.

◆ MCP2515_CNF3_PHSEG_MASK

#define MCP2515_CNF3_PHSEG_MASK   0x07

Definition at line 229 of file mcp2515_defines.h.

◆ MCP2515_CNF3_SOF

#define MCP2515_CNF3_SOF   0x80

Definition at line 227 of file mcp2515_defines.h.

◆ MCP2515_CNF3_WAKFIL

#define MCP2515_CNF3_WAKFIL   0x40

Definition at line 226 of file mcp2515_defines.h.

◆ MCP2515_EFLG

#define MCP2515_EFLG   0x2D

Definition at line 89 of file mcp2515_defines.h.

◆ MCP2515_EFLG_EWARN

#define MCP2515_EFLG_EWARN   0x01

Definition at line 278 of file mcp2515_defines.h.

◆ MCP2515_EFLG_RX0OVR

#define MCP2515_EFLG_RX0OVR   0x40

Definition at line 284 of file mcp2515_defines.h.

◆ MCP2515_EFLG_RX1OVR

#define MCP2515_EFLG_RX1OVR   0x80

Definition at line 285 of file mcp2515_defines.h.

◆ MCP2515_EFLG_RXEP

#define MCP2515_EFLG_RXEP   0x08

Definition at line 281 of file mcp2515_defines.h.

◆ MCP2515_EFLG_RXWAR

#define MCP2515_EFLG_RXWAR   0x02

Definition at line 279 of file mcp2515_defines.h.

◆ MCP2515_EFLG_TXBO

#define MCP2515_EFLG_TXBO   0x20

Definition at line 283 of file mcp2515_defines.h.

◆ MCP2515_EFLG_TXEP

#define MCP2515_EFLG_TXEP   0x10

Definition at line 282 of file mcp2515_defines.h.

◆ MCP2515_EFLG_TXWAR

#define MCP2515_EFLG_TXWAR   0x04

Definition at line 280 of file mcp2515_defines.h.

◆ MCP2515_IRQ_ERROR

#define MCP2515_IRQ_ERROR   0x04

Definition at line 382 of file mcp2515_defines.h.

◆ MCP2515_IRQ_FLAGGED

#define MCP2515_IRQ_FLAGGED   0x80

Definition at line 378 of file mcp2515_defines.h.

◆ MCP2515_IRQ_HANDLED

#define MCP2515_IRQ_HANDLED   0x40

Definition at line 379 of file mcp2515_defines.h.

◆ MCP2515_IRQ_RX

#define MCP2515_IRQ_RX   0x01

Definition at line 380 of file mcp2515_defines.h.

◆ MCP2515_IRQ_TX

#define MCP2515_IRQ_TX   0x02

Definition at line 381 of file mcp2515_defines.h.

◆ MCP2515_IRQ_WAKEUP

#define MCP2515_IRQ_WAKEUP   0x08

Definition at line 383 of file mcp2515_defines.h.

◆ MCP2515_OPTION_ABORT

#define MCP2515_OPTION_ABORT   3

Definition at line 363 of file mcp2515_defines.h.

◆ MCP2515_OPTION_CLOCKOUT

#define MCP2515_OPTION_CLOCKOUT   4

Definition at line 364 of file mcp2515_defines.h.

◆ MCP2515_OPTION_LISTEN_ONLY

#define MCP2515_OPTION_LISTEN_ONLY   6

Definition at line 366 of file mcp2515_defines.h.

◆ MCP2515_OPTION_LOOPBACK

#define MCP2515_OPTION_LOOPBACK   5

Definition at line 365 of file mcp2515_defines.h.

◆ MCP2515_OPTION_MULTISAMPLE

#define MCP2515_OPTION_MULTISAMPLE   8

Definition at line 368 of file mcp2515_defines.h.

◆ MCP2515_OPTION_ONESHOT

#define MCP2515_OPTION_ONESHOT   2

Definition at line 362 of file mcp2515_defines.h.

◆ MCP2515_OPTION_ROLLOVER

#define MCP2515_OPTION_ROLLOVER   1

Definition at line 361 of file mcp2515_defines.h.

◆ MCP2515_OPTION_SLEEP

#define MCP2515_OPTION_SLEEP   7

Definition at line 367 of file mcp2515_defines.h.

◆ MCP2515_OPTION_SOFOUT

#define MCP2515_OPTION_SOFOUT   9

Definition at line 369 of file mcp2515_defines.h.

◆ MCP2515_OPTION_WAKE

#define MCP2515_OPTION_WAKE   11

Definition at line 371 of file mcp2515_defines.h.

◆ MCP2515_OPTION_WAKE_GLITCH_FILTER

#define MCP2515_OPTION_WAKE_GLITCH_FILTER   10

Definition at line 370 of file mcp2515_defines.h.

◆ MCP2515_REC

#define MCP2515_REC   0x1D

Definition at line 71 of file mcp2515_defines.h.

◆ MCP2515_RX_IDE

#define MCP2515_RX_IDE   0x08

Definition at line 390 of file mcp2515_defines.h.

◆ MCP2515_RXB0CTRL

#define MCP2515_RXB0CTRL   0x60

Definition at line 136 of file mcp2515_defines.h.

◆ MCP2515_RXB0CTRL_BUKT

#define MCP2515_RXB0CTRL_BUKT   0x04

Definition at line 301 of file mcp2515_defines.h.

◆ MCP2515_RXB0CTRL_BUKT1

#define MCP2515_RXB0CTRL_BUKT1   0x02

Definition at line 300 of file mcp2515_defines.h.

◆ MCP2515_RXB0CTRL_FILHIT0

#define MCP2515_RXB0CTRL_FILHIT0   0x01

Definition at line 299 of file mcp2515_defines.h.

◆ MCP2515_RXB0CTRL_MODE_RECV_ALL

#define MCP2515_RXB0CTRL_MODE_RECV_ALL
Value:
(MCP2515_RXB0CTRL_RXM1 | \
MCP2515_RXB0CTRL_RXM0)

Definition at line 306 of file mcp2515_defines.h.

◆ MCP2515_RXB0CTRL_MODE_RECV_FILTER

#define MCP2515_RXB0CTRL_MODE_RECV_FILTER   0x00

Definition at line 303 of file mcp2515_defines.h.

◆ MCP2515_RXB0CTRL_RXM0

#define MCP2515_RXB0CTRL_RXM0   0x20

Definition at line 304 of file mcp2515_defines.h.

◆ MCP2515_RXB0CTRL_RXM1

#define MCP2515_RXB0CTRL_RXM1   0x40

Definition at line 305 of file mcp2515_defines.h.

◆ MCP2515_RXB0CTRL_RXRTR

#define MCP2515_RXB0CTRL_RXRTR   0x08

Definition at line 302 of file mcp2515_defines.h.

◆ MCP2515_RXB0D0

#define MCP2515_RXB0D0   0x66

Definition at line 142 of file mcp2515_defines.h.

◆ MCP2515_RXB0D1

#define MCP2515_RXB0D1   0x67

Definition at line 143 of file mcp2515_defines.h.

◆ MCP2515_RXB0D2

#define MCP2515_RXB0D2   0x68

Definition at line 144 of file mcp2515_defines.h.

◆ MCP2515_RXB0D3

#define MCP2515_RXB0D3   0x69

Definition at line 145 of file mcp2515_defines.h.

◆ MCP2515_RXB0D4

#define MCP2515_RXB0D4   0x6A

Definition at line 146 of file mcp2515_defines.h.

◆ MCP2515_RXB0D5

#define MCP2515_RXB0D5   0x6B

Definition at line 147 of file mcp2515_defines.h.

◆ MCP2515_RXB0D6

#define MCP2515_RXB0D6   0x6C

Definition at line 148 of file mcp2515_defines.h.

◆ MCP2515_RXB0D7

#define MCP2515_RXB0D7   0x6D

Definition at line 149 of file mcp2515_defines.h.

◆ MCP2515_RXB0DLC

#define MCP2515_RXB0DLC   0x65

Definition at line 141 of file mcp2515_defines.h.

◆ MCP2515_RXB0EID0

#define MCP2515_RXB0EID0   0x64

Definition at line 140 of file mcp2515_defines.h.

◆ MCP2515_RXB0EID8

#define MCP2515_RXB0EID8   0x63

Definition at line 139 of file mcp2515_defines.h.

◆ MCP2515_RXB0SIDH

#define MCP2515_RXB0SIDH   0x61

Definition at line 137 of file mcp2515_defines.h.

◆ MCP2515_RXB0SIDL

#define MCP2515_RXB0SIDL   0x62

Definition at line 138 of file mcp2515_defines.h.

◆ MCP2515_RXB1CTRL

#define MCP2515_RXB1CTRL   0x70

Definition at line 151 of file mcp2515_defines.h.

◆ MCP2515_RXB1CTRL_FILHIT0

#define MCP2515_RXB1CTRL_FILHIT0   0x01

Definition at line 309 of file mcp2515_defines.h.

◆ MCP2515_RXB1CTRL_FILHIT1

#define MCP2515_RXB1CTRL_FILHIT1   0x02

Definition at line 310 of file mcp2515_defines.h.

◆ MCP2515_RXB1CTRL_FILHIT2

#define MCP2515_RXB1CTRL_FILHIT2   0x04

Definition at line 311 of file mcp2515_defines.h.

◆ MCP2515_RXB1CTRL_MODE_RECV_ALL

#define MCP2515_RXB1CTRL_MODE_RECV_ALL
Value:
(MCP2515_RXB1CTRL_RXM1 | \
MCP2515_RXB1CTRL_RXM0)

Definition at line 316 of file mcp2515_defines.h.

◆ MCP2515_RXB1CTRL_MODE_RECV_FILTER

#define MCP2515_RXB1CTRL_MODE_RECV_FILTER   0x00

Definition at line 313 of file mcp2515_defines.h.

◆ MCP2515_RXB1CTRL_RXM0

#define MCP2515_RXB1CTRL_RXM0   0x20

Definition at line 314 of file mcp2515_defines.h.

◆ MCP2515_RXB1CTRL_RXM1

#define MCP2515_RXB1CTRL_RXM1   0x40

Definition at line 315 of file mcp2515_defines.h.

◆ MCP2515_RXB1CTRL_RXRTR

#define MCP2515_RXB1CTRL_RXRTR   0x08

Definition at line 312 of file mcp2515_defines.h.

◆ MCP2515_RXB1D0

#define MCP2515_RXB1D0   0x76

Definition at line 157 of file mcp2515_defines.h.

◆ MCP2515_RXB1D1

#define MCP2515_RXB1D1   0x77

Definition at line 158 of file mcp2515_defines.h.

◆ MCP2515_RXB1D2

#define MCP2515_RXB1D2   0x78

Definition at line 159 of file mcp2515_defines.h.

◆ MCP2515_RXB1D3

#define MCP2515_RXB1D3   0x79

Definition at line 160 of file mcp2515_defines.h.

◆ MCP2515_RXB1D4

#define MCP2515_RXB1D4   0x7A

Definition at line 161 of file mcp2515_defines.h.

◆ MCP2515_RXB1D5

#define MCP2515_RXB1D5   0x7B

Definition at line 162 of file mcp2515_defines.h.

◆ MCP2515_RXB1D6

#define MCP2515_RXB1D6   0x7C

Definition at line 163 of file mcp2515_defines.h.

◆ MCP2515_RXB1D7

#define MCP2515_RXB1D7   0x7D

Definition at line 164 of file mcp2515_defines.h.

◆ MCP2515_RXB1DLC

#define MCP2515_RXB1DLC   0x75

Definition at line 156 of file mcp2515_defines.h.

◆ MCP2515_RXB1EID0

#define MCP2515_RXB1EID0   0x74

Definition at line 155 of file mcp2515_defines.h.

◆ MCP2515_RXB1EID8

#define MCP2515_RXB1EID8   0x73

Definition at line 154 of file mcp2515_defines.h.

◆ MCP2515_RXB1SIDH

#define MCP2515_RXB1SIDH   0x71

Definition at line 152 of file mcp2515_defines.h.

◆ MCP2515_RXB1SIDL

#define MCP2515_RXB1SIDL   0x72

Definition at line 153 of file mcp2515_defines.h.

◆ MCP2515_RXBUF_RXB0D0

#define MCP2515_RXBUF_RXB0D0   0x02

Definition at line 340 of file mcp2515_defines.h.

◆ MCP2515_RXBUF_RXB0SIDH

#define MCP2515_RXBUF_RXB0SIDH   0x00

Definition at line 339 of file mcp2515_defines.h.

◆ MCP2515_RXBUF_RXB1D0

#define MCP2515_RXBUF_RXB1D0   0x06

Definition at line 342 of file mcp2515_defines.h.

◆ MCP2515_RXBUF_RXB1SIDH

#define MCP2515_RXBUF_RXB1SIDH   0x04

Definition at line 341 of file mcp2515_defines.h.

◆ MCP2515_RXF0EID0

#define MCP2515_RXF0EID0   0x03

Definition at line 38 of file mcp2515_defines.h.

◆ MCP2515_RXF0EID8

#define MCP2515_RXF0EID8   0x02

Definition at line 37 of file mcp2515_defines.h.

◆ MCP2515_RXF0SIDH

#define MCP2515_RXF0SIDH   0x00

Definition at line 35 of file mcp2515_defines.h.

◆ MCP2515_RXF0SIDL

#define MCP2515_RXF0SIDL   0x01

Definition at line 36 of file mcp2515_defines.h.

◆ MCP2515_RXF1EID0

#define MCP2515_RXF1EID0   0x07

Definition at line 43 of file mcp2515_defines.h.

◆ MCP2515_RXF1EID8

#define MCP2515_RXF1EID8   0x06

Definition at line 42 of file mcp2515_defines.h.

◆ MCP2515_RXF1SIDH

#define MCP2515_RXF1SIDH   0x04

Definition at line 40 of file mcp2515_defines.h.

◆ MCP2515_RXF1SIDL

#define MCP2515_RXF1SIDL   0x05

Definition at line 41 of file mcp2515_defines.h.

◆ MCP2515_RXF2EID0

#define MCP2515_RXF2EID0   0x0B

Definition at line 48 of file mcp2515_defines.h.

◆ MCP2515_RXF2EID8

#define MCP2515_RXF2EID8   0x0A

Definition at line 47 of file mcp2515_defines.h.

◆ MCP2515_RXF2SIDH

#define MCP2515_RXF2SIDH   0x08

Definition at line 45 of file mcp2515_defines.h.

◆ MCP2515_RXF2SIDL

#define MCP2515_RXF2SIDL   0x09

Definition at line 46 of file mcp2515_defines.h.

◆ MCP2515_RXF3EID0

#define MCP2515_RXF3EID0   0x13

Definition at line 58 of file mcp2515_defines.h.

◆ MCP2515_RXF3EID8

#define MCP2515_RXF3EID8   0x12

Definition at line 57 of file mcp2515_defines.h.

◆ MCP2515_RXF3SIDH

#define MCP2515_RXF3SIDH   0x10

Definition at line 55 of file mcp2515_defines.h.

◆ MCP2515_RXF3SIDL

#define MCP2515_RXF3SIDL   0x11

Definition at line 56 of file mcp2515_defines.h.

◆ MCP2515_RXF4EID0

#define MCP2515_RXF4EID0   0x17

Definition at line 63 of file mcp2515_defines.h.

◆ MCP2515_RXF4EID8

#define MCP2515_RXF4EID8   0x16

Definition at line 62 of file mcp2515_defines.h.

◆ MCP2515_RXF4SIDH

#define MCP2515_RXF4SIDH   0x14

Definition at line 60 of file mcp2515_defines.h.

◆ MCP2515_RXF4SIDL

#define MCP2515_RXF4SIDL   0x15

Definition at line 61 of file mcp2515_defines.h.

◆ MCP2515_RXF5EID0

#define MCP2515_RXF5EID0   0x1B

Definition at line 68 of file mcp2515_defines.h.

◆ MCP2515_RXF5EID8

#define MCP2515_RXF5EID8   0x1A

Definition at line 67 of file mcp2515_defines.h.

◆ MCP2515_RXF5SIDH

#define MCP2515_RXF5SIDH   0x18

Definition at line 65 of file mcp2515_defines.h.

◆ MCP2515_RXF5SIDL

#define MCP2515_RXF5SIDL   0x19

Definition at line 66 of file mcp2515_defines.h.

◆ MCP2515_RXM0EID0

#define MCP2515_RXM0EID0   0x23

Definition at line 76 of file mcp2515_defines.h.

◆ MCP2515_RXM0EID8

#define MCP2515_RXM0EID8   0x22

Definition at line 75 of file mcp2515_defines.h.

◆ MCP2515_RXM0SIDH

#define MCP2515_RXM0SIDH   0x20

Definition at line 73 of file mcp2515_defines.h.

◆ MCP2515_RXM0SIDL

#define MCP2515_RXM0SIDL   0x21

Definition at line 74 of file mcp2515_defines.h.

◆ MCP2515_RXM1EID0

#define MCP2515_RXM1EID0   0x27

Definition at line 81 of file mcp2515_defines.h.

◆ MCP2515_RXM1EID8

#define MCP2515_RXM1EID8   0x26

Definition at line 80 of file mcp2515_defines.h.

◆ MCP2515_RXM1SIDH

#define MCP2515_RXM1SIDH   0x24

Definition at line 78 of file mcp2515_defines.h.

◆ MCP2515_RXM1SIDL

#define MCP2515_RXM1SIDL   0x25

Definition at line 79 of file mcp2515_defines.h.

◆ MCP2515_SPI_BITMOD

#define MCP2515_SPI_BITMOD   0x05

Definition at line 332 of file mcp2515_defines.h.

◆ MCP2515_SPI_LOAD_TXBUF

#define MCP2515_SPI_LOAD_TXBUF   0x40

Definition at line 328 of file mcp2515_defines.h.

◆ MCP2515_SPI_READ

#define MCP2515_SPI_READ   0x03

Definition at line 325 of file mcp2515_defines.h.

◆ MCP2515_SPI_READ_RXBUF

#define MCP2515_SPI_READ_RXBUF   0x90

Definition at line 326 of file mcp2515_defines.h.

◆ MCP2515_SPI_READ_STATUS

#define MCP2515_SPI_READ_STATUS   0xA0

Definition at line 330 of file mcp2515_defines.h.

◆ MCP2515_SPI_RESET

#define MCP2515_SPI_RESET   0xC0

Definition at line 324 of file mcp2515_defines.h.

◆ MCP2515_SPI_RTS

#define MCP2515_SPI_RTS   0x80

Definition at line 329 of file mcp2515_defines.h.

◆ MCP2515_SPI_RX_STATUS

#define MCP2515_SPI_RX_STATUS   0xB0

Definition at line 331 of file mcp2515_defines.h.

◆ MCP2515_SPI_WRITE

#define MCP2515_SPI_WRITE   0x02

Definition at line 327 of file mcp2515_defines.h.

◆ MCP2515_TEC

#define MCP2515_TEC   0x1C

Definition at line 70 of file mcp2515_defines.h.

◆ MCP2515_TXB0CTRL

#define MCP2515_TXB0CTRL   0x30

Definition at line 91 of file mcp2515_defines.h.

◆ MCP2515_TXB0D0

#define MCP2515_TXB0D0   0x36

Definition at line 97 of file mcp2515_defines.h.

◆ MCP2515_TXB0D1

#define MCP2515_TXB0D1   0x37

Definition at line 98 of file mcp2515_defines.h.

◆ MCP2515_TXB0D2

#define MCP2515_TXB0D2   0x38

Definition at line 99 of file mcp2515_defines.h.

◆ MCP2515_TXB0D3

#define MCP2515_TXB0D3   0x39

Definition at line 100 of file mcp2515_defines.h.

◆ MCP2515_TXB0D4

#define MCP2515_TXB0D4   0x3A

Definition at line 101 of file mcp2515_defines.h.

◆ MCP2515_TXB0D5

#define MCP2515_TXB0D5   0x3B

Definition at line 102 of file mcp2515_defines.h.

◆ MCP2515_TXB0D6

#define MCP2515_TXB0D6   0x3C

Definition at line 103 of file mcp2515_defines.h.

◆ MCP2515_TXB0D7

#define MCP2515_TXB0D7   0x3D

Definition at line 104 of file mcp2515_defines.h.

◆ MCP2515_TXB0DLC

#define MCP2515_TXB0DLC   0x35

Definition at line 96 of file mcp2515_defines.h.

◆ MCP2515_TXB0EID0

#define MCP2515_TXB0EID0   0x34

Definition at line 95 of file mcp2515_defines.h.

◆ MCP2515_TXB0EID8

#define MCP2515_TXB0EID8   0x33

Definition at line 94 of file mcp2515_defines.h.

◆ MCP2515_TXB0SIDH

#define MCP2515_TXB0SIDH   0x31

Definition at line 92 of file mcp2515_defines.h.

◆ MCP2515_TXB0SIDL

#define MCP2515_TXB0SIDL   0x32

Definition at line 93 of file mcp2515_defines.h.

◆ MCP2515_TXB1CTRL

#define MCP2515_TXB1CTRL   0x40

Definition at line 106 of file mcp2515_defines.h.

◆ MCP2515_TXB1D0

#define MCP2515_TXB1D0   0x46

Definition at line 112 of file mcp2515_defines.h.

◆ MCP2515_TXB1D1

#define MCP2515_TXB1D1   0x47

Definition at line 113 of file mcp2515_defines.h.

◆ MCP2515_TXB1D2

#define MCP2515_TXB1D2   0x48

Definition at line 114 of file mcp2515_defines.h.

◆ MCP2515_TXB1D3

#define MCP2515_TXB1D3   0x49

Definition at line 115 of file mcp2515_defines.h.

◆ MCP2515_TXB1D4

#define MCP2515_TXB1D4   0x4A

Definition at line 116 of file mcp2515_defines.h.

◆ MCP2515_TXB1D5

#define MCP2515_TXB1D5   0x4B

Definition at line 117 of file mcp2515_defines.h.

◆ MCP2515_TXB1D6

#define MCP2515_TXB1D6   0x4C

Definition at line 118 of file mcp2515_defines.h.

◆ MCP2515_TXB1D7

#define MCP2515_TXB1D7   0x4D

Definition at line 119 of file mcp2515_defines.h.

◆ MCP2515_TXB1DLC

#define MCP2515_TXB1DLC   0x45

Definition at line 111 of file mcp2515_defines.h.

◆ MCP2515_TXB1EID0

#define MCP2515_TXB1EID0   0x44

Definition at line 110 of file mcp2515_defines.h.

◆ MCP2515_TXB1EID8

#define MCP2515_TXB1EID8   0x43

Definition at line 109 of file mcp2515_defines.h.

◆ MCP2515_TXB1SIDH

#define MCP2515_TXB1SIDH   0x41

Definition at line 107 of file mcp2515_defines.h.

◆ MCP2515_TXB1SIDL

#define MCP2515_TXB1SIDL   0x42

Definition at line 108 of file mcp2515_defines.h.

◆ MCP2515_TXB2CTRL

#define MCP2515_TXB2CTRL   0x50

Definition at line 121 of file mcp2515_defines.h.

◆ MCP2515_TXB2D0

#define MCP2515_TXB2D0   0x56

Definition at line 127 of file mcp2515_defines.h.

◆ MCP2515_TXB2D1

#define MCP2515_TXB2D1   0x57

Definition at line 128 of file mcp2515_defines.h.

◆ MCP2515_TXB2D2

#define MCP2515_TXB2D2   0x58

Definition at line 129 of file mcp2515_defines.h.

◆ MCP2515_TXB2D3

#define MCP2515_TXB2D3   0x59

Definition at line 130 of file mcp2515_defines.h.

◆ MCP2515_TXB2D4

#define MCP2515_TXB2D4   0x5A

Definition at line 131 of file mcp2515_defines.h.

◆ MCP2515_TXB2D5

#define MCP2515_TXB2D5   0x5B

Definition at line 132 of file mcp2515_defines.h.

◆ MCP2515_TXB2D6

#define MCP2515_TXB2D6   0x5C

Definition at line 133 of file mcp2515_defines.h.

◆ MCP2515_TXB2D7

#define MCP2515_TXB2D7   0x5D

Definition at line 134 of file mcp2515_defines.h.

◆ MCP2515_TXB2DLC

#define MCP2515_TXB2DLC   0x55

Definition at line 126 of file mcp2515_defines.h.

◆ MCP2515_TXB2EID0

#define MCP2515_TXB2EID0   0x54

Definition at line 125 of file mcp2515_defines.h.

◆ MCP2515_TXB2EID8

#define MCP2515_TXB2EID8   0x53

Definition at line 124 of file mcp2515_defines.h.

◆ MCP2515_TXB2SIDH

#define MCP2515_TXB2SIDH   0x51

Definition at line 122 of file mcp2515_defines.h.

◆ MCP2515_TXB2SIDL

#define MCP2515_TXB2SIDL   0x52

Definition at line 123 of file mcp2515_defines.h.

◆ MCP2515_TXBCTRL_ABTF

#define MCP2515_TXBCTRL_ABTF   0x40

Definition at line 297 of file mcp2515_defines.h.

◆ MCP2515_TXBCTRL_MLOA

#define MCP2515_TXBCTRL_MLOA   0x20

Definition at line 296 of file mcp2515_defines.h.

◆ MCP2515_TXBCTRL_TXERR

#define MCP2515_TXBCTRL_TXERR   0x10

Definition at line 295 of file mcp2515_defines.h.

◆ MCP2515_TXBCTRL_TXP0

#define MCP2515_TXBCTRL_TXP0   0x01

Definition at line 292 of file mcp2515_defines.h.

◆ MCP2515_TXBCTRL_TXP1

#define MCP2515_TXBCTRL_TXP1   0x02

Definition at line 293 of file mcp2515_defines.h.

◆ MCP2515_TXBCTRL_TXREQ

#define MCP2515_TXBCTRL_TXREQ   0x08

Definition at line 294 of file mcp2515_defines.h.

◆ MCP2515_TXBUF_TXB0D0

#define MCP2515_TXBUF_TXB0D0   0x01

Definition at line 350 of file mcp2515_defines.h.

◆ MCP2515_TXBUF_TXB0SIDH

#define MCP2515_TXBUF_TXB0SIDH   0x00

Definition at line 349 of file mcp2515_defines.h.

◆ MCP2515_TXBUF_TXB1D0

#define MCP2515_TXBUF_TXB1D0   0x03

Definition at line 352 of file mcp2515_defines.h.

◆ MCP2515_TXBUF_TXB1SIDH

#define MCP2515_TXBUF_TXB1SIDH   0x02

Definition at line 351 of file mcp2515_defines.h.

◆ MCP2515_TXBUF_TXB2D0

#define MCP2515_TXBUF_TXB2D0   0x05

Definition at line 354 of file mcp2515_defines.h.

◆ MCP2515_TXBUF_TXB2SIDH

#define MCP2515_TXBUF_TXB2SIDH   0x04

Definition at line 353 of file mcp2515_defines.h.

◆ MCP2515_TXRTSCTRL

#define MCP2515_TXRTSCTRL   0x0D

Definition at line 51 of file mcp2515_defines.h.

◆ MCP2515_TXRTSCTRL_B0RTS

#define MCP2515_TXRTSCTRL_B0RTS   0x08

Definition at line 182 of file mcp2515_defines.h.

◆ MCP2515_TXRTSCTRL_B0RTSM

#define MCP2515_TXRTSCTRL_B0RTSM   0x01

Definition at line 179 of file mcp2515_defines.h.

◆ MCP2515_TXRTSCTRL_B1RTS

#define MCP2515_TXRTSCTRL_B1RTS   0x10

Definition at line 183 of file mcp2515_defines.h.

◆ MCP2515_TXRTSCTRL_B1RTSM

#define MCP2515_TXRTSCTRL_B1RTSM   0x02

Definition at line 180 of file mcp2515_defines.h.

◆ MCP2515_TXRTSCTRL_B2RTS

#define MCP2515_TXRTSCTRL_B2RTS   0x20

Definition at line 184 of file mcp2515_defines.h.

◆ MCP2515_TXRTSCTRL_B2RTSM

#define MCP2515_TXRTSCTRL_B2RTSM   0x04

Definition at line 181 of file mcp2515_defines.h.