This function is responsible for initializing the audio profile sub-system
This function also accepts the audio profile sub-system event callback function (AUD_Event_Callback) that will be issued whenever an audio profile sub-system event occur
A3DP_OpenConnection
SetConnect() -> GAP_Set_Connectability_Mode: set the connectability mode of the local Bluetooth device (CC2564)
specified by the Bluetooth protocol stack / address
SetPairable() -> set the pairability mode of the local Bluetooth
device
Steps to connect to Headset
Grab BT Mac Address of Remote Device / Headset
A3DP_StartConnection() -> AUD_Open_Remote_Stream: opens an audio streaming endpoint on the specified remote device
returns error code if stream connection in progress, already connected ...etc
Connection Success Events:
etAUD_Stream_Open_Confirmation
OpenA3DPStream: Opens stream with currently connected device
Steps to handle connection From Headset
TODO
Steps to establish AVRCP connection
AUD_Open_Remote_Stream() opens audio stream with remote device but it also opens a remote control connection.
This remote control connection is the one used for AVRCP
Steps to initialize CC2564 and the A3DPDemo
CC2564_Init()
CC2564_PowerUp()
TIBT_main()
AUD_Initialize
A3DP_OpenConnection
Steps to connect to Headset
Grab BT Mac Address of Remote Device / Headset
A3DP_StartConnection() -> AUD_Open_Remote_Stream: opens an audio streaming endpoint on the specified remote device
Connection Success Events:
Steps to handle connection From Headset
Steps to establish AVRCP connection