Class Mcp2515
Driver for the Microchip MCP2515 CAN controller.
public class Mcp2515 : Mcp25xxx
- Inheritance
-
Mcp2515
- Inherited Members
Constructors
Mcp2515(SpiDevice, int, int, int, int, int, int, int, int, GpioController?, bool)
Initializes a new instance of the Mcp2515 class.
public Mcp2515(SpiDevice spiDevice, int reset = -1, int tx0rts = -1, int tx1rts = -1, int tx2rts = -1, int interrupt = -1, int rx0bf = -1, int rx1bf = -1, int clkout = -1, GpioController? gpioController = null, bool shouldDispose = true)
Parameters
spiDevice
SpiDeviceThe SPI device used for communication.
reset
intThe output pin number that is connected to Reset.
tx0rts
intThe output pin number that is connected to Tx0RTS.
tx1rts
intThe output pin number that is connected to Tx1RTS.
tx2rts
intThe output pin number that is connected to Tx2RTS.
interrupt
intThe input pin number that is connected to INT.
rx0bf
intThe input pin number that is connected to Rx0BF.
rx1bf
intThe input pin number that is connected to Rx1BF.
clkout
intThe input pin number that is connected to CLKOUT.
gpioController
GpioControllerThe GPIO controller for defined external pins. If not specified, the default controller will be used.
shouldDispose
boolTrue to dispose the Gpio Controller