Table of Contents

Class GattPresentationFormat

Namespace
nanoFramework.Device.Bluetooth.GenericAttributeProfile
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

ushort

Exponent

Gets the Exponent of the GattPresentationFormat object.

public int Exponent { get; }

Property Value

int

FormatType

Gets the Format Type of the GattPresentationFormat object.

public byte FormatType { get; }

Property Value

byte

Namespace

Gets the Name space of the GattPresentationFormat object.

public byte Namespace { get; }

Property Value

byte

Unit

Gets the Unit of the GattPresentationFormat object.

public ushort Unit { get; }

Property Value

ushort

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 byte

The Format Type.

exponent int

The exponent.

unit ushort

The unit.

namespaceId byte

The namespace id.

description ushort

The description.

Returns

GattPresentationFormat

An instance of GattPresentationFormat.