Share via


APIs for Managing the Interface with the HCI Layer

The following APIs should be used to manage the interface with the HCI layer:

  • When the upper layer is loaded successfully, it will call HCI_EstablishDeviceContext to establish the connection.

    Int HCI_EstablishDeviceContext(
       Void*                  pUserContext,       /* IN */
       UINT                  uiControl,           /* IN */
       BD_ADDR*               pba,                /* IN */
       UINT                  class_of_device,     /* IN */
       UCHAR                 link_type,           /* IN */
       HCI_EVENT_INDICATION*  pInd,               /* IN */
       HCI_CALLBACKS*         pCall,              /* IN */
       HCI_INTERFACE*         pInt,               /* OUT */
       in*t                   pcDataHeaders,      /* OUT */
       int*                   pcDataTrailers,     /* OUT */
       HANDLE*                phDeviceContext     /* OUT */
    );
    
  • When the upper layer is ready to shut down, it will call HCI_CloseDeviceContext to close the connection. This causes all calls placed by this layer to abort and all connections owned by this layer to close.

    int HCI_CloseDeviceContext(
       HANDLE   hDeviceContext           /* IN */
    );
    

See Also

Interface References | Enhancing the Bluetooth Stack

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.