Mistake on this page?
Report an issue in GitHub or 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  *
9  * Copyright (c) 2019 Packetcraft, Inc.
10  *
11  * Licensed under the Apache License, Version 2.0 (the "License");
12  * you may not use this file except in compliance with the License.
13  * You may obtain a copy of the License at
14  *
15  * http://www.apache.org/licenses/LICENSE-2.0
16  *
17  * Unless required by applicable law or agreed to in writing, software
18  * distributed under the License is distributed on an "AS IS" BASIS,
19  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  * See the License for the specific language governing permissions and
21  * limitations under the License.
22  */
23 /*************************************************************************************************/
24 #ifndef HCI_EVT_H
25 #define HCI_EVT_H
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 /*! \addtogroup STACK_HCI_API
32  * \{ */
33 
34 /**************************************************************************************************
35  Data Types
36 **************************************************************************************************/
37 
38 /*! \brief HCI event statistics */
39 typedef struct
40 {
41  uint16_t numDiscCmplEvt; /*!< \brief Number discovery complete events. */
42  uint16_t numEncChangeEvt; /*!< \brief Number encryption change events. */
43  uint16_t numReadRemoteVerInfoCmpEvt; /*!< \brief Number read remote version info complete events. */
44  uint16_t numCmdCmplEvt; /*!< \brief Number command complete events. */
45  uint16_t numCmdStatusEvt; /*!< \brief Number command status events. */
46  uint16_t numHwErrorEvt; /*!< \brief Number hardware error events. */
47  uint16_t numCmplPktsEvt; /*!< \brief Number complete packet events. */
48  uint16_t numDataBufOverflowEvt; /*!< \brief Number data buf overflow events. */
49  uint16_t numEncKeyRefreshCmplEvt; /*!< \brief Number encryption key refresh complete events. */
50  uint16_t numLeMetaEvt; /*!< \brief Number LE meta events. */
51  uint16_t numVendorSpecEvt; /*!< \brief Number vendor specific events. */
52  uint16_t numAuthToEvt; /*!< \brief Number authenticated to events. */
54 
55 /*! \} */ /* STACK_HCI_API */
56 
57 /**************************************************************************************************
58  Function Declarations
59 **************************************************************************************************/
60 
61 
62 /*************************************************************************************************/
63 /*!
64  * \brief Process received HCI events.
65  *
66  * \param pEvt Buffer containing HCI event.
67  *
68  * \return None.
69  */
70 /*************************************************************************************************/
71 void hciEvtProcessMsg(uint8_t *pEvt);
72 
73 /*************************************************************************************************/
74 /*!
75  * \brief Get event statistics.
76  *
77  * \return Event statistics.
78  */
79 /*************************************************************************************************/
81 
82 #ifdef __cplusplus
83 };
84 #endif
85 
86 #endif /* HCI_EVT_H */
uint16_t numReadRemoteVerInfoCmpEvt
Number read remote version info complete events.
Definition: hci_evt.h:43
HCI event statistics.
Definition: hci_evt.h:39
hciEvtStats_t * hciEvtGetStats(void)
Get event statistics.
void hciEvtProcessMsg(uint8_t *pEvt)
Process received HCI events.
uint16_t numEncKeyRefreshCmplEvt
Number encryption key refresh complete events.
Definition: hci_evt.h:49
uint16_t numHwErrorEvt
Number hardware error events.
Definition: hci_evt.h:46
uint16_t numAuthToEvt
Number authenticated to events.
Definition: hci_evt.h:52
uint16_t numEncChangeEvt
Number encryption change events.
Definition: hci_evt.h:42
uint16_t numDataBufOverflowEvt
Number data buf overflow events.
Definition: hci_evt.h:48
uint16_t numLeMetaEvt
Number LE meta events.
Definition: hci_evt.h:50
uint16_t numCmdCmplEvt
Number command complete events.
Definition: hci_evt.h:44
uint16_t numCmdStatusEvt
Number command status events.
Definition: hci_evt.h:45
uint16_t numDiscCmplEvt
Number discovery complete events.
Definition: hci_evt.h:41
uint16_t numCmplPktsEvt
Number complete packet events.
Definition: hci_evt.h:47
uint16_t numVendorSpecEvt
Number vendor specific events.
Definition: hci_evt.h:51
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.