Project: /_project.yaml Book: /_book.yaml

fuchsia.bluetooth.test

PROTOCOLS

HciEmulator {:#HciEmulator}

Defined in fuchsia.bluetooth.test/hci_emulator.fidl

Protocol used to emulate a Bluetooth controller that supports the standard Bluetooth HCI.

Publish {:#Publish}

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

Request

Response

AddPeer {:#AddPeer}

Inserts a new peer device to be emulated by this controller. Returns an error if peer is improperly configured (e.g. does not contain an address). On success, returns an id that can be used to refer to the created peer.

Request

Response

RemovePeer {:#RemovePeer}

Remove a previously inserted peer. Returns EmulatorPeerError.NOT_FOUND if id is not recognized.

Request

Response

WatchLeScanState {:#WatchLeScanState}

Returns the latest state of the link layer LE scan procedure. This method returns when there is a state change since the last invocation of this method by this client (see hanging get pattern).

Request

Response

STRUCTS

HciEmulator_Publish_Response {:#HciEmulator_Publish_Response}

Defined in fuchsia.bluetooth.test/generated

HciEmulator_AddPeer_Response {:#HciEmulator_AddPeer_Response}

Defined in fuchsia.bluetooth.test/generated

HciEmulator_RemovePeer_Response {:#HciEmulator_RemovePeer_Response}

Defined in fuchsia.bluetooth.test/generated

AclBufferSettings {:#AclBufferSettings}

Defined in fuchsia.bluetooth.test/hci_emulator.fidl

The HCI ACL data flow-control parameters.

ENUMS

EmulatorError {:#EmulatorError}

Type: uint32

Defined in fuchsia.bluetooth.test/hci_emulator.fidl

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

EmulatorPeerError {:#EmulatorPeerError}

Type: uint32

Defined in fuchsia.bluetooth.test/hci_emulator.fidl

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

LeAddressType {:#LeAddressType}

Type: uint32

Defined in fuchsia.bluetooth.test/hci_emulator.fidl

The Bluetooth device address type used with link layer procedures.

HciConfig {:#HciConfig}

Type: uint32

Defined in fuchsia.bluetooth.test/hci_emulator.fidl

Pre-set HCI configurations.

HciError {:#HciError}

Type: uint8

Defined in fuchsia.bluetooth.test/hci_errors.fidl

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

TABLES

FakePeer {:#FakePeer}

Defined in fuchsia.bluetooth.test/hci_emulator.fidl

Represents a peer that a FakeController can be configured to emulate.

LeParameters {:#LeParameters}

Defined in fuchsia.bluetooth.test/hci_emulator.fidl

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

BrEdrParameters {:#BrEdrParameters}

Defined in fuchsia.bluetooth.test/hci_emulator.fidl

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

LeScanState {:#LeScanState}

Defined in fuchsia.bluetooth.test/hci_emulator.fidl

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

EmulatorSettings {:#EmulatorSettings}

Defined in fuchsia.bluetooth.test/hci_emulator.fidl

Controller settings used by the emulator.

UNIONS

HciEmulator_Publish_Result {:#HciEmulator_Publish_Result}

Defined in fuchsia.bluetooth.test/generated

HciEmulator_AddPeer_Result {:#HciEmulator_AddPeer_Result}

Defined in fuchsia.bluetooth.test/generated

HciEmulator_RemovePeer_Result {:#HciEmulator_RemovePeer_Result}

Defined in fuchsia.bluetooth.test/generated

XUNIONS

AdvertisingData {:#AdvertisingData}

Defined in fuchsia.bluetooth.test/hci_emulator.fidl

CONSTANTS