SWRA769 august 2023 CC2564C
The following function is responsible for setting up or releasing an audio connection. This function returns zero on successful execution and a negative value on all errors.
The Manage Audio command requires only one parameter to which is an integer value that represents the ManageAudio mode. This value must be specified as 0 (for Release) or 1 (for set-up).
HFRE_set-up_Audio_Connection(BluetoothStackID, CurrentClientPortID) or HFRE_Release_Audio_Connection(BluetoothStackID, CurrentClientPortID)
int BTPSAPI HFRE_set-up_Audio_Connection(unsigned int BluetoothStackID, unsigned int HFREPortID) or int BTPSAPI HFRE_Release_Audio_Connection(unsigned int BluetoothStackID, unsigned int HFREPortID)
This function is responsible for Setting Up an Audio Connection between the Local and Remote Device. This function can be used by either an Audio Gateway or a Hands-Free unit for which a valid Service Level Connection Exists. This function accepts as its input parameters the Bluetooth Stack ID for which the HFRE Port ID is valid as well as the HFRE Port ID. This function returns zero if successful or a negative return error code if there was an error.
(or) This function is responsible for Releasing an Audio Connection which was previously established by the Remote Device or by a call to the HFRE_set-up_Audio_Connection()function. This function can be used by either an Audio Gateway or a Hands-Free unit. This function accepts as its input parameters the Bluetooth Stack ID for which the HFRE Port ID is valid as well as the HFRE Port ID. This function returns zero if successful or a negative return error code if there was an error.