Mistake on this page? Email us
hci_evt.h
Go to the documentation of this file.
1 /*************************************************************************************************/
2 /*!
3  * \file
4  *
5  * \brief HCI event module.
6  *
7  * Copyright (c) 2009-2018 Arm Ltd. All Rights Reserved.
8  * Arm Ltd. confidential and proprietary.
9  *
10  * IMPORTANT. Your use of this file is governed by a Software License Agreement
11  * ("Agreement") that must be accepted in order to download or otherwise receive a
12  * copy of this file. You may not use or copy this file for any purpose other than
13  * as described in the Agreement. If you do not agree to all of the terms of the
14  * Agreement do not use this file and delete all copies in your possession or control;
15  * if you do not have a copy of the Agreement, you must contact Arm Ltd. prior
16  * to any use, copying or further distribution of this software.
17  */
18 /*************************************************************************************************/
19 #ifndef HCI_EVT_H
20 #define HCI_EVT_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 /*! \addtogroup STACK_HCI_API
27  * \{ */
28 
29 /**************************************************************************************************
30  Data Types
31 **************************************************************************************************/
32 
33 /*! \brief HCI event statistics */
34 typedef struct
35 {
36  uint16_t numDiscCmplEvt; /*!< \brief Number discovery complete events. */
37  uint16_t numEncChangeEvt; /*!< \brief Number encryption change events. */
38  uint16_t numReadRemoteVerInfoCmpEvt; /*!< \brief Number read remote version info complete events. */
39  uint16_t numCmdCmplEvt; /*!< \brief Number command complete events. */
40  uint16_t numCmdStatusEvt; /*!< \brief Number command status events. */
41  uint16_t numHwErrorEvt; /*!< \brief Number hardware error events. */
42  uint16_t numCmplPktsEvt; /*!< \brief Number complete packet events. */
43  uint16_t numDataBufOverflowEvt; /*!< \brief Number data buf overflow events. */
44  uint16_t numEncKeyRefreshCmplEvt; /*!< \brief Number encryption key refresh complete events. */
45  uint16_t numLeMetaEvt; /*!< \brief Number LE meta events. */
46  uint16_t numVendorSpecEvt; /*!< \brief Number vendor specific events. */
47  uint16_t numAuthToEvt; /*!< \brief Number authenticated to events. */
49 
50 /*! \} */ /* STACK_HCI_API */
51 
52 /**************************************************************************************************
53  Function Declarations
54 **************************************************************************************************/
55 
56 
57 /*************************************************************************************************/
58 /*!
59  * \brief Process received HCI events.
60  *
61  * \param pEvt Buffer containing HCI event.
62  *
63  * \return None.
64  */
65 /*************************************************************************************************/
66 void hciEvtProcessMsg(uint8_t *pEvt);
67 
68 /*************************************************************************************************/
69 /*!
70  * \brief Get event statistics.
71  *
72  * \return Event statistics.
73  */
74 /*************************************************************************************************/
76 
77 #ifdef __cplusplus
78 };
79 #endif
80 
81 #endif /* HCI_EVT_H */
uint16_t numHwErrorEvt
Number hardware error events.
Definition: hci_evt.h:41
uint16_t numAuthToEvt
Number authenticated to events.
Definition: hci_evt.h:47
uint16_t numDiscCmplEvt
Number discovery complete events.
Definition: hci_evt.h:36
HCI event statistics.
Definition: hci_evt.h:34
hciEvtStats_t * hciEvtGetStats(void)
Get event statistics.
void hciEvtProcessMsg(uint8_t *pEvt)
Process received HCI events.
uint16_t numEncChangeEvt
Number encryption change events.
Definition: hci_evt.h:37
uint16_t numEncKeyRefreshCmplEvt
Number encryption key refresh complete events.
Definition: hci_evt.h:44
uint16_t numCmdStatusEvt
Number command status events.
Definition: hci_evt.h:40
uint16_t numDataBufOverflowEvt
Number data buf overflow events.
Definition: hci_evt.h:43
uint16_t numVendorSpecEvt
Number vendor specific events.
Definition: hci_evt.h:46
uint16_t numCmplPktsEvt
Number complete packet events.
Definition: hci_evt.h:42
uint16_t numLeMetaEvt
Number LE meta events.
Definition: hci_evt.h:45
uint16_t numCmdCmplEvt
Number command complete events.
Definition: hci_evt.h:39
uint16_t numReadRemoteVerInfoCmpEvt
Number read remote version info complete events.
Definition: hci_evt.h:38
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.