<br />

APIs for interacting with Bluetooth vendor and transport drivers.
Added: 23

## **PROTOCOLS**

## Emulator

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

Protocol used to emulate a Bluetooth controller that supports the standard Bluetooth HCI.
Represents the bt-emulator device protocol. A bt-emulator device is used for configuring and
publishing fake bt-hci devices.

<br />

### AddBredrPeer

Inserts a new BR/EDR peer device to be emulated by this controller. Once registered, the state
of the fake peer can be driven and observed using the `peer` handle.

A reply will be sent to acknowledge the creation of the fake peer. If a peer cannot be
initialized (e.g. due to a missing required field in `parameters` or for containing an
address that is already emulated) the `peer` handle will be closed and an error reply will
be sent.

The peer will appear in inquiry results and respond to requests according to its
configuration as long as the `peer` channel is open. The emulator stops emulating this peer
when the channel gets closed, which makes it no longer discoverable and not respond to any
requests.

#### Request

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

#### Response

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

### AddLowEnergyPeer

Inserts a new LE peer device to be emulated by this controller. Once registered, the state
of the fake peer can be driven and observed using the `peer` handle.

A reply will be sent to acknowledge the creation of the fake peer. If a peer cannot be
initialized (e.g. due to a missing required field in `parameters` or for containing an
address that is already emulated) the `peer` handle will be closed and an error reply will
be sent.

The peer will appear in advertising reports and respond to requests according to its
configuration as long as the `peer` channel is open. The emulator stops emulating this peer
when the channel gets closed, which makes it no longer discoverable and not respond to any
requests.

#### Request

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

#### Response

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

### Publish

Publish a bt-hci device using the provided `settings`. Each Emulator instance can only
manage a single bt-hci device. Returns Emulator.`HCI_ALREADY_PUBLISHED` if the device has
already been published.

#### Request

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

#### Response

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

### WatchControllerParameters

Hanging get pattern for the controller parameter state will not resolve until the state has
changed from the last response.

#### Request

\<EMPTY\>

#### Response

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

### WatchLeScanStates

Returns a vector of the least to most recent states for the link layer LE scan procedure.
This method returns when there has been at least one state change since the last invocation
of this method by this client.

Multiple calls to this method can be outstanding at a given time. All calls will resolve in
a response as soon as there is a change to the scan state.

#### Request

\<EMPTY\>

#### Response

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

### WatchLegacyAdvertisingStates

Returns a vector of the least to most recent states for the link layer LE legacy
advertising procedure. This method returns when there has been at least one state change
since the last invocation of this method by this client.

Multiple calls to this method can be outstanding at a given time. All calls will resolve in
a response as soon as there is a change to the scan state.

#### Request

\<EMPTY\>

#### Response

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

## Hci

*Defined in [fuchsia.hardware.bluetooth/hci.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/hci.fidl;l=131)*
Removed: 33

<br />

### ConfigureSco

Configure the HCI for a SCO connection with the indicated parameters.
This must be called before sending/receiving data on the SCO channel.
Returns ZX_ERR_NOT_SUPPORTED if SCO is not supported by the current vendor or transport
driver.

#### Request

| Name | Type |
|---|---|
| `coding_format` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#ScoCodingFormat` |
| `encoding` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#ScoEncoding` |
| `sample_rate` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#ScoSampleRate` |

#### Response

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

### OpenAclDataChannel

Open the two-way HCI ACL data channel.
Returns ZX_ERR_ALREADY_BOUND if the channel is already open.

#### Request

| Name | Type |
|---|---|
| `channel` | `handle<channel>` |

#### Response

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

### OpenCommandChannel

Open the two-way HCI command channel for sending HCI commands and
receiving event packets. Returns ZX_ERR_ALREADY_BOUND if the channel
is already open.

#### Request

| Name | Type |
|---|---|
| `channel` | `handle<channel>` |

#### Response

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

### OpenIsoDataChannel

Opens a channel on the provided handle for sending and receiving isochronous data packets.
The zircon channel is closed in the event of an error opening the hci channel or if the hci
channel is already associated with a handle to another zircon channel.
Returns ZX_ERR_NOT_SUPPORTED if ISO is not supported by the current vendor or transport
driver.
Returns ZX_ERR_ALREADY_BOUND if the channel is already open.

#### Request

| Name | Type |
|---|---|
| `channel` | `handle<channel>` |

#### Response

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

### OpenScoDataChannel

Opens a SCO channel on the provided handle. The zircon channel is
closed in the event of an error opening the hci channel or if the hci
channel is already associated with a handle to another zircon channel.
Returns ZX_ERR_NOT_SUPPORTED if SCO is not supported by the current vendor or transport
driver.
Returns ZX_ERR_ALREADY_BOUND if the channel is already open.

#### Request

| Name | Type |
|---|---|
| `channel` | `handle<channel>` |

#### Response

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

### OpenSnoopChannel

Open an output-only channel for monitoring HCI traffic.
The format of each message is: \[1-octet flags\] \[n-octet payload\]
The flags octet is a bitfield with the following values defined:

- 0x00: The payload represents a command packet sent from the host to the controller.
- 0x01: The payload represents an event packet sent by the controller. Returns ZX_ERR_ALREADY_BOUND if the channel is already open.

#### Request

| Name | Type |
|---|---|
| `channel` | `handle<channel>` |

#### Response

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

### ResetSco

Releases resources held by an active SCO connection. Must be called
when a SCO connection is closed.
Returns ZX_ERR_NOT_SUPPORTED if SCO is not supported by the current vendor or transport
driver.

#### Request

\<EMPTY\>

#### Response

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

## HciTransport

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

### AckReceive

#### Request

\<EMPTY\>

### ConfigureSco

Establish a SCO connection. Only 1 SCO connection can be configured at a time.

#### Request

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

### OnReceive

More than one packet event can be sent before acknowledged. Each packet must be
acknowledged with `AckReceive`. Servers should limit the number of pending acknowledgements
to avoid channel overflow. A maximum of 10 unacked packets is recommended. If a command or
SCO packet is received by the client, the client should close the protocol.

#### Response

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

### Send

More than one Send can be pending simultaneously.
Prefer to limit the number of pending calls to avoid overflow.
A maximum of 10 pending calls is suggested.
If an event or SCO packet is received by the server, the server should close the protocol.

#### Request

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

#### Response

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

## Peer

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

Protocol used to drive the state of a fake peer device.

<br />

### AssignConnectionStatus

Assign a HCI `status` for the controller to generate in response to connection requests.
Applies to all successive HCI_Create_Connection and HCI_LE_Create_Connection commands. The
procedure is acknowledged with an empty response.

#### Request

| Name | Type |
|---|---|
| `status` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#HciError` |

#### Response

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

### EmulateDisconnectionComplete

Emulate disconnection. Does nothing if the peer is not connected.

#### Request

\<EMPTY\>

### EmulateLeConnectionComplete

Emulates a LE connection event. Does nothing if the peer is already connected. The
`role` parameter determines the link layer connection role.

#### Request

| Name | Type |
|---|---|
| `role` | `https://fuchsia.dev/reference/fuchsia.bluetooth//https://fuchsia.dev/reference/fuchsia.bluetooth#ConnectionRole` |

### SetDeviceClass

Sets the device class reported in the inquiry response for this peer during device
discovery. If the peer is not BR/EDR, the server will close with the `ZX_ERR_NOT_SUPPORTED`
epitaph.

#### Request

| Name | Type |
|---|---|
| `value` | `uint32` |

#### Response

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

### SetLeAdvertisement

#### Request

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

#### Response

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

### SetServiceDefinitions

Sets the peer's services that will be discoverable via Service Discovery Protocol. If the
peer is not BR/EDR, the server will close with the `ZX_ERR_NOT_SUPPORTED` epitaph.

#### Request

| Name | Type |
|---|---|
| `service_definitions` | `vector<https://fuchsia.dev/reference/fuchsia.bluetooth.bredr//https://fuchsia.dev/reference/fuchsia.bluetooth.bredr#ServiceDefinition>:32` |

#### Response

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

### WatchConnectionStates

Returns a vector of the least to most recent controller connection states.
This method returns when there has been a state change since the last invocation of this
method by this client.

Multiple calls to this method can be outstanding at a given time. All calls will resolve in
a response as soon as there is a change to the scan state.

#### Request

\<EMPTY\>

#### Response

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

## ScoConnection

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

### AckReceive

#### Request

\<EMPTY\>

### OnReceive

More than one packet event can be sent before acknowledged. Each packet must be
acknowledged with `AckReceive`. Servers should limit the number of pending acknowledgements
to avoid channel overflow. A maximum of 10 unacked packets is recommended.

#### Response

| Name | Type |
|---|---|
| `packet` | `vector<uint8>:258` |

### Send

More than one Send can be pending simultaneously.
Prefer to limit the number of pending calls to avoid overflow.
A maximum of 10 pending calls is suggested.

#### Request

| Name | Type |
|---|---|
| `packet` | `vector<uint8>:258` |

#### Response

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

### Stop

The server will close the protocol when `Stop` is received. This is useful for
synchronization (e.g. before configuring another `ScoConnection`).

#### Request

\<EMPTY\>

## Snoop

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

### AcknowledgePackets

Acknowledge packets have been received up to `sequence`.

#### Request

| Name | Type |
|---|---|
| `sequence` | `uint64` |

### OnDroppedPackets

Sent by the server once after `AcknowledgePackets` is received if packets were dropped since
the last `OnObservePacket`.

#### Response

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

### OnObservePacket

A packet has been transmitted/received. Some number of packets can be observed before the
server stalls. The server is allowed to drop packets if the client takes too long to
acknowledge packets.

#### Response

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

## Vendor

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

The BtVendor protocol may be implemented by vendor drivers to support feature interrogation
and vendor command encoding.

<br />

### EncodeCommand

Encode the vendor HCI command and return the encoded command.
See `VendorCommand` for possible commands and parameters.

- error `ZX_ERR_NOT_SUPPORTED` The command is not supported.
- error `ZX_ERR_INVALID_ARGS` The parameters of the command are invalid.

#### Request

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

#### Response

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

### GetCrashParameters

Returns parameters used by bt-snoop to record and file Bluetooth controller crash reports.
Core dump events will be redacted from snoop logs.
Returns NOT_SUPPORTED if crash dumps are not supported by this vendor.
Added: 31

#### Request

\<EMPTY\>

#### Response

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

### GetFeatures

Returns the Vendor Features supported by this controller.

#### Request

\<EMPTY\>

#### Response

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

### OpenHci

No longer supported - use OpenHciTransport() instead
Open the HCI protocol to the controller. This call may block until the
controller has been initialized.
Returns ALREADY_BOUND if another client has already connected.
Removed: 33

#### Request

\<EMPTY\>

#### Response

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

### OpenHciTransport

Open the HciTransport protocol to the controller. This call may block until the
controller has been initialized.
Returns ALREADY_BOUND if another client has already connected.

#### Request

\<EMPTY\>

#### Response

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

### OpenSnoop

Open the Snoop protocol to the transport driver.
Returns ALREADY_BOUND if another client has already connected.

#### Request

\<EMPTY\>

#### Response

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

## VirtualController

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

Used for spawning virtual Bluetooth devices.

<br />

### CreateEmulator

Creates a child device, and returns the name of the child created.

#### Request

\<EMPTY\>

#### Response

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

### CreateLoopbackDevice

Creates a virtual Bluetooth serial device, speaking the BT HCI UART
protocol on the provided handle.
The zircon channel is closed in the event of an error.

#### Request

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

## **STRUCTS**

### Emulator_AddBredrPeer_Response

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

\<EMPTY\>

### Emulator_AddLowEnergyPeer_Response

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

\<EMPTY\>

### Emulator_Publish_Response

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

\<EMPTY\>

### Emulator_WatchLeScanStates_Response

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

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

### Emulator_WatchLegacyAdvertisingStates_Response

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

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

### HciTransport_Send_Response

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

\<EMPTY\>

### Hci_ConfigureSco_Response

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

\<EMPTY\>

### Hci_OpenAclDataChannel_Response

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

\<EMPTY\>

### Hci_OpenCommandChannel_Response

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

\<EMPTY\>

### Hci_OpenIsoDataChannel_Response

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

\<EMPTY\>

### Hci_OpenScoDataChannel_Response

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

\<EMPTY\>

### Hci_OpenSnoopChannel_Response

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

\<EMPTY\>

### Hci_ResetSco_Response

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

\<EMPTY\>

### Peer_AssignConnectionStatus_Response

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

\<EMPTY\>

### Peer_SetDeviceClass_Response

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

\<EMPTY\>

### Peer_SetLeAdvertisement_Response

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

\<EMPTY\>

### Peer_SetServiceDefinitions_Response

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

\<EMPTY\>

### Peer_WatchConnectionStates_Response

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

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

### ScoConnection_Send_Response

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

\<EMPTY\>

### ScoPacket

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

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

### Vendor_EncodeCommand_Response

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

| Field | Type | Description | Default |
|---|---|---|---|
| `encoded` | `vector<uint8>:16` |   | No default |

### Vendor_OpenHciTransport_Response [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

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

| Field | Type | Description | Default |
|---|---|---|---|
| `channel` | `client_end:https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#HciTransport` |   | No default |

### Vendor_OpenHci_Response [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

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

| Field | Type | Description | Default |
|---|---|---|---|
| `channel` | `client_end:https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Hci` |   | No default |

### Vendor_OpenSnoop_Response [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

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

| Field | Type | Description | Default |
|---|---|---|---|
| `channel` | `client_end:https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Snoop` |   | No default |

### VirtualController_CreateEmulator_Response

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

| Field | Type | Description | Default |
|---|---|---|---|
| `name` | `string:32?` |   | No default |

## **ENUMS**

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

Type: `uint32`

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

| Name | Value | Description |
|---|---|---|
| ### CONNECTED | `1` |   |
| ### DISCONNECTED | `2` |   |

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

Type: `uint32`

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

Error codes that can be generated for emulator-wide configurations.

<br />

| Name | Value | Description |
|---|---|---|
| ### FAILED | `1` |   |
| ### HCI_ALREADY_PUBLISHED | `2` |   |

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

Type: `uint32`

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

Error codes that are generated for functions that manipulate fake peers.

<br />

| Name | Value | Description |
|---|---|---|
| ### ADDRESS_REPEATED | `1` |   |
| ### PARAMETERS_INVALID | `2` |   |
| ### NOT_FOUND | `3` |   |

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

Type: `uint32`

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

Pre-set HCI configurations.

<br />

| Name | Value | Description |
|---|---|---|
| ### DUAL_MODE | `1` | Support both BR/EDR and LE in LMP features. |
| ### LE_ONLY | `2` | Limits supported features and HCI commands to those that are required for LE only. |

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

Type: `uint8`

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

Defines the list of HCI protocol error codes that a Bluetooth controller can report. These
values are taken from Bluetooth Core Specification v5.4, Vol 2, Part D, Section 1.3

<br />

| Name | Value | Description |
|---|---|---|
| ### SUCCESS | `0` |   |
| ### UNKNOWN_COMMAND | `1` |   |
| ### UNKNOWN_CONNECTION_ID | `2` |   |
| ### HARDWARE_FAILURE | `3` |   |
| ### PAGE_TIMEOUT | `4` |   |
| ### AUTHENTICATION_FAILURE | `5` |   |
| ### PIN_OR_KEY_MISSING | `6` |   |
| ### MEMORY_CAPACITY_EXCEEDED | `7` |   |
| ### CONNECTION_TIMEOUT | `8` |   |
| ### CONNECTION_LIMIT_EXCEEDED | `9` |   |
| ### SYNCHRONOUS_CONNECTION_LIMIT_EXCEEDED | `10` |   |
| ### CONNECTION_ALREADY_EXISTS | `11` |   |
| ### COMMAND_DISALLOWED | `12` |   |
| ### CONNECTION_REJECTED_LIMITED_RESOURCES | `13` |   |
| ### CONNECTION_REJECTED_SECURITY | `14` |   |
| ### CONNECTION_REJECTED_BAD_BD_ADDR | `15` |   |
| ### CONNECTION_ACCEPT_TIMEOUT_EXCEEDED | `16` |   |
| ### UNSUPPORTED_FEATURE_OR_PARAMETER | `17` |   |
| ### INVALID_HCICOMMAND_PARAMETERS | `18` |   |
| ### REMOTE_USER_TERMINATED_CONNECTION | `19` |   |
| ### REMOTE_DEVICE_TERMINATED_CONNECTION_LOW_RESOURCES | `20` |   |
| ### REMOTE_DEVICE_TERMINATED_CONNECTION_POWER_OFF | `21` |   |
| ### CONNECTION_TERMINATED_BY_LOCAL_HOST | `22` |   |
| ### REPEATED_ATTEMPTS | `23` |   |
| ### PAIRING_NOT_ALLOWED | `24` |   |
| ### UNKNOWN_LMP_PDU | `25` |   |
| ### UNSUPPORTED_REMOTE_FEATURE | `26` |   |
| ### SCO_OFFSET_REJECTED | `27` |   |
| ### SCO_INTERVAL_REJECTED | `28` |   |
| ### SCO_AIR_MODE_REJECTED | `29` |   |
| ### INVALID_LMP_OR_LL_PARAMETERS | `30` |   |
| ### UNSPECIFIED_ERROR | `31` |   |
| ### UNSUPPORTED_LMP_OR_LL_PARAMETER_VALUE | `32` |   |
| ### ROLE_CHANGE_NOT_ALLOWED | `33` |   |
| ### LMP_OR_LL_RESPONSE_TIMEOUT | `34` |   |
| ### LMP_ERROR_TRANSACTION_COLLISION | `35` |   |
| ### LMP_PDU_NOT_ALLOWED | `36` |   |
| ### ENCRYPTION_MODE_NOT_ACCEPTABLE | `37` |   |
| ### LINK_KEY_CANNOT_BE_CHANGED | `38` |   |
| ### REQUESTED_QOS_NOT_SUPPORTED | `39` |   |
| ### INSTANT_PASSED | `40` |   |
| ### PAIRING_WITH_UNIT_KEY_NOT_SUPPORTED | `41` |   |
| ### DIFFERENT_TRANSACTION_COLLISION | `42` |   |
| ### RESERVED0 | `43` |   |
| ### QOS_UNACCEPTABLE_PARAMETER | `44` |   |
| ### QOS_REJECTED | `45` |   |
| ### CHANNEL_CLASSIFICATION_NOT_SUPPORTED | `46` |   |
| ### INSUFFICIENT_SECURITY | `47` |   |
| ### PARAMETER_OUT_OF_MANDATORY_RANGE | `48` |   |
| ### RESERVED1 | `49` |   |
| ### ROLE_SWITCH_PENDING | `50` |   |
| ### RESERVED2 | `51` |   |
| ### RESERVED_SLOT_VIOLATION | `52` |   |
| ### ROLE_SWITCH_FAILED | `53` |   |
| ### EXTENDED_INQUIRY_RESPONSE_TOO_LARGE | `54` |   |
| ### SECURE_SIMPLE_PAIRING_NOT_SUPPORTED_BY_HOST | `55` |   |
| ### HOST_BUSY_PAIRING | `56` |   |
| ### CONNECTION_REJECTED_NO_SUITABLE_CHANNEL_FOUND | `57` |   |
| ### CONTROLLER_BUSY | `58` |   |
| ### UNACCEPTABLE_CONNECTION_PARAMETERS | `59` |   |
| ### DIRECTED_ADVERTISING_TIMEOUT | `60` |   |
| ### CONNECTION_TERMINATED_MIC_FAILURE | `61` |   |
| ### CONNECTION_FAILED_TO_BE_ESTABLISHED | `62` |   |
| ### MAC_CONNECTION_FAILED | `63` |   |
| ### COARSE_CLOCK_ADJUSTMENT_REJECTED | `64` |   |
| ### TYPE0_SUBMAP_NOT_DEFINED | `65` |   |
| ### UNKNOWN_ADVERTISING_IDENTIFIER | `66` |   |
| ### LIMIT_REACHED | `67` |   |
| ### OPERATION_CANCELLED_BY_HOST | `68` |   |
| ### PACKET_TOO_LONG | `69` |   |
| ### TOO_LATE | `70` |   |
| ### TOO_EARLY | `71` |   |

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

Type: `uint8`

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

LE legacy advertising types from Bluetooth Core Specification v5.4, Vol 4, Part E, 7.8.5.

<br />

| Name | Value | Description |
|---|---|---|
| ### ADV_IND | `0` | Connectable and scannable. |
| ### ADV_DIRECT_IND | `1` | Connectable, high-duty cycle, directed. |
| ### ADV_SCAN_IND | `2` | Scannable, undirected. |
| ### ADV_NONCONN_IND | `3` | Non-connectable, undirected |
| ### SCAN_RSP | `4` | Scan response |

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

Type: `uint32`

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

| Name | Value | Description |
|---|---|---|
| ### HOST_TO_CONTROLLER | `1` |   |
| ### CONTROLLER_TO_HOST | `2` |   |

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

Type: `uint8`

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

| Name | Value | Description |
|---|---|---|
| ### CVSD | `1` |   |
| ### MSBC | `2` |   |

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

Type: `uint8`

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

| Name | Value | Description |
|---|---|---|
| ### BITS_8 | `1` |   |
| ### BITS_16 | `2` |   |

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

Type: `uint8`

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

| Name | Value | Description |
|---|---|---|
| ### KHZ_8 | `1` |   |
| ### KHZ_16 | `2` |   |

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

Type: `uint8`

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

| Name | Value | Description |
|---|---|---|
| ### SOURCE | `1` |   |
| ### SINK | `2` |   |

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

Type: `uint8`

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

| Name | Value | Description |
|---|---|---|
| ### NORMAL | `1` |   |
| ### HIGH | `2` |   |

## **TABLES**

### AclBufferSettings

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

The HCI ACL data flow-control parameters.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `data_packet_length` | `uint16` | ACL frame MTU in bytes. |
| ### 2 | `total_num_data_packets` | `uint8` | The maximum number of ACL frames that the controller can buffer. |

### AdvertisingData

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

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `data` | `vector<uint8>:31` |   |

### AndroidVendorSupport

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

Indicates support for Android Vendor Extensions
If empty, Android HCI Extensions are supported but the version is unspecified.
The version should be detected using the LE Get Vendor Capabilities Command.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `major_version` | `uint8` |   |
| ### 2 | `minor_version` | `uint8` |   |

### AudioOffloadSettings

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

Various settings for audio offload data paths, which vary by controller
manufacturer and firmware version.
Added: 28

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `sco_offload_index` | `uint8` | The index to use when SCO OFFLOAD DataPath is requested. |

### ControllerParameters

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

Contains Bluetooth controller \& baseband parameters that are writable by the host but don't
fall under a particular procedural category (as are those defined below).

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `local_name` | `string:248` | The local name used for the Link Layer name discovery procedure. This parameter only applies for the BR/EDR transport. In LE, the local name is provided as an advertising parameter and via GATT. |
| ### 2 | `device_class` | `https://fuchsia.dev/reference/fuchsia.bluetooth//https://fuchsia.dev/reference/fuchsia.bluetooth#DeviceClass` | The local "Class of Device" used during the BR/EDR inquiry procedure. |

### EmulatorSettings

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

Controller settings used by the emulator.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `address` | `https://fuchsia.dev/reference/fuchsia.bluetooth//https://fuchsia.dev/reference/fuchsia.bluetooth#Address` | The `BD_ADDR` (BR/EDR) or LE Public Device Address. Defaults to "00:00:00:00:00:00". |
| ### 2 | `hci_config` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#HciConfig` | Supported HCI command configuration. Defaults to "`DUAL_MODE`". |
| ### 3 | `extended_advertising` | `bool` | True if the 5.0 extended advertising features are supported. Defaults to "false". |
| ### 4 | `acl_buffer_settings` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#AclBufferSettings` | The ACL-U data buffer settings. Defaults to data_packet_length: 1024 total_num_data_packets: 5 IF `hci_config` is set to `DUAL_MODE`. Defaults to null otherwise. |
| ### 5 | `le_acl_buffer_settings` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#AclBufferSettings` | The LE-U ACL data buffer settings. Defaults to data_packet_length: 251 total_num_data_packets: 5 |

### HciTransportConfigureScoRequest [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

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

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `coding_format` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#ScoCodingFormat` | Required. |
| ### 2 | `encoding` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#ScoEncoding` | Required. |
| ### 3 | `sample_rate` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#ScoSampleRate` | Required. |
| ### 4 | `connection` | `server_end:https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#ScoConnection` | Required. |

### LeScanState

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

Represents the LE scan state. The fields are present if scan parameters have been configured.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `enabled` | `bool` | True if a scan is enabled. |
| ### 2 | `active` | `bool` | True if an active scan is enabled. Otherwise the scan is passive. |
| ### 3 | `interval` | `uint16` | The scan interval and window parameters. These are defined in Bluetooth controller "timeslices" where 1 slice = 0.625 ms. Valid values range from 0x4 (2.5 ms) to 0x4000 (10.24 ms). |
| ### 4 | `window` | `uint16` |   |
| ### 5 | `filter_duplicates` | `bool` | True if duplicate filtering has been enabled. |
| ### 6 | `address_type` | `https://fuchsia.dev/reference/fuchsia.bluetooth//https://fuchsia.dev/reference/fuchsia.bluetooth#AddressType` | The type of local device address used. |

### LegacyAdvertisingState

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

Controller parameters for legacy advertising.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `enabled` | `bool` | True if advertising has been enabled using the HCI_LE_Set_Advertising_Enable command. This field is always present. |
| ### 2 | `type` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#LegacyAdvertisingType` | The most recently configured advertising type. This field is always present. Defaults to [fuchsia.hardware.bluetooth](https://fuchsia.dev/reference/fuchsia.hardware.bluetooth/)/[LegacyAdvertisingType.ADV_IND](https://fuchsia.dev/reference/fuchsia.hardware.bluetooth/#LegacyAdvertisingType.ADV_IND). |
| ### 3 | `address_type` | `https://fuchsia.dev/reference/fuchsia.bluetooth//https://fuchsia.dev/reference/fuchsia.bluetooth#AddressType` | The LE address type being used for advertising. This field is always present. Defaults to [fuchsia.bluetooth](https://fuchsia.dev/reference/fuchsia.bluetooth/)/[AddressType.PUBLIC](https://fuchsia.dev/reference/fuchsia.bluetooth/#AddressType.PUBLIC). |
| ### 4 | `interval_min` | `uint16` | The host-specified advertising interval range parameters. Present only if configured. |
| ### 5 | `interval_max` | `uint16` |   |
| ### 6 | `advertising_data` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#AdvertisingData` | Any configured advertising and scan response data. Present only if either field is non-zero. |
| ### 7 | `scan_response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#AdvertisingData` |   |

### PeerParameters [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

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

Parameters used to emulate a peer's behavior over the BR/EDR/Low Energy transport.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `address` | `https://fuchsia.dev/reference/fuchsia.bluetooth//https://fuchsia.dev/reference/fuchsia.bluetooth#Address` | The public BR/EDR BD_ADDR address of a peer. This field is mandatory. |
| ### 2 | `connectable` | `bool` | When present and true, the peer will send connectable advertisements and accept connection requests. The peer will ignore connection requests if not connectable. |
| ### 3 | `channel` | `server_end:https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Peer` | Server end of channel bound to Peer protocol. |

### PeerSetLeAdvertisementRequest

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

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `le_address` | `https://fuchsia.dev/reference/fuchsia.bluetooth//https://fuchsia.dev/reference/fuchsia.bluetooth#Address` | The LE address of the peer. |
| ### 2 | `advertisement` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#AdvertisingData` | The advertising data contents. If not present, the advertising data sent by this peer will be empty. |
| ### 3 | `scan_response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#AdvertisingData` | The scan response data contents. When present, the fake controller will generate scannable advertising packets and scan response events. |

### SnoopOnDroppedPacketsRequest

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

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `sent` | `uint32` |   |
| ### 2 | `received` | `uint32` |   |

### SnoopOnObservePacketRequest

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

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `sequence` | `uint64` | Monotonically increasing packet count. Used for flow control in conjunction with `OnAcknowledgePackets`. |
| ### 2 | `direction` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#PacketDirection` |   |
| ### 3 | `packet` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#SnoopPacket` |   |

### VendorCrashParameters

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

Parameters for filing controller crash reports.
Added: 31

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `crash_events` | `vector<https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#VendorCrashEventPrefix>` | The prefixes of the vendor event payloads to match. For example, this could be the subevent code. If the prefix is empty, all vendor debug events will be treated as crash events. Required. At least one prefix must be specified. |
| ### 2 | `program_name` | `string:1024` | The program name to use in the crash report. Required. |
| ### 3 | `crash_signature` | `string:128` | The signature to use in the crash report. Must match \[a-z\]\[a-z-\]\* i.e. only lowercase letters and hyphens. Required. |

### VendorFeatures

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

Table of features supported by the vendor.

<br />

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `acl_priority_command` | `bool` | Supports the SetAclPriority command If missing, the command is not supported. |
| ### 2 | `android_vendor_extensions` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#AndroidVendorSupport` | Supports Android Vendor Extensions If missing, Android Vendor Extensions are not supported. |
| ### 3 | `audio_offload_settings` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#AudioOffloadSettings` | Specify some alternative settings for audio offload paths. If missing, use the reasonable defaults or configured settings. Added: 28 |

### VendorSetAclPriorityParams

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

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `connection_handle` | `uint16` | The ACL connection handle which is requested to be prioritized. |
| ### 2 | `priority` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#VendorAclPriority` |   |
| ### 3 | `direction` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#VendorAclDirection` | The direction data should be prioritized in. May not be supported by all vendors. Ignored when priority is normal. |

### VirtualControllerCreateLoopbackDeviceRequest [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

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

| Ordinal | Field | Type | Description |
|---|---|---|---|
| ### 1 | `uart_channel` | `handle<channel>` |   |

## **UNIONS**

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Emulator_AddBredrPeer_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#EmulatorPeerError` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Emulator_AddLowEnergyPeer_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#EmulatorPeerError` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Emulator_Publish_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#EmulatorError` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

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

<br />

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

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

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

<br />

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

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

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

<br />

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

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

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

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Hci_ConfigureSco_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Hci_OpenAclDataChannel_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Hci_OpenCommandChannel_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Hci_OpenIsoDataChannel_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Hci_OpenScoDataChannel_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Hci_OpenSnoopChannel_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Hci_ResetSco_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

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

<br />

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

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

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

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Peer_SetLeAdvertisement_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#EmulatorPeerError` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

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

<br />

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

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

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

<br />

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

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

Packet received by the host from the controller.

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `event` | `vector<uint8>:257` |   |
| ### 2 | `acl` | `vector<uint8>:65539` |   |
| ### 3 | `iso` | `vector<uint8>:16387` |   |

<br />

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

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

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

<br />

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

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

Packet sent by the host to the controller.

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `command` | `vector<uint8>:258` |   |
| ### 2 | `acl` | `vector<uint8>:65539` |   |
| ### 3 | `iso` | `vector<uint8>:16387` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `event` | `vector<uint8>:257` |   |
| ### 2 | `command` | `vector<uint8>:258` |   |
| ### 3 | `acl` | `vector<uint8>:65539` |   |
| ### 4 | `sco` | `vector<uint8>:258` |   |
| ### 5 | `iso` | `vector<uint8>:16387` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `set_acl_priority` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#VendorSetAclPriorityParams` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Vendor_EncodeCommand_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#VendorCrashParameters` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

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

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Vendor_OpenHciTransport_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Vendor_OpenHci_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#Vendor_OpenSnoop_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

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

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

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.hardware.bluetooth#VirtualController_CreateEmulator_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/zx//https://fuchsia.dev/reference/zx#Status` |   |
| ### 3 | `framework_err` | `internal` |   |

<br />

## **CONSTANTS**

| Name | Value | Type | Description |
|---|---|---|---|
| [ACL_PACKET_MAX](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/hci.fidl;l=25) | `65539` | `uint64` |   |
| [BT_VENDOR_MAX_COMMAND_BUFFER_LEN](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/vendor.fidl;l=10) | `16` | `uint16` | The maximum buffer length an encoded command might require. Update when adding new commands that might require a larger buffer. |
| [COMMAND_MAX](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/hci.fidl;l=24) | `258` | `uint64` |   |
| [EVENT_MAX](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/hci.fidl;l=23) | `257` | `uint64` |   |
| [ISO_PACKET_MAX](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/hci.fidl;l=26) | `16387` | `uint64` |   |
| [MAX_LEGACY_ADVERTISING_DATA_LENGTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/emulator.fidl;l=104) | `31` | `uint8` | Advertising data MTUs for legacy (4.x) and extended (5.x) advertising PDU types (see Core Specification v5.4, Vol 4, Part E, Sections 7.3.11 \& 7.8.54). |
| [MAX_LOCAL_NAME_LENGTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/emulator.fidl;l=100) | `248` | `uint8` | The maximum size (in bytes) of a local name assigned using the HCI_Write_Local_Name command (see Core Specification v5.4, Vol 4, Part E, 7.3.11). |
| [MAX_NAME_LENGTH](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/virtual.fidl;l=8) | `32` | `uint32` |   |
| [MAX_PEER_SERVICES](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/emulator.fidl;l=107) | `32` | `uint8` | Maximum service records that can be advertised at once. |
| [SCO_PACKET_MAX](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/hci.fidl;l=27) | `258` | `uint64` |   |

## **ALIASES**

| Name | Value | Description |
|---|---|---|
| [VendorCrashEventPrefix](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/vendor.fidl;l=66) | `vector`\[`8`\] | Added: 31 |

## **SERVICES**

### EmulatorService

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

| Name | Type | Transport |
|---|---|---|
| [device](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/emulator.fidl;l=376) | `fuchsia.hardware.bluetooth/Emulator` | Channel |

<br />

### HciService

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

| Name | Type | Transport |
|---|---|---|
| [hci](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/hci.fidl;l=197) | `fuchsia.hardware.bluetooth/Hci` | Channel |
| [hci_transport](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/hci.fidl;l=199) | `fuchsia.hardware.bluetooth/HciTransport` | Channel |
| [snoop](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/hci.fidl;l=200) | `fuchsia.hardware.bluetooth/Snoop` | Channel |

<br />

### Service

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

| Name | Type | Transport |
|---|---|---|
| [vendor](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/vendor.fidl;l=131) | `fuchsia.hardware.bluetooth/Vendor` | Channel |

<br />

### VirtualControllerService

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

| Name | Type | Transport |
|---|---|---|
| [device](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.bluetooth/virtual.fidl;l=27) | `fuchsia.hardware.bluetooth/VirtualController` | Channel |

<br />