rflib
rf_bt5_iq_autocopy.h
Go to the documentation of this file.
1 /******************************************************************************
2 * Filename: rf_bt5_iq_autocopy.h
3 *
4 * Description: CC13x2/CC26x2 API for IQ Sample automatic copy in BLE
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 __RF_BT5_IQ_AUTOCOPY_H
38 #define __RF_BT5_IQ_AUTOCOPY_H
39 
40 #ifndef __RFC_STRUCT
41 #define __RFC_STRUCT
42 #endif
43 
44 #ifndef __RFC_STRUCT_ATTR
45 #if defined(__GNUC__)
46 #define __RFC_STRUCT_ATTR __attribute__ ((aligned (4)))
47 #elif defined(__TI_ARM__)
48 #define __RFC_STRUCT_ATTR __attribute__ ((__packed__,aligned (4)))
49 #else
50 #define __RFC_STRUCT_ATTR
51 #endif
52 #endif
53 
56 
59 
60 #include <stdint.h>
61 #include "rf_mailbox.h"
62 
63 #define IRQN_CTE_SAMPLES_AUTOCOPIED 15
64 #define IRQ_CTE_SAMPLES_AUTOCOPIED (1U << IRQN_CTE_SAMPLES_AUTOCOPIED)
65 
68 
72  struct {
73  uint8_t bFlushCrcErr:1;
74  uint8_t bFlushCteInfoErr:1;
76  uint8_t bFlushAoa:1;
78  uint8_t bFlushAod1us:1;
80  uint8_t bFlushAod2us:1;
82  uint8_t bIncludeRfGain:1;
84  uint8_t bIncludeRssi:1;
86  } samplesConfig;
88  uint8_t minReportSize;
89  uint8_t maxReportSize;
91  uint32_t* pSamplesQueue;
95  uint8_t numPktCopied;
96  uint8_t numPktFlushed;
97  uint8_t numPktBufFull;
99 
101 
105  struct {
106  uint8_t bCrcErr:1;
107  uint8_t bCopyTrunk:1;
108  uint8_t bSamplTrunk:1;
109  uint8_t rfRamInfo:2;
110  uint8_t rfPhy:1;
114  uint8_t rfGainStep:1;
117  } status;
121 
123 
126 #endif
uint8_t cteCopyLimitCount
Number of CTE that should be recieved. 0x00: Do not copy any CTE, CTE will be flushed 0x01 - 0xFE: Co...
Definition: rf_bt5_iq_autocopy.h:90
Definition: rf_bt5_iq_autocopy.h:104
#define __RFC_STRUCT
Definition: rf_bt5_iq_autocopy.h:41
uint8_t minReportSize
Minimum value of CTETime for packets to report.
Definition: rf_bt5_iq_autocopy.h:88
uint8_t maxReportSize
Maximum value of CTETime for packets to report.
Definition: rf_bt5_iq_autocopy.h:89
uint8_t numPktBufFull
Number of packets not copied because no buffer was available. Updated by CM0.
Definition: rf_bt5_iq_autocopy.h:97
uint8_t numPktFlushed
Number of packets not copied due to the settings in samplesConfig. Updated by CM0.
Definition: rf_bt5_iq_autocopy.h:96
Definition: rf_bt5_iq_autocopy.h:71
uint8_t numPktCopied
Number of packets copied. Updated by CM0.
Definition: rf_bt5_iq_autocopy.h:95
#define __RFC_STRUCT_ATTR
Definition: rf_bt5_iq_autocopy.h:50
© Copyright 1995-2020, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale