Mistake on this page?
Report an issue in GitHub or email us
lmgr_api_adv_master.h
Go to the documentation of this file.
1 /*************************************************************************************************/
2 /*!
3  * \file
4  *
5  * \brief Link layer manager advertising master interface file.
6  *
7  * Copyright (c) 2013-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 
25 #ifndef LMGR_API_ADV_MASTER_H
26 #define LMGR_API_ADV_MASTER_H
27 
28 #include "lmgr_api.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /*!
35  * \addtogroup LL_LMGR_API_ADV_MST
36  * \{
37  */
38 
39 /**************************************************************************************************
40  Data Types
41 **************************************************************************************************/
42 
43 /*! \brief Scan parameters. */
44 typedef struct
45 {
46  uint16_t scanInterval; /*!< Scan interval in BLE ticks. */
47  uint16_t scanWindow; /*!< Scan window duration in BLE ticks. */
48  uint8_t scanType; /*!< Advertising type. */
49  uint8_t ownAddrType; /*!< Address type used by this device. */
50  uint8_t scanFiltPolicy; /*!< Scanning filter policy. */
52 
53 /*! \brief Master role device parameter definition. */
54 typedef struct
55 {
56  lmgrScanParam_t scanParam; /*!< Scan parameters. */
57  uint8_t scanChanMap; /*!< Scan channel map. */
58  uint8_t numAdvReport; /*!< Number of pending advertising reports. */
60 
61 /**************************************************************************************************
62  Global Variables
63 **************************************************************************************************/
64 
65 extern lmgrMstScanCtrlBlk_t lmgrMstScanCb;
66 
67 /**************************************************************************************************
68  Function Declarations
69 **************************************************************************************************/
70 
71 /* Initialization */
72 void LmgrMstInit(void);
73 
74 /*! \} */ /* LL_LMGR_API_ADV_MST */
75 
76 #ifdef __cplusplus
77 };
78 #endif
79 
80 #endif /* LMGR_API_ADV_MASTER_H */
Master role device parameter definition.
Scan parameters.
Link layer manager common interface file.
lmgrScanParam_t scanParam
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.