SWRA772 august 2023 CC2564C
The StopScanning command is responsible for stopping an LE scan procedure. This command returns zero if successful and a negative value if an error occurred. This command calls the StopScan (unsigned in BluetoothStackID) function which performs the scan.
Including parameters is not necessary when using this command. A parameter has no effect on the outcome of the command.
GAP_LE_Cancel_Scan(BluetoothStackID)
int BTPSAPI GAP_LE_Cancel_Scan(unsigned int BluetoothStackID)
The GAP_LE_Cancel_Scan function is provided to allow the local host the ability to cancel (stop) an on-going scan procedure. This function returns zero if successful or a negative return error code if there is an error condition.