Edit

Share via


Pn532 Constructors

Definition

Overloads

Pn532(I2cDevice)

Create a PN532 using I2C

Pn532(String)

Create a PN532 using Serial Port

Pn532(I2cDevice, Boolean)

Create a PN532 using I2C

Pn532(SpiDevice, LogLevel)

Create a PN532 using SPI

Pn532(String, LogLevel)

Create a PN532 using Serial Port

Pn532(String, Boolean)

Create a PN532 using Serial Port

Pn532(I2cDevice, LogLevel)

Create a PN532 using I2C

Pn532(SpiDevice, Int32, GpioController, Boolean)

Create a PN532 using SPI

Pn532(SpiDevice, Int32, GpioController, LogLevel, Boolean)

Create a PN532 using SPI

Pn532(SpiDevice, Int32, GpioController, Boolean, Boolean)

Create a PN532 using SPI

Pn532(I2cDevice)

Create a PN532 using I2C

public Pn532 (System.Device.I2c.I2cDevice i2cDevice);
new Iot.Device.Pn532.Pn532 : System.Device.I2c.I2cDevice -> Iot.Device.Pn532.Pn532
Public Sub New (i2cDevice As I2cDevice)

Parameters

i2cDevice
I2cDevice

The I2C device

Applies to

Pn532(String)

Create a PN532 using Serial Port

public Pn532 (string portName);
new Iot.Device.Pn532.Pn532 : string -> Iot.Device.Pn532.Pn532
Public Sub New (portName As String)

Parameters

portName
String

The port name

Applies to

Pn532(I2cDevice, Boolean)

Create a PN532 using I2C

public Pn532 (System.Device.I2c.I2cDevice i2cDevice, bool checkVersion = true);
new Iot.Device.Pn532.Pn532 : System.Device.I2c.I2cDevice * bool -> Iot.Device.Pn532.Pn532
Public Sub New (i2cDevice As I2cDevice, Optional checkVersion As Boolean = true)

Parameters

i2cDevice
I2cDevice

The I2C device

checkVersion
Boolean

Check the PN532 version. Some copies do not return a proper number.

Applies to

Pn532(SpiDevice, LogLevel)

Create a PN532 using SPI

public Pn532 (System.Device.Spi.SpiDevice spiDevice, Iot.Device.Card.LogLevel logLevel = Iot.Device.Card.LogLevel.None);
new Iot.Device.Pn532.Pn532 : System.Device.Spi.SpiDevice * Iot.Device.Card.LogLevel -> Iot.Device.Pn532.Pn532
Public Sub New (spiDevice As SpiDevice, Optional logLevel As LogLevel = Iot.Device.Card.LogLevel.None)

Parameters

spiDevice
SpiDevice

The SPI Device

logLevel
LogLevel

The log level

Applies to

Pn532(String, LogLevel)

Create a PN532 using Serial Port

public Pn532 (string portName, Iot.Device.Card.LogLevel logLevel = Iot.Device.Card.LogLevel.None);
new Iot.Device.Pn532.Pn532 : string * Iot.Device.Card.LogLevel -> Iot.Device.Pn532.Pn532
Public Sub New (portName As String, Optional logLevel As LogLevel = Iot.Device.Card.LogLevel.None)

Parameters

portName
String

The port name

logLevel
LogLevel

The log level

Applies to

Pn532(String, Boolean)

Create a PN532 using Serial Port

public Pn532 (string portName, bool checkVersion = true);
new Iot.Device.Pn532.Pn532 : string * bool -> Iot.Device.Pn532.Pn532
Public Sub New (portName As String, Optional checkVersion As Boolean = true)

Parameters

portName
String

The port name

checkVersion
Boolean

Check the PN532 version. Some copies do not return a proper number.

Applies to

Pn532(I2cDevice, LogLevel)

Create a PN532 using I2C

public Pn532 (System.Device.I2c.I2cDevice i2CDevice, Iot.Device.Card.LogLevel logLevel = Iot.Device.Card.LogLevel.None);
public Pn532 (System.Device.I2c.I2cDevice i2cDevice, Iot.Device.Card.LogLevel logLevel = Iot.Device.Card.LogLevel.None);
new Iot.Device.Pn532.Pn532 : System.Device.I2c.I2cDevice * Iot.Device.Card.LogLevel -> Iot.Device.Pn532.Pn532
new Iot.Device.Pn532.Pn532 : System.Device.I2c.I2cDevice * Iot.Device.Card.LogLevel -> Iot.Device.Pn532.Pn532
Public Sub New (i2CDevice As I2cDevice, Optional logLevel As LogLevel = Iot.Device.Card.LogLevel.None)
Public Sub New (i2cDevice As I2cDevice, Optional logLevel As LogLevel = Iot.Device.Card.LogLevel.None)

Parameters

i2CDevicei2cDevice
I2cDevice

The I2C device

logLevel
LogLevel

The log level

Applies to

Pn532(SpiDevice, Int32, GpioController, Boolean)

Create a PN532 using SPI

public Pn532 (System.Device.Spi.SpiDevice spiDevice, int pinChipSelect, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = false);
new Iot.Device.Pn532.Pn532 : System.Device.Spi.SpiDevice * int * System.Device.Gpio.GpioController * bool -> Iot.Device.Pn532.Pn532
Public Sub New (spiDevice As SpiDevice, pinChipSelect As Integer, Optional controller As GpioController = Nothing, Optional shouldDispose As Boolean = false)

Parameters

spiDevice
SpiDevice

The SPI Device

pinChipSelect
Int32

The GPIO pin number for the chip select

controller
GpioController

A GPIO controller

shouldDispose
Boolean

Dispose the GPIO Controller at the end

Applies to

Pn532(SpiDevice, Int32, GpioController, LogLevel, Boolean)

Create a PN532 using SPI

public Pn532 (System.Device.Spi.SpiDevice spiDevice, int pinChipSelect, System.Device.Gpio.GpioController? controller = default, Iot.Device.Card.LogLevel logLevel = Iot.Device.Card.LogLevel.None, bool shouldDispose = false);
new Iot.Device.Pn532.Pn532 : System.Device.Spi.SpiDevice * int * System.Device.Gpio.GpioController * Iot.Device.Card.LogLevel * bool -> Iot.Device.Pn532.Pn532
Public Sub New (spiDevice As SpiDevice, pinChipSelect As Integer, Optional controller As GpioController = Nothing, Optional logLevel As LogLevel = Iot.Device.Card.LogLevel.None, Optional shouldDispose As Boolean = false)

Parameters

spiDevice
SpiDevice

The SPI Device

pinChipSelect
Int32

The GPIO pin number for the chip select

controller
GpioController

A GPIO controller

logLevel
LogLevel

The log level

shouldDispose
Boolean

Dispose the GPIO Controller at the end

Applies to

Pn532(SpiDevice, Int32, GpioController, Boolean, Boolean)

Create a PN532 using SPI

public Pn532 (System.Device.Spi.SpiDevice spiDevice, int pinChipSelect, System.Device.Gpio.GpioController? controller = default, bool shouldDispose = false, bool checkVersion = true);
new Iot.Device.Pn532.Pn532 : System.Device.Spi.SpiDevice * int * System.Device.Gpio.GpioController * bool * bool -> Iot.Device.Pn532.Pn532
Public Sub New (spiDevice As SpiDevice, pinChipSelect As Integer, Optional controller As GpioController = Nothing, Optional shouldDispose As Boolean = false, Optional checkVersion As Boolean = true)

Parameters

spiDevice
SpiDevice

The SPI Device

pinChipSelect
Int32

The GPIO pin number for the chip select

controller
GpioController

A GPIO controller

shouldDispose
Boolean

Dispose the GPIO Controller at the end

checkVersion
Boolean

Check the PN532 version. Some copies do not return a proper number.

Applies to