Mistake on this page?
Report an issue in GitHub or email us
bb_int.h
Go to the documentation of this file.
1 /*************************************************************************************************/
2 /*!
3  * \file
4  *
5  * \brief Internal baseband interface file.
6  *
7  * Copyright (c) 2016-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 BB_INT_H
26 #define BB_INT_H
27 
28 #include "bb_api.h"
29 #include "pal_bb.h"
30 #include "wsf_assert.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /**************************************************************************************************
37  Data Types
38 **************************************************************************************************/
39 
40 /*! \brief BB control block. */
41 typedef struct
42 {
43  BbOpDesc_t *pOpInProgress; /*!< Current BB operation in progress. */
44  BbBodCompCback_t bodCompCback; /*!< BOD completion handler. */
45 
46  struct
47  {
48  BbBodCback_t execOpCback; /*!< Execute operation handler. */
49  BbBodCback_t cancelOpCback; /*!< Cancel operation handler. */
50  BbProtCback_t startProtCback; /*!< Start protocol handler. */
51  BbProtCback_t stopProtCback; /*!< Stop protocol handler. */
52  BbLowPowerCback_t lowPowerOpCback; /*!< Low power operation handler. */
53  uint32_t startCnt; /*!< Start counter. */
54  } prot[BB_PROT_NUM]; /*!< Protocol callbacks. */
55 
56  uint8_t protIdStarted; /*!< Started protocol ID. */
57  bool_t protStarted; /*!< Protocol started. */
58  bool_t termBod; /*!< Terminate current BOD. */
59 } BbCtrlBlk_t;
60 
61 /**************************************************************************************************
62  Global Variables
63 **************************************************************************************************/
64 
65 extern BbCtrlBlk_t bbCb;
66 extern const BbRtCfg_t *pBbRtCfg;
67 
68 #ifdef __cplusplus
69 };
70 #endif
71 
72 #endif /* BB_INT_H */
void(* BbBodCompCback_t)(void)
BOD completion event callback signature.
Definition: bb_api.h:118
BB runtime configuration parameters.
Definition: bb_api.h:95
bool_t termBod
Definition: bb_int.h:58
void(* BbProtCback_t)(void)
Protocol event callback signature.
Definition: bb_api.h:124
BB control block.
Definition: bb_int.h:41
bool_t protStarted
Definition: bb_int.h:57
BbBodCback_t execOpCback
Definition: bb_int.h:48
BbOpDesc_t * pOpInProgress
Definition: bb_int.h:43
void(* BbBodCback_t)(struct BbOpDesc_tag *pBod)
BOD event callback signature.
Definition: bb_api.h:121
BbProtCback_t stopProtCback
Definition: bb_int.h:51
BbProtCback_t startProtCback
Definition: bb_int.h:50
BbBodCback_t cancelOpCback
Definition: bb_int.h:49
BbLowPowerCback_t lowPowerOpCback
Definition: bb_int.h:52
Assert macro.
uint32_t startCnt
Definition: bb_int.h:53
Baseband interface file.
BbBodCompCback_t bodCompCback
Definition: bb_int.h:44
Baseband operation descriptor (BOD).
Definition: bb_api.h:149
void(* BbLowPowerCback_t)(void)
Low power callback.
Definition: bb_api.h:127
Baseband interface file.
uint8_t protIdStarted
Definition: bb_int.h:56
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.