Share via


HCI_SetCallback (Windows Embedded CE 6.0)

1/6/2010

This function obtains the HCI parameters.

Syntax

typedef int (*HCI_TransportCallback)(HCI_EVENT eEvent, void* pEvent);
  int HCI_SetCallback(
  HCI_TransportCallback pfCallback
);

Parameters

  • pfCallback
    [in] Pointer to the HCI transport callback.

Return Value

Ignored.

Remarks

If pfCallback is NULL, the driver must prepare to be unloaded. The function will only be called with pfCallback set to NULL if connection to the stack is currently closed.

If pfCallback is not NULL, this is the callback that is used to indicate hardware insertion/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
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

Bluetooth HCI Transport Layer Functions

Concepts

Transferring Data