Mcp25xxx Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Mcp25xxx(SpiDevice, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, GpioController) | |
Mcp25xxx(SpiDevice, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, GpioController, Boolean) |
A general purpose driver for the Microchip MCP25 CAN controller device family. |
Mcp25xxx(SpiDevice, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, GpioController)
public Mcp25xxx (System.Device.Spi.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, System.Device.Gpio.GpioController gpioController = default);
new Iot.Device.Mcp25xxx.Mcp25xxx : System.Device.Spi.SpiDevice * int * int * int * int * int * int * int * int * System.Device.Gpio.GpioController -> Iot.Device.Mcp25xxx.Mcp25xxx
Public Sub New (spiDevice As SpiDevice, Optional reset As Integer = -1, Optional tx0rts As Integer = -1, Optional tx1rts As Integer = -1, Optional tx2rts As Integer = -1, Optional interrupt As Integer = -1, Optional rx0bf As Integer = -1, Optional rx1bf As Integer = -1, Optional clkout As Integer = -1, Optional gpioController As GpioController = Nothing)
Parameters
- spiDevice
- SpiDevice
- reset
- Int32
- tx0rts
- Int32
- tx1rts
- Int32
- tx2rts
- Int32
- interrupt
- Int32
- rx0bf
- Int32
- rx1bf
- Int32
- clkout
- Int32
- gpioController
- GpioController
Applies to
Mcp25xxx(SpiDevice, Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32, GpioController, Boolean)
A general purpose driver for the Microchip MCP25 CAN controller device family.
public Mcp25xxx (System.Device.Spi.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, System.Device.Gpio.GpioController? gpioController = default, bool shouldDispose = true);
new Iot.Device.Mcp25xxx.Mcp25xxx : System.Device.Spi.SpiDevice * int * int * int * int * int * int * int * int * System.Device.Gpio.GpioController * bool -> Iot.Device.Mcp25xxx.Mcp25xxx
Public Sub New (spiDevice As SpiDevice, Optional reset As Integer = -1, Optional tx0rts As Integer = -1, Optional tx1rts As Integer = -1, Optional tx2rts As Integer = -1, Optional interrupt As Integer = -1, Optional rx0bf As Integer = -1, Optional rx1bf As Integer = -1, Optional clkout As Integer = -1, Optional gpioController As GpioController = Nothing, Optional shouldDispose As Boolean = true)
Parameters
- spiDevice
- SpiDevice
The SPI device used for communication.
- reset
- Int32
The output pin number that is connected to Reset.
- tx0rts
- Int32
The output pin number that is connected to Tx0RTS.
- tx1rts
- Int32
The output pin number that is connected to Tx1RTS.
- tx2rts
- Int32
The output pin number that is connected to Tx2RTS.
- interrupt
- Int32
The input pin number that is connected to INT.
- rx0bf
- Int32
The input pin number that is connected to Rx0BF.
- rx1bf
- Int32
The input pin number that is connected to Rx1BF.
- clkout
- Int32
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
- Boolean
True to dispose the Gpio Controller
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for