fuchsia.bluetooth.avdtp

PROTOCOLS

PeerManager

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

Control service for an AVDTP Peer.

GetPeer

Connects to the server specified by a peer_id. On success, handle will be used for initiating PeerController procedures. On peer disconnect, the handle will be dropped and closed on the server side.

Request

NameType
peer_id fuchsia.bluetooth/PeerId
handle request<PeerController>

ConnectedPeers

Returns the bt.PeerId of each currently connected peer.

Request

NameType

Response

NameType
peer_ids vector<fuchsia.bluetooth/PeerId>[8]

OnPeerConnected

Incoming connection events from the AVDTP peer. Returns the fuchsia.bluetooth..PeerId of the newly connected peer.

Response

NameType
peer_id fuchsia.bluetooth/PeerId

PeerController

Defined in fuchsia.bluetooth.avdtp/avdtp.fidl

PeerController is an indirect control protocol used for driving the AVDTP library. This protocol provides the client with an interface for initiating AVDTP commands out of band. To drive end-to-end functionality of AVDTP see bt-profiles.

  • error PeerError indicates a procedure failure. The current Get(), Set() methods can be interpreted as only initiating an AVDTP procedure. The implementation of Get() and Set() methods use generic capabilities and stream information. TODO(fxb/36563): Add arguments and responses for Get() and Set() methods to allow the client to specify and receive the results of the procedures.

SetConfiguration

Initiate a stream configuration procedure. No configuration information is specified because generic config information will be used to initiate the procedure.

Request

NameType

Response

NameType
result PeerController_SetConfiguration_Result

GetConfiguration

Initiate a procedure to get the configuration information of the peer stream. The result is discarded because PeerController only initiates the procedure.

Request

NameType

Response

NameType
result PeerController_GetConfiguration_Result

SuspendStream

Initiate a suspend request to the stream. This command will not resume nor reconfigure the stream.

Request

NameType

Response

NameType
result PeerController_SuspendStream_Result

SuspendAndReconfigure

A "chained" set of procedures on the current stream. SuspendStream() followed by ReconfigureStream(). Reconfigure() configures the stream that is currently open.

Request

NameType

Response

NameType
result PeerController_SuspendAndReconfigure_Result

EstablishStream

Initiate stream establishment with the peer.

Request

NameType

Response

NameType
result PeerController_EstablishStream_Result

ReleaseStream

Release the current stream that is owned by the peer. If the streaming channel doesn't exist, no action will be taken.

Request

NameType

Response

NameType
result PeerController_ReleaseStream_Result

ReconfigureStream

Initiate a reconfiguration procedure for the current stream. No configuration information is specified because a generic set of config information will be used to initiate the procedure.

Request

NameType

Response

NameType
result PeerController_ReconfigureStream_Result

GetCapabilities

Initiate a procedure to get the capabilities of the peer. The result is discarded because PeerController only initiates the procedure.

Request

NameType

Response

NameType
result PeerController_GetCapabilities_Result

GetAllCapabilities

Initiate a procedure to get the capabilities of the peer. The result is discarded because PeerController only initiates the procedure.

Request

NameType

Response

NameType
result PeerController_GetAllCapabilities_Result

STRUCTS

PeerController_SetConfiguration_Response

generated

NameTypeDescriptionDefault

PeerController_GetConfiguration_Response

generated

NameTypeDescriptionDefault

PeerController_SuspendStream_Response

generated

NameTypeDescriptionDefault

PeerController_SuspendAndReconfigure_Response

generated

NameTypeDescriptionDefault

PeerController_EstablishStream_Response

generated

NameTypeDescriptionDefault

PeerController_ReleaseStream_Response

generated

NameTypeDescriptionDefault

PeerController_ReconfigureStream_Response

generated

NameTypeDescriptionDefault

PeerController_GetCapabilities_Response

generated

NameTypeDescriptionDefault

PeerController_GetAllCapabilities_Response

generated

NameTypeDescriptionDefault

ENUMS

PeerError

Type: uint32

Defined in fuchsia.bluetooth.avdtp/types.fidl

Represents the return status of a fuchsia.bluetooth.avdtp.Peer method

NameValueDescription
UNKNOWN_FAILURE 1

Failure reason is not known

PROTOCOL_ERROR 2

The peer is unable to perform the request

UNIONS

PeerController_SetConfiguration_Result

generated

NameTypeDescription
response PeerController_SetConfiguration_Response
err PeerError

PeerController_GetConfiguration_Result

generated

NameTypeDescription
response PeerController_GetConfiguration_Response
err PeerError

PeerController_SuspendStream_Result

generated

NameTypeDescription
response PeerController_SuspendStream_Response
err PeerError

PeerController_SuspendAndReconfigure_Result

generated

NameTypeDescription
response PeerController_SuspendAndReconfigure_Response
err PeerError

PeerController_EstablishStream_Result

generated

NameTypeDescription
response PeerController_EstablishStream_Response
err PeerError

PeerController_ReleaseStream_Result

generated

NameTypeDescription
response PeerController_ReleaseStream_Response
err PeerError

PeerController_ReconfigureStream_Result

generated

NameTypeDescription
response PeerController_ReconfigureStream_Response
err PeerError

PeerController_GetCapabilities_Result

generated

NameTypeDescription
response PeerController_GetCapabilities_Response
err PeerError

PeerController_GetAllCapabilities_Result

generated

NameTypeDescription
response PeerController_GetAllCapabilities_Response
err PeerError

CONSTANTS

NameValueTypeDescription
MAX_PICONET_SIZE 8 uint64

Maximum number of peers that can be connected to a node. (Core Spec 5.0, Vol 2, Part B, Section 1)