Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.bt.vendor

PROTOCOLS

BtVendor

Defined in fuchsia.hardware.bt.vendor/bt-vendor.banjo

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

EncodeCommand

Encodes the vendor HCI command command using params and returns the encoded command as a buffer. params must contain the parameter struct for the specified command, as documented in BtVendorCommand. Returns an error status if the command is not supported or the paramaters are invalid.

Request

NameType
command BtVendorCommand
params BtVendorParams

Response

NameType
status zx/status
encoded vector<uint8>[16]

GetFeatures

Returns bitmask of the features the vendor supports.

Request

NameType

Response

NameType
features BtVendorFeatures

STRUCTS

BtVendorSetAclPriorityParams

Defined in fuchsia.hardware.bt.vendor/bt-vendor.banjo

NameTypeDescriptionDefault
connection_handle uint16 No default
priority BtVendorAclPriority No default
direction BtVendorAclDirection

The direction data should be prioritized in. May not be supported by all vendors. Ignored when priority is normal.

No default

ENUMS

BtVendorAclDirection

Type: uint8

Defined in fuchsia.hardware.bt.vendor/bt-vendor.banjo

NameValueDescription
SOURCE 0
SINK 1

BtVendorAclPriority

Type: uint8

Defined in fuchsia.hardware.bt.vendor/bt-vendor.banjo

NameValueDescription
NORMAL 0
HIGH 1

BtVendorCommand

Type: uint32

Defined in fuchsia.hardware.bt.vendor/bt-vendor.banjo

NameValueDescription
SET_ACL_PRIORITY 0

Marks a connection as normal or high priority. Parameters: BtVendorSetAclPriorityParams

BtVendorFeatures

Type: uint32

Defined in fuchsia.hardware.bt.vendor/bt-vendor.banjo

Bitmask of features supported by the vendor.

NameValueDescription
SET_ACL_PRIORITY_COMMAND 1

UNIONS

BtVendorParams

Defined in fuchsia.hardware.bt.vendor/bt-vendor.banjo

NameTypeDescription
set_acl_priority BtVendorSetAclPriorityParams

CONSTANTS

NameValueTypeDescription
BT_VENDOR_MAX_COMMAND_BUFFER_LEN 16 uint16

The maximum buffer length an encoded command might require. Update when adding new commands that might require a larger buffer.