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
sigbyteThe signature.
vidushortThe vendor ID.
pidushortThe product ID.
versionushortThe version number.
Properties
Pid
Gets the PnP Product ID.
public ushort Pid { get; }
Property Value
Sig
Gets the PnP Signature.
public byte Sig { get; }
Property Value
Version
Gets the PnP version.
public ushort Version { get; }
Property Value
Vid
Gets the PnP Vendor ID.
public ushort Vid { get; }
Property Value
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()