Class GattPresentationFormat
- Assembly
- nanoFramework.Device.Bluetooth.dll
Represents the value of a single Presentation Format GATT Descriptor.
public class GattPresentationFormat
- Inheritance
-
GattPresentationFormat
- Inherited Members
- Extension Methods
Properties
Description
Gets the Description of the GattPresentationFormat object.
public ushort Description { get; }
Property Value
Exponent
Gets the Exponent of the GattPresentationFormat object.
public int Exponent { get; }
Property Value
FormatType
Gets the Format Type of the GattPresentationFormat object.
public byte FormatType { get; }
Property Value
Namespace
Gets the Name space of the GattPresentationFormat object.
public byte Namespace { get; }
Property Value
Unit
Gets the Unit of the GattPresentationFormat object.
public ushort Unit { get; }
Property Value
Methods
FromParts(byte, int, ushort, byte, ushort)
Creates a GattPresentationFormat object from parts.
public static GattPresentationFormat FromParts(byte formatType, int exponent, ushort unit, byte namespaceId, ushort description)
Parameters
formatType
byteThe Format Type.
exponent
intThe exponent.
unit
ushortThe unit.
namespaceId
byteThe namespace id.
description
ushortThe description.
Returns
- GattPresentationFormat
An instance of GattPresentationFormat.