SWRA769 august 2023 CC2564C
The following function is responsible for closing any open HFP ports. This function returns zero on successful execution and a negative value on all errors.
Using this command does not require parameters. A parameter has no effect on the outcome of Close.
HFRE_Close_Port(BluetoothStackID, CurrentClientPortID)
int BTPSAPI HFRE_Close_Port(unsigned int BluetoothStackID, unsigned int HFREPortID)
The following function exists to close a HFRE Port that was previously opened by any of the following mechanisms:
This function accepts as input the Bluetooth Stack ID of the Bluetooth Stack which the Open HFRE Port resides and the HFRE Port ID (return value from one of the above mentionedOpen functions) of the Port to Close. This function returns zero if successful, or a negative return value if there was an error. This function does NOT Un-Register a HFRE ServerPort from in the system, the function ONLY disconnects any connection that is currently active on the Server Port. The HFRE_Close_Server_Port()function can be used to Un-Register the HFRE ServerPort.