Table of Contents

Class PnpElements

Namespace
nanoFramework.Bluetooth.Hid
Assembly
nanoFramework.Bluetooth.Hid.dll

The Plug and Play Information.

public class PnpElements
Inheritance
PnpElements
Inherited Members
Extension Methods

Constructors

PnpElements(byte, ushort, ushort, ushort)

Initializes a new instance of the PnpElements class.

public PnpElements(byte sig, ushort vid, ushort pid, ushort version)

Parameters

sig byte

The signature.

vid ushort

The vendor ID.

pid ushort

The product ID.

version ushort

The version number.

Properties

Pid

Gets the PnP Product ID.

public ushort Pid { get; }

Property Value

ushort

Sig

Gets the PnP Signature.

public byte Sig { get; }

Property Value

byte

Version

Gets the PnP version.

public ushort Version { get; }

Property Value

ushort

Vid

Gets the PnP Vendor ID.

public ushort Vid { get; }

Property Value

ushort

Methods

Serialize()

Serializes the current instance into a PnP byte array specially formatted for advertising the device.

public byte[] Serialize()

Returns

byte[]

A specially formatted byte array representing this instance.

ToBuffer()

Serializes the current instance into a PnP byte array specially formatted for advertising the device and wraps it in a Buffer instance.

public Buffer ToBuffer()

Returns

Buffer

A specially formatted byte array representing this instance wrapped in a Buffer instance.