rflib
rf_bt5_coex.h
Go to the documentation of this file.
1 /******************************************************************************
2 * Filename: rf_bt5_coex.h
3 *
4 * Description: CC13x2/CC26x2 structures for bt5 coexistence support
5 *
6 * Copyright (c) 2015 - 2020, Texas Instruments Incorporated
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are met:
11 *
12 * 1) Redistributions of source code must retain the above copyright notice,
13 * this list of conditions and the following disclaimer.
14 *
15 * 2) Redistributions in binary form must reproduce the above copyright notice,
16 * this list of conditions and the following disclaimer in the documentation
17 * and/or other materials provided with the distribution.
18 *
19 * 3) Neither the name of the ORGANIZATION nor the names of its contributors may
20 * be used to endorse or promote products derived from this software without
21 * specific prior written permission.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 *
35 ******************************************************************************/
36 
37 #ifndef __BT5_COEX_H
38 #define __BT5_COEX_H
39 
42 
45 
46 #include <stdint.h>
47 #include "rf_mailbox.h"
48 
49 // Error code for GRANT signal not given
50 #define BLE_ERROR_NO_GRANT 0x1808
51 
53 
54 
58  struct {
59  uint8_t bCoExEnable:1;
60  uint8_t bUseREQUEST:1;
62  uint8_t bUseGRANT:1;
64  uint8_t bUsePRIORITY:1;
66  uint8_t bRequestForChain:1;
68  } coExEnable;
71  uint16_t priorityIndicationTime;
75  struct {
76  uint8_t bRequestAsserted:1;
77  uint8_t bIgnoreGrantInRxAsserted:1;
81  struct {
83  uint8_t overridePriority:1;
86  uint8_t bUseOverrideRequestForRx:1;
89  uint8_t overrideRequestForRx:1;
95  struct {
96  uint8_t defaultPriority:1;
97  uint8_t bAssertRequestForRx:1;
99  uint8_t bIgnoreGrantInRx:1;
102  uint8_t bKeepRequestIfNoGrant:1;
106  struct {
107  uint8_t defaultPriority:1;
108  uint8_t bAssertRequestForRx:1;
110  uint8_t bIgnoreGrantInRx:1;
113  uint8_t bKeepRequestIfNoGrant:1;
115  } cmdBleAdvConfig;
117  struct {
118  uint8_t defaultPriority:1;
119  uint8_t bAssertRequestForRx:1;
121  uint8_t bIgnoreGrantInRx:1;
124  uint8_t bKeepRequestIfNoGrant:1;
128  struct {
129  uint8_t defaultPriority:1;
130  uint8_t bAssertRequestForRx:1;
132  uint8_t bIgnoreGrantInRx:1;
135  uint8_t bKeepRequestIfNoGrant:1;
139  struct {
140  uint8_t defaultPriority:1;
141  uint8_t bAssertRequestForRx:1;
143  uint8_t bIgnoreGrantInRx:1;
146  uint8_t bKeepRequestIfNoGrant:1;
150  struct {
151  uint8_t defaultPriority:1;
152  uint8_t bAssertRequestForRx:1;
154  uint8_t bIgnoreGrantInRx:1;
157  uint8_t bKeepRequestIfNoGrant:1;
161 } ;
162 
164 
167 #endif
struct rfCoreHal_bleCoExConfig_s::@25 cmdBleTxTestConfig
uint8_t bUseOverrideRequestForRx
Bit to override default request for RX.
Definition: rf_bt5_coex.h:88
uint8_t bRequestForChain
0: Deassert REQUEST after each RF command 1: Keep REQUEST asserted for entire command chain ...
Definition: rf_bt5_coex.h:67
uint8_t bKeepRequestIfNoGrant
0: Deassert REQUEST if GRANT was not given 1: Keep REQUEST asserted if no GRANT was given ...
Definition: rf_bt5_coex.h:103
Definition: rf_bt5_coex.h:57
uint8_t bUseGRANT
0: GRANT signal inactive 1: GRANT signal active
Definition: rf_bt5_coex.h:63
struct rfCoreHal_bleCoExConfig_s::@24 cmdBleGenericRxConfig
uint8_t bAssertRequestForRx
Default "request for RX" behaviour 0: Assert REQUEST for TX operations only 1: Assert REQUEST for bot...
Definition: rf_bt5_coex.h:98
struct rfCoreHal_bleCoExConfig_s::@20 cmdBleMasterSlaveConfig
struct rfCoreHal_bleCoExConfig_s::@19 overrideConfig
uint8_t bUseOverridePriority
Bit to override default priority 0: Use default priority 1: use overridePriority priority for entire ...
Definition: rf_bt5_coex.h:82
uint8_t defaultPriority
0: Default low priority 1: Default high priority
Definition: rf_bt5_coex.h:96
uint8_t bIgnoreGrantInRxAsserted
READ ONLY. 0 = GRANT is checked in RX, 1 = GRANT is not checked in RX.
Definition: rf_bt5_coex.h:78
uint16_t priorityIndicationTime
Time (in us) that the PRIORITY signal will indicate the priority.
Definition: rf_bt5_coex.h:74
uint8_t coExTxRxIndication
0 = RX indication is 0, TX indication is 0 1 = RX indication is 0, TX indication is 1 2 = RX indicati...
Definition: rf_bt5_coex.h:70
uint8_t bUsePRIORITY
0: PRIORITY signal inactive 1: PRIORITY signal active
Definition: rf_bt5_coex.h:65
struct rfCoreHal_bleCoExConfig_s::@21 cmdBleAdvConfig
uint8_t overrideRequestForRx
REQUEST signal override if bUseOverrideRequestForRx = 1, used for entire chain 0: Don&#39;t request for R...
Definition: rf_bt5_coex.h:91
struct rfCoreHal_bleCoExConfig_s::@23 cmdBleInitConfig
struct rfCoreHal_bleCoExConfig_s::@22 cmdBleScanConfig
uint8_t bIgnoreGrantInRx
0: Check GRANT in RX and TX 1: Ignore GRANT in RX, check GRANT in TX. Independent of asserting REQUES...
Definition: rf_bt5_coex.h:101
struct rfCoreHal_bleCoExConfig_s::@18 rfCoreCoExStatus
uint8_t bRequestAsserted
READ ONLY. 0 = REQUEST not asserted, 1 = REQUEST is asserted. Will indicate if REQUEST would have bee...
Definition: rf_bt5_coex.h:76
uint8_t bCoExEnable
0: CoEx disabled 1: CoEx enabled
Definition: rf_bt5_coex.h:59
struct rfCoreHal_bleCoExConfig_s::@17 coExEnable
uint8_t bUseREQUEST
0: REQUEST signal inactive 1: REQUEST signal active
Definition: rf_bt5_coex.h:61
uint8_t overridePriority
Priority to use if priority is overridden 0: Low priority if bUseOverridePriority = 1 1: High priorit...
Definition: rf_bt5_coex.h:85
© Copyright 1995-2020, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale