Not used by [[BTM_services|btm]], other processes should not use this.
Not used by [[BTM_services|btm]], other processes should not use this.
+
+
Calls an interface funcptr, the ret is ignored. The Event setup by [[#InitializeBluetooth]] is closed. Lastly, the same funcs used by [[#InitializeBluetooth]] are called for initializing the interface funcptr tables to the defaults, then 0 is returned.
+
+
The above interface funcptr does the following (regardless of whether bluetooth is disabled/enabled):
+
* Calls a func which: uses <code>nn::os::SignalLightEvent</code> to tell the "nn.bluetooth.HidMessageHandler" thread to exit, then waits for the thread to exit and destroys the thread.
+
* Calls the same func as [[#InitializeBluetooth]] for setting event funcptrs in global state, except in this case the content of the input table is all NULL.
+
* Calls a func 5 times with param=[1-5]. This is the cleanup version of the nn::bluetooth::CircularBuffer setup func used by [[#InitializeBluetooth]].