Sei sulla pagina 1di 3

2017611 FormatTypes|BluetoothTechnologyWebsite

speci cations

Format Types
The format eld determines how a single value contained in the Characteristic Value is formatted.

The information contained on this page is referenced inBluetoothCore Speci cation Volume 3, Part G, Section
3.3.3.5.2.

If a format is not a whole number of octets, then the datashall be contained within the least signi cant bits of
the value, and all other bitsshall be set to zero on transmission and ignored upon receipt. If theCharacteristic
Value is less than an octet, it occupies an entire octet.The following format values are de ned:

Characteristic Format Types

Search:

Showing 1 to 29 of 29 entries

Format Short Name Description Exponent Value


000 rfu Reserved for future use No

001 boolean unsigned 1-bit; 0=false, 1=true No

002 2bit unsigned 2-bit integer No

003 nibble unsigned 4-bit integer No

004 uint8 unsigned 8-bit integer Yes

005 uint12 unsigned 12-bit integer Yes

006 uint16 unsigned 16-bit integer Yes

007 uint24 unsigned 24-bit integer Yes

008 uint32 unsigned 32-bit integer Yes


https://www.bluetooth.com/specifications/assignednumbers/formattypes 1/3
2017611 FormatTypes|BluetoothTechnologyWebsite

009 uint48 unsigned 48-bit integer Yes

00A uint64 unsigned 64-bit integer Yes

00B uint128 unsigned 128-bit integer Yes

00C sint8 signed 8-bit integer Yes

00D sint12 signed 12-bit integer Yes

00E sint16 signed 16-bit integer Yes

00F sint24 signed 24-bit integer Yes

010 sint32 signed 32-bit integer Yes

011 sint48 signed 48-bit integer Yes

012 sint64 signed 64-bit integer Yes

013 sint128 signed 128-bit integer Yes

014 oat32 IEEE-754 32-bit oating point No

015 oat64 IEEE-754 64-bit oating point No

016 SFLOAT IEEE-11073 16-bit SFLOAT No

017 FLOAT IEEE-11073 32-bit FLOAT No

018 duint16 IEEE-20601 format No

019 utf8s UTF-8 string No

01A utf16s UTF-16 string No

01B struct Opaque structure No

https://www.bluetooth.com/specifications/assignednumbers/formattypes 2/3
2017611 FormatTypes|BluetoothTechnologyWebsite

01C-0xFF rfu Reserved for Future Use No

Additional Formatting Notes


When encoding an IPv4 address, the uint32 Format type shall be used.

When encoding an IPv6 address, the uint128 Format type shall be used.

When encoding a Bluetooth BD_ADDR, the uint48 Format type shall be used.

A duint16 is two uint16 values concatenated together.

unde ned

https://www.bluetooth.com/specifications/assignednumbers/formattypes 3/3

Potrebbero piacerti anche