<br />

Added: 7

## **PROTOCOLS**

## Channel

*Defined in [fuchsia.bluetooth/channel.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/channel.fidl;l=20)*

A duplex channel for sending/recieving [Packet](https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#Packet)s. This protocol also
serves as a token to keeping the `Channel` open. Closing this protocol (and
the associated `socket` for BR/EDR channels) will close the underlying
channel.
Added: 23

<br />

### Receive

Hanging get that waits for inbound packets. Only one `Receive`
may be pending at a time.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#Channel_Receive_Result` |

### Send

Send multiple packets of data over the channel. Only one `Send`
may be pending at a time.

#### Request

| Name | Type |
|---|---|
| `packets` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#Packet>` |

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#Channel_Send_Result` |

### WatchChannelParameters

For RFCOMM channels, this will not return and calls will hang
indefinitely.

For BR/EDR L2CAP connection-oriented channels this will currently not
return and calls will hang indefinitely. The initial channel parameters
are provided in [fuchsia.bluetooth.bredr](https://fuchsia.dev/reference/fuchsia.bluetooth.bredr/)/[Channel](https://fuchsia.dev/reference/fuchsia.bluetooth.bredr/#Channel).

For LE L2CAP connection-oriented channels, the first call will
immediately return the parameters of the remote side of the channel.
Subsequent calls will hang until the [ChannelParameters](https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#ChannelParameters) change, at
which point it will return the new parameters, including those that have
not changed.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#Channel_WatchChannelParameters_Result` |

## **STRUCTS**

### Address

*Defined in [fuchsia.bluetooth/address.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/address.fidl;l=16)*

Represents a 48-bit Bluetooth Device Address.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `type` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#AddressType` | Type of the device address. | No default |
| `bytes` | `array<uint8, 6>` | The device address bytes in little-endian order. | No default |

### Bool

*Defined in [fuchsia.bluetooth/deprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/deprecated.fidl;l=10)*

**DEPRECATED**

| Field | Type | Description | Default |
|---|---|---|---|
| `value` | `bool` |   | No default |

<br />

### Channel_Receive_Response

*Defined in [fuchsia.bluetooth/channel.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/channel.fidl;l=29)*

| Field | Type | Description | Default |
|---|---|---|---|
| `packets` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#Packet>` |   | No default |

### Channel_Send_Response

*Defined in [fuchsia.bluetooth/channel.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/channel.fidl;l=25)*

\<EMPTY\>

### DeviceClass

*Defined in [fuchsia.bluetooth/device_class.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_class.fidl;l=13)*

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.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `value` | `uint32` |   | No default |

### Error

*Defined in [fuchsia.bluetooth/deprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/deprecated.fidl;l=43)*

**DEPRECATED**- Use protocol specific error enums instead

| Field | Type | Description | Default |
|---|---|---|---|
| `error_code` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#ErrorCode` |   | No default |
| `protocol_error_code` | `uint32` |   | No default |
| `description` | `string?` |   | No default |

<br />

### HostId

*Defined in [fuchsia.bluetooth/id.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/id.fidl;l=7)*

64-bit unique value used by the system to identify host adapters.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `value` | `uint64` |   | No default |

### Int8

*Defined in [fuchsia.bluetooth/deprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/deprecated.fidl;l=15)*

**DEPRECATED**

| Field | Type | Description | Default |
|---|---|---|---|
| `value` | `int8` |   | No default |

<br />

### Packet

*Defined in [fuchsia.bluetooth/channel.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/channel.fidl;l=11)*

A payload of data sourced from or sent to a protocol or service on the
remote peer.
Added: 23

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `packet` | `vector<uint8>` |   | No default |

### PeerId

*Defined in [fuchsia.bluetooth/id.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/id.fidl;l=12)*

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

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `value` | `uint64` |   | No default |

### Status

*Defined in [fuchsia.bluetooth/deprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/deprecated.fidl;l=61)*

**DEPRECATED**- Use protocol specific error enums and the 'error' syntax instead

| Field | Type | Description | Default |
|---|---|---|---|
| `error` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#Error?` |   | No default |

<br />

### UInt16

*Defined in [fuchsia.bluetooth/deprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/deprecated.fidl;l=20)*

**DEPRECATED**

| Field | Type | Description | Default |
|---|---|---|---|
| `value` | `uint16` |   | No default |

<br />

### Uuid

*Defined in [fuchsia.bluetooth/uuid.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/uuid.fidl;l=9)*

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.

<br />

| Field | Type | Description | Default |
|---|---|---|---|
| `value` | `array<uint8, 16>` | The UUID bytes in little-endian order. | No default |

## **ENUMS**

### AddressType [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint8`

*Defined in [fuchsia.bluetooth/address.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/address.fidl;l=7)*

| Name | Value | Description |
|---|---|---|
| ### PUBLIC | `1` | LE public device address or `BR/EDR` `BD_ADDR`. |
| ### RANDOM | `2` | LE private or static random device address. |

### Appearance [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint16`

*Defined in [fuchsia.bluetooth/appearance.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/appearance.fidl;l=12)*

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)
This enum is flexible as newer devices may use new appearance values and in the future the
assigned numbers document may have additional entries.

<br />

| Name | Value | Description |
|---|---|---|
| ### 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` |   |

### AssignedCodingFormat [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint8`

*Defined in [fuchsia.bluetooth/coding_format.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/coding_format.fidl;l=9)*

Coding Format, as specified by the Bluetooth SIG (see Assigned Numbers document for values):
https://www.bluetooth.com/specifications/assigned-numbers/
Added: 23

<br />

| Name | Value | Description |
|---|---|---|
| ### U_LAW_LOG | `0` |   |
| ### A_LAW_LOG | `1` |   |
| ### CVSD | `2` |   |
| ### TRANSPARENT | `3` |   |
| ### LINEAR_PCM | `4` |   |
| ### MSBC | `5` |   |
| ### LC3 | `6` |   |
| ### G_729A | `7` |   |

### ChannelMode [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.bluetooth/channel.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/channel.fidl;l=59)*

The supported channel modes of operation of an L2CAP channel.

For BR/EDR, this is used to specify preferred and accepted L2CAP channel
modes. If the peer rejects a non-BASIC mode, the Bluetooth system will
attempt to open the channel in BASIC mode instead.

For LE, this is used to specify the exact channel mode to use, if the
peer rejects the requested mode, the channel will fail to be established.

For a description of each mode, see Bluetooth Spec v5.4, Vol 3, Part A, Sec 2.4.
Added: 23

<br />

| Name | Value | Description |
|---|---|---|
| ### BASIC | `1` | BR/EDR only. |
| ### ENHANCED_RETRANSMISSION | `2` | BR/EDR only. |
| ### LE_CREDIT_BASED_FLOW_CONTROL | `3` | LE only. |
| ### ENHANCED_CREDIT_BASED_FLOW_CONTROL | `4` | LE_only. |

### ConnectionRole [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.bluetooth/connection_role.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/connection_role.fidl;l=10)*

Refers to the role of a Bluetooth device (local or peer) in a physical channel piconet. See
[Bluetooth Vocabulary Guide](https://cs.opensource.google/fuchsia/fuchsia/+/main:src/connectivity/bluetooth/docs/vocabulary.md)
for more information.

<br />

| Name | Value | Description |
|---|---|---|
| ### 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. |

### DataDirection [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint8`

*Defined in [fuchsia.bluetooth/coding_format.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/coding_format.fidl;l=59)*

Indicates direction of data in a stream. Note that these values do not correspond to constants
from the Bluetooth Core specification.
Added: 24

<br />

| Name | Value | Description |
|---|---|---|
| ### INPUT | `1` | Host =\> Controller |
| ### OUTPUT | `2` | Controller =\> Host |

### ErrorCode [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.bluetooth/deprecated.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/deprecated.fidl;l=26)*

**DEPRECATED**- Use protocol specific error enums and zx.Status instead

| Name | Value | Description |
|---|---|---|
| ### 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` |   |

<br />

### LogicalTransportType [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint8`

*Defined in [fuchsia.bluetooth/coding_format.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/coding_format.fidl;l=71)*

Logical transport types that may be used with encoded data streams. Note that these values do
not correspond to constants from the Bluetooth Core specification, nor are BR/EDR values
supported yet.
Added: 24

<br />

| Name | Value | Description |
|---|---|---|
| ### LE_CIS | `1` | LE CIS |
| ### LE_BIS | `2` | LE BIS |

## **TABLES**

### ChannelParameters

*Defined in [fuchsia.bluetooth/channel.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/channel.fidl;l=89)*

The set of parameters to use or that were used to establish an L2CAP
connection-oriented channel.
Added: 23

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `channel_mode` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#ChannelMode` | Optional. For BR/EDR: If not provided, BASIC will be used. For LE: If not provided, LE_CREDIT_BASED_FLOW_CONTROL will be used. |
| ### 2 | `max_rx_packet_size` | `uint16` | Maximum packet size this profile is capable of accepting. Must be \>= 48. Optional. If not provided, the size will be determined by the Bluetooth system. No guarantees are given regarding the size selected. |
| ### 3 | `security_requirements` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#SecurityRequirements` | For BR/EDR: Minimum security requirements a link must have before this channel can be created. The requirements provided here will be attempted with the peer before the channel is established. If a peer cannot provide the requirements, the channel is closed. Optional. If not provided, then the only security property guaranteed is encryption. For LE: Unused, must not be present. |
| ### 4 | `flush_timeout` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Duration` | For BR/EDR: The flush timeout indicates the maximum amount of time a data packet should be buffered in the controller before it is dropped. A flush timeout of infinity can be used to mark packets as flushable without any particular flush timeout. Range: 1ms - 1,279ms (or ∞). Rounded down. Optional. If not provided, no flush timeout and packets are not flushable. For LE: Unused, must not be present. |

### CodecAttributes

*Defined in [fuchsia.bluetooth/coding_format.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/coding_format.fidl;l=45)*

Identifies a codec and its configuration that may be used with a data stream.
Added: 24

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `codec_id` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#CodecId` | Coding format. Required. |
| ### 2 | `codec_configuration` | `vector<uint8>` | Configuration data. Optionally present, as determined by codec being used. |

### L2capChannelOffloadParameters

*Defined in [fuchsia.bluetooth/channel.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/channel.fidl;l=124)*

Set of low-level L2CAP channel parameters needed to transfer control of
a channel to an offload processor.
Added: 31

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `acl_connection_handle` | `uint16` | The HCI ACL connection handle to the peer over which this L2CAP channel exists. Required. |
| ### 2 | `local_l2cap_channel_id` | `uint16` | Required. |
| ### 3 | `remote_l2cap_channel_id` | `uint16` | Required. |
| ### 4 | `local_l2cap_maximum_payload_size` | `uint16` | The maximum payload size of a RX L2CAP PDU, not to be confused with the MTU of application layer payloads. Required. |
| ### 5 | `remote_l2cap_maximum_payload_size` | `uint16` | The maximum paylod size of a TX L2CAP PDU, not to be confused with the MTU of application layer payloads. Required. |
| ### 6 | `initial_tx_credits` | `uint16` | The initial number of TX flow control credits received from the peer. Optional. Not present for channels without flow control. |

### SecurityRequirements

*Defined in [fuchsia.bluetooth/channel.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/channel.fidl;l=73)*

Authentication and permission requirements to access an advertised service.
BR/EDR only.
Added: 23

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `authentication_required` | `bool` | If present and true, the physical link must be authenticated with on-path attacker protection to access this service. If missing then authentication is not required. |
| ### 2 | `secure_connections_required` | `bool` | If present and true, the physical link must be encrypted with a Secure Connections key to access this service if the host is capable. Advertisement will fail if the host does not support Secure Connections. See Bluetooth Spec v5.2, Vol 3, Part C, Sec 5.2.2.8. |

### VendorCodingFormat

*Defined in [fuchsia.bluetooth/coding_format.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/coding_format.fidl;l=22)*

Vendor-defined coding format.
Added: 24

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `company_id` | `uint16` | Company ID, see Assigned Numbers document for values https://www.bluetooth.com/specifications/assigned-numbers/ Required. |
| ### 2 | `vendor_id` | `uint16` | Vendor-defined codec ID. Required. |

## **UNIONS**

### Channel_Receive_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.bluetooth/channel.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/channel.fidl;l=29)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#Channel_Receive_Response` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### Channel_Send_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.bluetooth/channel.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/channel.fidl;l=25)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#Channel_Send_Response` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### Channel_WatchChannelParameters_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.bluetooth/channel.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/channel.fidl;l=45)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#ChannelParameters` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

### CodecId [flexible](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

*Defined in [fuchsia.bluetooth/coding_format.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/coding_format.fidl;l=35)*

Specifies a coding format.
Added: 24

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `assigned_format` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#AssignedCodingFormat` | Coding format defined by Bluetooth SIG. |
| ### 2 | `vendor_format` | `https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#VendorCodingFormat` | Coding format defined by vendor. |

<br />

## **CONSTANTS**

| Name | Value | Type | Description |
|---|---|---|---|
| [MAJOR_DEVICE_CLASS_AUDIO_VIDEO](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_class.fidl;l=24) | `1024` | `uint32` |   |
| [MAJOR_DEVICE_CLASS_COMPUTER](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_class.fidl;l=21) | `256` | `uint32` |   |
| [MAJOR_DEVICE_CLASS_HEALTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_class.fidl;l=29) | `2304` | `uint32` |   |
| [MAJOR_DEVICE_CLASS_IMAGING](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_class.fidl;l=26) | `1536` | `uint32` |   |
| [MAJOR_DEVICE_CLASS_LAN](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_class.fidl;l=23) | `768` | `uint32` |   |
| [MAJOR_DEVICE_CLASS_MASK](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_class.fidl;l=18) | `7936` | `uint32` | Constants for the major device class field. The major device class is defined by bits 12-8. |
| [MAJOR_DEVICE_CLASS_MISCELLANEOUS](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_class.fidl;l=20) | `0` | `uint32` |   |
| [MAJOR_DEVICE_CLASS_PERIPHERAL](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_class.fidl;l=25) | `1280` | `uint32` |   |
| [MAJOR_DEVICE_CLASS_PHONE](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_class.fidl;l=22) | `512` | `uint32` |   |
| [MAJOR_DEVICE_CLASS_TOY](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_class.fidl;l=28) | `2048` | `uint32` |   |
| [MAJOR_DEVICE_CLASS_UNCATEGORIZED](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_class.fidl;l=30) | `7936` | `uint32` |   |
| [MAJOR_DEVICE_CLASS_WEARABLE](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_class.fidl;l=27) | `1792` | `uint32` |   |
| [MAX_DEVICE_NAME_LENGTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_name.fidl;l=8) | `248` | `uint8` | The maximum length of a device name. This value was selected based on the HCI and GAP specifications (v5.2, Vol 4, Part E, 7.3.11 and Vol 3, Part C, 12.1). |
| [UUID_STRING_REPRESENTATION_LENGTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/deprecated.fidl;l=68) | `36` | `uint8` | The size of the standard string representation for a UUID. This value is based on the canonical 36-character 8-4-4-4-12 format defined in IETF RFC4122 Section 3. |

## **ALIASES**

| Name | Value | Description |
|---|---|---|
| [DeviceName](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/device_name.fidl;l=11) | `string`\[`https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#MAX_DEVICE_NAME_LENGTH`\] | Alias for a Bluetooth device name. |
| [PeerIdString](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/deprecated.fidl;l=74) | `string`\[`16`\] | **DEPRECATED**- Use fuchsia.bluetooth/PeerId instead |
| [UuidString](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.bluetooth/deprecated.fidl;l=71) | `string`\[`https://fuchsia.dev/reference/fidl/fuchsia.bluetooth#UUID_STRING_REPRESENTATION_LENGTH`\] | **DEPRECATED**- Use fuchsia.bluetooth/Uuid instead |