Mistake on this page?
Report an issue in GitHub or email us
lmgr_api_adv_slave.h
Go to the documentation of this file.
1 /*************************************************************************************************/
2 /*!
3  * \file
4  *
5  * \brief Link layer manager advertising slave interface file.
6  *
7  * Copyright (c) 2013-2017 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_SLAVE_H
26 #define LMGR_API_ADV_SLAVE_H
27 
28 #include "lmgr_api.h"
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /*!
35  * \addtogroup LL_LMGR_API_ADV_SLV
36  * \{
37  */
38 
39 /**************************************************************************************************
40  Data Types
41 **************************************************************************************************/
42 
43 /*! \brief Advertising parameters. */
44 typedef struct
45 {
46  uint32_t advInterMinUsec; /*!< Minimum advertising interval in microseconds. */
47  uint32_t advInterMaxUsec; /*!< Maximum advertising interval in microseconds. */
48  uint8_t advType; /*!< Advertising type. */
49  uint8_t ownAddrType; /*!< Address type used by this device. */
50  uint8_t peerAddrType; /*!< Address type of peer device. Only used for directed advertising. */
51  uint64_t peerAddr; /*!< Address of peer device. Only used for directed advertising. */
52  uint8_t advChanMap; /*!< Advertising channel map. */
53  uint8_t advFiltPolicy; /*!< Advertising filter policy. */
55 
56 /*! \brief Slave role device parameter definition. */
57 typedef struct
58 {
59  uint32_t advTermCntDownUsec; /*!< Advertising termination count down in microseconds. */
60  lmgrAdvParam_t advParam; /*!< Advertising parameters. */
61  lmgrAdvbUser_t advData; /*!< Advertising host data buffer. */
62  lmgrAdvbUser_t scanRspData; /*!< Scan response host data buffer. */
63  uint8_t ownAddrType; /*!< Actual address type used by this device. */
64  uint64_t localRpa; /*!< Local RPA used by this device. */
65  bool_t scanReportEna; /*!< Scan report events enabled. */
66  uint8_t defTxPhyOpts; /*!< Default Tx PHY options */
68 
69 /**************************************************************************************************
70  Global Variables
71 **************************************************************************************************/
72 
73 extern lmgrSlvAdvCtrlBlk_t lmgrSlvAdvCb;
74 
75 /**************************************************************************************************
76  Function Declarations
77 **************************************************************************************************/
78 
79 /* Initialization */
80 void LmgrSlvInit(void);
81 
82 /*! \} */ /* LL_LMGR_API_ADV_SLV */
83 
84 #ifdef __cplusplus
85 };
86 #endif
87 
88 #endif /* LMGR_API_ADV_SLAVE_H */
lmgrAdvParam_t advParam
Advertising parameters.
Advertising broadcast user data.
Definition: lmgr_api.h:57
uint32_t advInterMinUsec
lmgrAdvbUser_t scanRspData
Slave role device parameter definition.
lmgrAdvbUser_t advData
Link layer manager common interface file.
uint32_t advInterMaxUsec
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.