SWRA769 august 2023 CC2564C
The following function is responsible for sending the Response and Hold Command (+BTRH) to the remote device. This function returns zero on successful execution and a negative value on all errors.
This command requires only one parameter to which is an integer value that represents the incoming call state. This value must be specified as 0 (incoming call is put on hold), 1 (held call is accept) and 2 (held call is reject).
"SendIncomingCallState 1" if there is a incoming call.
HFRE_Send_Incoming_Call_State(BluetoothStackID, CurrentClientPortID, (HFRE_Call_State_t) CallState)
BTPSAPI_DECLARATION int BTPSAPI HFRE_Send_Incoming_Call_State(unsigned int BluetoothStackID, unsigned int HFREPortID, HFRE_Call_State_t CallState)
The following function is responsible for sending information about the incoming call state. This function can only be performed by Audio Gateways that have a valid Service LevelConnection. This function accepts the Bluetooth Stack ID input parameter for which the HFRE Port ID is valid as well as the HFRE Port ID. The final parameter to this function indicates the call state to set as part of this message. This function returns zero if successful or a negative return error code if there was an error.