Table of Contents

Class Mcp2515

Namespace
Iot.Device.Mcp25xxx
Assembly
Iot.Device.Mcp25xxx.dll

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 SpiDevice

The SPI device used for communication.

reset int

The output pin number that is connected to Reset.

tx0rts int

The output pin number that is connected to Tx0RTS.

tx1rts int

The output pin number that is connected to Tx1RTS.

tx2rts int

The output pin number that is connected to Tx2RTS.

interrupt int

The input pin number that is connected to INT.

rx0bf int

The input pin number that is connected to Rx0BF.

rx1bf int

The input pin number that is connected to Rx1BF.

clkout int

The input pin number that is connected to CLKOUT.

gpioController GpioController

The GPIO controller for defined external pins. If not specified, the default controller will be used.

shouldDispose bool

True to dispose the Gpio Controller