fuchsia.bluetooth

STRUCTS

Address

Defined in fuchsia.bluetooth/address.fidl

Represents a 48-bit Bluetooth Device Address.

NameTypeDescriptionDefault
type AddressType Type of the device address. No default
bytes uint8[6] The device address bytes in little-endian order. No default

DeviceClass

Defined in fuchsia.bluetooth/device_class.fidl

The "Class of Device/Service" is a variable-format field that defines the category of a Bluetooth device. The bitfield is divided into segments called "major service class", "major device class", and "minor device class".

No assumptions about the specific functionality or characteristics of any application should be based solely on its inclusion within a Major or Minor device class. For more information, see https://www.bluetooth.com/specifications/assigned-numbers/baseband.

NameTypeDescriptionDefault
value uint32 No default

Id

Defined in fuchsia.bluetooth/id.fidl

Generic 64-bit identifier type.

NameTypeDescriptionDefault
value uint64 No default

PeerId

Defined in fuchsia.bluetooth/id.fidl

64-bit unique value used by the system to identify peer devices.

NameTypeDescriptionDefault
value uint64 No default

Bool

Defined in fuchsia.bluetooth/nullables.fidl

NameTypeDescriptionDefault
value bool No default

Int8

Defined in fuchsia.bluetooth/nullables.fidl

NameTypeDescriptionDefault
value int8 No default

UInt16

Defined in fuchsia.bluetooth/nullables.fidl

NameTypeDescriptionDefault
value uint16 No default

Error

Defined in fuchsia.bluetooth/status.fidl

NameTypeDescriptionDefault
error_code ErrorCode No default
protocol_error_code uint32 No default
description string? No default

Status

Defined in fuchsia.bluetooth/status.fidl

NameTypeDescriptionDefault
error Error? No default

Uuid

Defined in fuchsia.bluetooth/uuid.fidl

Represents a Bluetooth UUID in its 128-bit canonical form. While the Bluetooth standard supports 16- and 32-bit short form UUIDs over the wire, the Fuchsia FIDL libraries require all UUIDs to be represented in their canonical 128-bit form.

NameTypeDescriptionDefault
value uint8[16] The UUID bytes in little-endian order. No default

ENUMS

AddressType

Type: uint8

Defined in fuchsia.bluetooth/address.fidl

NameValueDescription
PUBLIC 1 LE public device address or `BR/EDR` `BD_ADDR`.
RANDOM 2 LE private or static random device address.

Appearance

Type: uint16

Defined in fuchsia.bluetooth/appearance.fidl

Possible values for the LE Appearance property which describes the external appearance of a peer at a high level. (See the Bluetooth assigned-numbers document: https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.gap.appearance.xml)

NameValueDescription
UNKNOWN 0
PHONE 64
COMPUTER 128
WATCH 192
WATCH_SPORTS 193
CLOCK 256
DISPLAY 320
REMOTE_CONTROL 384
EYE_GLASSES 448
TAG 512
KEYRING 576
MEDIA_PLAYER 640
BARCODE_SCANNER 704
THERMOMETER 768
THERMOMETER_EAR 769
HEART_RATE_SENSOR 832
HEART_RATE_SENSOR_BELT 833
BLOOD_PRESSURE 896
BLOOD_PRESSURE_ARM 897
BLOOD_PRESSURE_WRIST 898
HID 960
HID_KEYBOARD 961
HID_MOUSE 962
HID_JOYSTICK 963
HID_GAMEPAD 964
HID_DIGITIZER_TABLET 965
HID_CARD_READER 966
HID_DIGITAL_PEN 967
HID_BARCODE_SCANNER 968
GLUCOSE_METER 1024
RUNNING_WALKING_SENSOR 1088
RUNNING_WALKING_SENSOR_IN_SHOE 1089
RUNNING_WALKING_SENSOR_ON_SHOE 1090
RUNNING_WALKING_SENSOR_ON_HIP 1091
CYCLING 1152
CYCLING_COMPUTER 1153
CYCLING_SPEED_SENSOR 1154
CYCLING_CADENCE_SENSOR 1155
CYCLING_POWER_SENSOR 1156
CYCLING_SPEED_AND_CADENCE_SENSOR 1157
PULSE_OXIMETER 3136
PULSE_OXIMETER_FINGERTIP 3137
PULSE_OXIMETER_WRIST 3138
WEIGHT_SCALE 3200
PERSONAL_MOBILITY 3264
PERSONAL_MOBILITY_WHEELCHAIR 3265
PERSONAL_MOBILITY_SCOOTER 3266
GLUCOSE_MONITOR 3328
SPORTS_ACTIVITY 5184
SPORTS_ACTIVITY_LOCATION_DISPLAY 5185
SPORTS_ACTIVITY_LOCATION_AND_NAV_DISPLAY 5186
SPORTS_ACTIVITY_LOCATION_POD 5187
SPORTS_ACTIVITY_LOCATION_AND_NAV_POD 5188

ConnectionRole

Type: uint32

Defined in fuchsia.bluetooth/connection_role.fidl

Refers to the role of a Bluetooth device (local or peer) in a physical channel piconet. See Bluetooth Vocabulary Guide for more information.

NameValueDescription
LEADER 1 The role of the device that defines the piconet physical channel in BR/EDR or the "initiating" device in LE.
FOLLOWER 2 The role of a device that synchronizes to the piconet physical channel in BR/EDR or the "advertising" device in LE.

ErrorCode

Type: uint32

Defined in fuchsia.bluetooth/status.fidl

DEPRECATED. Do not use these types in new code. Prefer the "error" syntax, protocol-specific enums and zx.status instead.

NameValueDescription
UNKNOWN 0
FAILED 1
CANCELED 2
IN_PROGRESS 3
TIMED_OUT 4
NOT_FOUND 5
NOT_SUPPORTED 6
BLUETOOTH_NOT_AVAILABLE 7
BAD_STATE 8
INVALID_ARGUMENTS 9
ALREADY 10
PROTOCOL_ERROR 11

CONSTANTS

NameValueTypeDescription
MAJOR_DEVICE_CLASS_MASK 7936 uint32 Constants for the major device class field. The major device class is defined by bits 12-8.
MAJOR_DEVICE_CLASS_MISCELLANEOUS 0 uint32
MAJOR_DEVICE_CLASS_COMPUTER 256 uint32
MAJOR_DEVICE_CLASS_PHONE 512 uint32
MAJOR_DEVICE_CLASS_LAN 768 uint32
MAJOR_DEVICE_CLASS_AUDIO_VIDEO 1024 uint32
MAJOR_DEVICE_CLASS_PERIPHERAL 1280 uint32
MAJOR_DEVICE_CLASS_IMAGING 1536 uint32
MAJOR_DEVICE_CLASS_WEARABLE 1792 uint32
MAJOR_DEVICE_CLASS_TOY 2048 uint32
MAJOR_DEVICE_CLASS_HEALTH 2304 uint32
MAJOR_DEVICE_CLASS_UNCATEGORIZED 7936 uint32