HCI_SetCallback (Compact 2013)
3/26/2014
This function registers the Host Controller Interface (HCI) transport callback function.
Syntax
int HCI_SetCallback(
HCI_TransportCallback pfCallback
);
Parameters
- pfCallback
[in] Pointer to the HCI transport callback.
Return Value
Always returns ERROR_SUCCESS.
Remarks
The callback signature must be int (*HCI_TransportCallback) (HCI_EVENT eEvent, void *pEvent).
If pfCallback is NULL, the driver should prepare to be unloaded. The stack only calls this function with pfCallback set to NULL if connection to the stack is currently closed.
If pfCallback is not NULL, the stack uses this callback to indicate hardware insertion or removal.
If hardware removal or insertion is detected, the transport calls the function provided by the upper layer.
Requirements
Header |
bt_hcip.h |
Library |
Btd.lib |