Radio Control Layer (RCL)
ieee.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020-2025, Texas Instruments Incorporated
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  *
9  * * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  *
12  * * Redistributions in binary form must reproduce the above copyright
13  * notice, this list of conditions and the following disclaimer in the
14  * documentation and/or other materials provided with the distribution.
15  *
16  * * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
22  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
27  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
28  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
29  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
30  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
33 #ifndef ti_drivers_RCL_handlers_ieee_h__include
34 #define ti_drivers_RCL_handlers_ieee_h__include
35 
36 #include <stdint.h>
39 #include <ti/drivers/rcl/LRF.h>
41 
42 /* Handler functions */
43 RCL_Events RCL_Handler_Ieee_RxTx(RCL_Command *cmd, LRF_Events lrfEvents, RCL_Events rclEventsIn);
44 RCL_Events RCL_Handler_Ieee_TxTest(RCL_Command *cmd, LRF_Events lrfEvents, RCL_Events rclEventsIn);
45 
51 typedef enum
52 {
59 
65 typedef enum
66 {
74 
75 typedef enum
76 {
84 
85 typedef struct
86 {
87  uint8_t panNo;
88  uint8_t index;
91 
92 
93 /* API functions */
108 RCL_IEEE_UpdateResult RCL_IEEE_updateRxAction(RCL_CmdIeeeRxTx *cmd);
109 
124 
139 RCL_IEEE_UpdateResult RCL_IEEE_updateSourceMatchingTableExt(RCL_CmdIeeeRxTx *cmd, RCL_IEEE_SourceMatchingUpdate description, const uint64_t *newAddr);
140 
153 RCL_IEEE_UpdateResult RCL_IEEE_updateTxPower(RCL_CmdIeeeRxTx *cmd, RCL_Command_TxPower newTxPower);
154 
168 RCL_IEEE_AckEntryResult RCL_IEEE_enterAck(RCL_CmdIeeeRxTx *cmd, uint32_t *ackData, uint8_t numWords);
169 
180 RCL_IEEE_AckEntryResult RCL_IEEE_cancelAck(RCL_CmdIeeeRxTx *cmd);
181 
192 size_t RCL_IEEE_readPartialFrame(RCL_CmdIeeeRxTx *cmd, RCL_Buffer_DataEntry *dataEntry, size_t entrySize);
193 
203 RCL_CommandStatus RCL_IEEE_Tx_submit(RCL_CmdIeeeRxTx *cmd, RCL_CmdIeee_TxAction *txAction);
204 
217 RCL_CommandStatus RCL_IEEE_Tx_stop(RCL_CmdIeeeRxTx *cmd, RCL_StopType stopType);
218 
229 int8_t RCL_IEEE_getRxRssi(const RCL_Buffer_DataEntry *rxEntry);
230 
241 uint8_t RCL_IEEE_getRxLqi(const RCL_Buffer_DataEntry *rxEntry);
242 
255 uint32_t RCL_IEEE_getRxTimestamp(const RCL_Buffer_DataEntry *rxEntry);
256 
257 #endif /* ti_drivers_RCL_handlers_ble5_h__include */
Definition: ieee.h:81
RCL_IEEE_UpdateResult RCL_IEEE_updateRxAction(RCL_CmdIeeeRxTx *cmd)
Update RX Action contents.
Definition: ieee.c:1986
Definition: ieee.h:68
RCL_IEEE_UpdateResult RCL_IEEE_updateSourceMatchingTableShort(RCL_CmdIeeeRxTx *cmd, RCL_IEEE_SourceMatchingUpdate description, RCL_CmdIeee_PanIdAddr newPanIdAddr)
Update short source matching table.
Definition: ieee.c:2025
Definition: ieee.h:67
Definition: ieee.h:77
Definition: ieee.h:79
Definition: ieee.h:55
Definition: ieee.h:104
RCL_IEEE_UpdateResult RCL_IEEE_updateTxPower(RCL_CmdIeeeRxTx *cmd, RCL_Command_TxPower newTxPower)
Update TX power.
Definition: ieee.c:2121
Definition: ieee.h:57
Definition: ieee.h:53
RCL_StopType
Stop types.
Definition: RCL_Command.h:145
Definition: ieee.h:78
Index of the tx power table.
Definition: LRFCC23X0.h:169
Definition: ieee.h:71
Definition: ieee.h:70
RCL_IEEE_AckEntryResult
Result of entering ACK frame.
Definition: ieee.h:65
RCL_IEEE_UpdateResult RCL_IEEE_updateSourceMatchingTableExt(RCL_CmdIeeeRxTx *cmd, RCL_IEEE_SourceMatchingUpdate description, const uint64_t *newAddr)
Update extended source matching table.
RCL_CommandStatus RCL_IEEE_Tx_stop(RCL_CmdIeeeRxTx *cmd, RCL_StopType stopType)
Stop a Tx action in an IEEE command.
Definition: ieee.c:1861
int8_t RCL_IEEE_getRxRssi(const RCL_Buffer_DataEntry *rxEntry)
Get received RSSI from frame.
Definition: ieee.c:2873
RCL_IEEE_AckEntryResult RCL_IEEE_cancelAck(RCL_CmdIeeeRxTx *cmd)
Cancel transmission of ACK in response to received frame.
Definition: ieee.c:1929
Definition: ieee.h:69
Definition: ieee.h:80
RCL_IEEE_SourceMatchingOperation
Definition: ieee.h:75
Definition: ieee.h:54
uint8_t index
Definition: ieee.h:88
size_t RCL_IEEE_readPartialFrame(RCL_CmdIeeeRxTx *cmd, RCL_Buffer_DataEntry *dataEntry, size_t entrySize)
Read partially received frame into buffer.
Definition: ieee.c:1944
Definition: ieee.h:56
Definition: ieee.h:85
uint32_t RCL_IEEE_getRxTimestamp(const RCL_Buffer_DataEntry *rxEntry)
Get received timestamp from frame.
Definition: ieee.c:2938
uint8_t panNo
Definition: ieee.h:87
RCL_Events RCL_Handler_Ieee_RxTx(RCL_Command *cmd, LRF_Events lrfEvents, RCL_Events rclEventsIn)
Definition: ieee.c:249
RCL_CommandStatus
Command status.
Definition: RCL_Command.h:86
uint8_t RCL_IEEE_getRxLqi(const RCL_Buffer_DataEntry *rxEntry)
Get received LQI from frame.
Definition: ieee.c:2905
Definition: ieee.h:82
RCL_IEEE_AckEntryResult RCL_IEEE_enterAck(RCL_CmdIeeeRxTx *cmd, uint32_t *ackData, uint8_t numWords)
Provide ACK data to be transmitted in response to received frame.
Definition: ieee.c:1901
RCL_IEEE_SourceMatchingOperation operation
Definition: ieee.h:89
RCL_Events RCL_Handler_Ieee_TxTest(RCL_Command *cmd, LRF_Events lrfEvents, RCL_Events rclEventsIn)
Definition: ieee.c:1629
Definition: ieee.h:72
RCL_CommandStatus RCL_IEEE_Tx_submit(RCL_CmdIeeeRxTx *cmd, RCL_CmdIeee_TxAction *txAction)
Update tx action.
Definition: ieee.c:1806
RCL_IEEE_UpdateResult
Result of IEEE command update API.
Definition: ieee.h:51