rflib
cc13x2_cc26x2/driverlib/rf_data_entry.h
Go to the documentation of this file.
1 /******************************************************************************
2 * Filename: rf_data_entry.h
3 *
4 * Description: Definition of API for data exchange
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 __DATA_ENTRY_H
38 #define __DATA_ENTRY_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 
68 
72  uint8_t* pNextEntry;
73  uint8_t status;
74  struct {
75  uint8_t type:2;
76  uint8_t lenSz:2;
81  uint8_t irqIntv:4;
86  } config;
88  uint16_t length;
91 
93 
97 
99  uint8_t* pNextEntry;
100  uint8_t status;
101  struct {
102  uint8_t type:2;
103  uint8_t lenSz:2;
108  uint8_t irqIntv:4;
113  } config;
115  uint16_t length;
116  uint8_t data;
119 
121 
125 
127  uint8_t* pNextEntry;
128  uint8_t status;
129  struct {
130  uint8_t type:2;
131  uint8_t lenSz:2;
136  uint8_t irqIntv:4;
141  } config;
143  uint16_t length;
144  uint16_t numElements;
146  uint16_t nextIndex;
147  uint8_t rxData;
149 
151 
155 
157  uint8_t* pNextEntry;
158  uint8_t status;
159  struct {
160  uint8_t type:2;
161  uint8_t lenSz:2;
166  uint8_t irqIntv:4;
171  } config;
173  uint16_t length;
174  uint8_t* pData;
177 
179 
183 
185  uint8_t* pNextEntry;
186  uint8_t status;
187  struct {
188  uint8_t type:2;
189  uint8_t lenSz:2;
194  uint8_t irqIntv:4;
199  } config;
201  uint16_t length;
202  struct {
204  uint16_t numElements:13;
205  uint16_t bEntryOpen:1;
206  uint16_t bFirstCont:1;
207  uint16_t bLastCont:1;
208  } pktStatus;
209  uint16_t nextIndex;
210  uint8_t rxData;
212 
214 
217 #endif
uint8_t * pNextEntry
Pointer to next entry in the queue, NULL if this is the last entry.
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:157
uint16_t length
For pointer entries: Number of bytes in the data buffer pointed to For other entries: Number of byte...
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:115
#define __RFC_STRUCT_ATTR
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:50
uint8_t status
Indicates status of entry, including whether it is free for the system CPU to write to...
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:128
uint8_t rxData
First byte of the data array of received data entry elements.
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:210
uint16_t length
For pointer entries: Number of bytes in the data buffer pointed to For other entries: Number of byte...
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:143
uint8_t * pNextEntry
Pointer to next entry in the queue, NULL if this is the last entry.
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:99
uint16_t length
For pointer entries: Number of bytes in the data buffer pointed to For other entries: Number of byte...
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:173
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:184
uint16_t length
For pointer entries: Number of bytes in the data buffer pointed to For other entries: Number of byte...
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:201
#define __RFC_STRUCT
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:41
uint16_t nextIndex
Index to the byte after the last byte of the last entry element committed by the radio CPU...
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:146
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:156
uint16_t length
For pointer entries: Number of bytes in the data buffer pointed to For other entries: Number of byte...
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:88
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:98
uint8_t * pNextEntry
Pointer to next entry in the queue, NULL if this is the last entry.
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:185
uint8_t * pNextEntry
Pointer to next entry in the queue, NULL if this is the last entry.
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:127
uint8_t rxData
First byte of the data array of received data entry elements.
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:147
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:126
uint8_t status
Indicates status of entry, including whether it is free for the system CPU to write to...
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:158
uint8_t * pNextEntry
Pointer to next entry in the queue, NULL if this is the last entry.
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:72
uint8_t status
Indicates status of entry, including whether it is free for the system CPU to write to...
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:186
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:71
uint8_t status
Indicates status of entry, including whether it is free for the system CPU to write to...
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:100
uint8_t status
Indicates status of entry, including whether it is free for the system CPU to write to...
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:73
uint16_t nextIndex
Index to the byte after the last byte of the last entry element committed by the radio CPU...
Definition: cc13x2_cc26x2/driverlib/rf_data_entry.h:209
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale