rflib
cc13x4_cc26x4/driverlib/rf_hs_cmd.h
Go to the documentation of this file.
1 /******************************************************************************
2 * Filename: rf_hs_cmd.h
3 *
4 * Description: CC13x2/CC26x2 API for high-speed mode commands
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 __HS_CMD_H
38 #define __HS_CMD_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 #include "rf_common_cmd.h"
63 
68 
71 #define CMD_HS_TX 0x3841
74  uint16_t commandNo;
75  uint16_t status;
76  rfc_radioOp_t *pNextOp;
79  ratmr_t startTime;
80  struct {
81  uint8_t triggerType:4;
82  uint8_t bEnaCmd:1;
83  uint8_t triggerNo:2;
85  uint8_t pastTrig:1;
86  } startTrigger;
88  struct {
89  uint8_t rule:4;
90  uint8_t nSkip:4;
91  } condition;
92  struct {
93  uint8_t bFsOff:1;
94  uint8_t bUseCrc:1;
96  uint8_t bVarLen:1;
98  uint8_t bCheckQAtEnd:1;
100  } pktConf;
102  uint8_t __dummy0;
103  dataQueue_t* pQueue;
105 
107 
110 #define CMD_HS_RX 0x3842
113  uint16_t commandNo;
114  uint16_t status;
115  rfc_radioOp_t *pNextOp;
118  ratmr_t startTime;
119  struct {
120  uint8_t triggerType:4;
121  uint8_t bEnaCmd:1;
122  uint8_t triggerNo:2;
124  uint8_t pastTrig:1;
125  } startTrigger;
127  struct {
128  uint8_t rule:4;
129  uint8_t nSkip:4;
130  } condition;
131  struct {
132  uint8_t bFsOff:1;
133  uint8_t bUseCrc:1;
135  uint8_t bVarLen:1;
137  uint8_t bRepeatOk:1;
139  uint8_t bRepeatNok:1;
141  uint8_t addressMode:2;
143  } pktConf;
147  struct {
148  uint8_t bAutoFlushCrcErr:1;
149  uint8_t bIncludeLen:1;
150  uint8_t bIncludeCrc:1;
151  uint8_t bAppendStatus:1;
152  uint8_t bAppendTimestamp:1;
153  } rxConf;
154  uint16_t maxPktLen;
155  uint16_t address0;
156  uint16_t address1;
157  uint8_t __dummy0;
158  struct {
159  uint8_t triggerType:4;
160  uint8_t bEnaCmd:1;
161  uint8_t triggerNo:2;
163  uint8_t pastTrig:1;
164  } endTrigger;
166  ratmr_t endTime;
167  dataQueue_t* pQueue;
168  rfc_hsRxOutput_t *pOutput;
170 
172 
176 
177 struct __RFC_STRUCT rfc_hsRxOutput_s {
178  uint16_t nRxOk;
179  uint16_t nRxNok;
180  uint16_t nRxAborted;
181  uint8_t nRxBufFull;
182  int8_t lastRssi;
183  ratmr_t timeStamp;
185 
187 
191 
192 struct __RFC_STRUCT rfc_hsRxStatus_s {
193  struct {
194  uint16_t rssi:8;
195  uint16_t bCrcErr:1;
196  uint16_t addressInd:2;
198  } status;
203 
205 
208 #endif
#define __RFC_STRUCT
Definition: cc13x4_cc26x4/driverlib/rf_hs_cmd.h:41
High-Speed Receive Command.
Definition: cc13x2_cc26x2/driverlib/rf_hs_cmd.h:112
Definition: cc13x2_cc26x2/driverlib/rf_hs_cmd.h:192
High-Speed Transmit Command.
Definition: cc13x2_cc26x2/driverlib/rf_hs_cmd.h:73
#define __RFC_STRUCT_ATTR
Definition: cc13x4_cc26x4/driverlib/rf_hs_cmd.h:50
uint32_t ratmr_t
Type definition for RAT.
Definition: cc13x2_cc26x2/driverlib/rf_mailbox.h:57
Type definition for a data queue.
Definition: cc13x2_cc26x2/driverlib/rf_mailbox.h:62
Definition: cc13x2_cc26x2/driverlib/rf_hs_cmd.h:177
Definition: cc13x2_cc26x2/driverlib/rf_common_cmd.h:122
© Copyright 1995-2022, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale