Nrf24l01 Constructors
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.
C#
public Nrf24l01 (System.Device.Spi.SpiDevice sensor, int ce, int irq, byte packetSize, byte channel = 2, Iot.Device.Nrf24l01.OutputPower outputPower = Iot.Device.Nrf24l01.OutputPower.N00dBm, Iot.Device.Nrf24l01.DataRate dataRate = Iot.Device.Nrf24l01.DataRate.Rate2Mbps, System.Device.Gpio.PinNumberingScheme pinNumberingScheme = System.Device.Gpio.PinNumberingScheme.Logical);
new Iot.Device.Nrf24l01.Nrf24l01 : System.Device.Spi.SpiDevice * int * int * byte * byte * Iot.Device.Nrf24l01.OutputPower * Iot.Device.Nrf24l01.DataRate * System.Device.Gpio.PinNumberingScheme -> Iot.Device.Nrf24l01.Nrf24l01
Public Sub New (sensor As SpiDevice, ce As Integer, irq As Integer, packetSize As Byte, Optional channel As Byte = 2, Optional outputPower As OutputPower = Iot.Device.Nrf24l01.OutputPower.N00dBm, Optional dataRate As DataRate = Iot.Device.Nrf24l01.DataRate.Rate2Mbps, Optional pinNumberingScheme As PinNumberingScheme = System.Device.Gpio.PinNumberingScheme.Logical)
Parameters
- sensor
- SpiDevice
- ce
- Int32
- irq
- Int32
- packetSize
- Byte
- channel
- Byte
- outputPower
- OutputPower
- dataRate
- DataRate
- pinNumberingScheme
- PinNumberingScheme
Applies to
.NET IoT Libraries 1.0.0
Product | Versions |
---|---|
.NET IoT Libraries | 1.0.0 |
Nrf24l01(SpiDevice, Int32, Int32, Byte, Byte, OutputPower, DataRate, PinNumberingScheme, GpioController, Boolean)
Creates a new instance of the nRF24L01.
C#
public Nrf24l01 (System.Device.Spi.SpiDevice sensor, int ce, int irq, byte packetSize, byte channel = 2, Iot.Device.Nrf24l01.OutputPower outputPower = Iot.Device.Nrf24l01.OutputPower.N00dBm, Iot.Device.Nrf24l01.DataRate dataRate = Iot.Device.Nrf24l01.DataRate.Rate2Mbps, System.Device.Gpio.PinNumberingScheme pinNumberingScheme = System.Device.Gpio.PinNumberingScheme.Logical, System.Device.Gpio.GpioController? gpioController = default, bool shouldDispose = true);
new Iot.Device.Nrf24l01.Nrf24l01 : System.Device.Spi.SpiDevice * int * int * byte * byte * Iot.Device.Nrf24l01.OutputPower * Iot.Device.Nrf24l01.DataRate * System.Device.Gpio.PinNumberingScheme * System.Device.Gpio.GpioController * bool -> Iot.Device.Nrf24l01.Nrf24l01
Public Sub New (sensor As SpiDevice, ce As Integer, irq As Integer, packetSize As Byte, Optional channel As Byte = 2, Optional outputPower As OutputPower = Iot.Device.Nrf24l01.OutputPower.N00dBm, Optional dataRate As DataRate = Iot.Device.Nrf24l01.DataRate.Rate2Mbps, Optional pinNumberingScheme As PinNumberingScheme = System.Device.Gpio.PinNumberingScheme.Logical, Optional gpioController As GpioController = Nothing, Optional shouldDispose As Boolean = true)
Parameters
- sensor
- SpiDevice
The communications channel to a device on a SPI bus
- ce
- Int32
CE Pin
- irq
- Int32
IRQ Pin
- packetSize
- Byte
Receive Packet Size
- channel
- Byte
Working Channel
- outputPower
- OutputPower
Output Power
- dataRate
- DataRate
Send Data Rate
- pinNumberingScheme
- PinNumberingScheme
Pin Numbering Scheme
- gpioController
- GpioController
GpioController related with operations on pins
- shouldDispose
- Boolean
True to dispose the Gpio Controller
Applies to
.NET IoT Libraries 2.2.0 and other versions
Product | Versions |
---|---|
.NET IoT Libraries | 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |