Radio Control Layer (RCL)
RCL_Event.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_RCL_Event__include
34 #define ti_drivers_rcl_RCL_Event__include
35 
36 #include <stdint.h>
37 
38 #define RCL_EventNone ((RCL_Events){ .value = (0U << 0U)})
39 #define RCL_EventCmdStarted ((RCL_Events){ .value = (1U << 0U)})
40 #define RCL_EventLastCmdDone ((RCL_Events){ .value = (1U << 1U)})
41 #define RCL_EventRxEntryAvail ((RCL_Events){ .value = (1U << 2U)})
42 #define RCL_EventRxBufferFinished ((RCL_Events){ .value = (1U << 3U)})
43 #define RCL_EventTxBufferFinished ((RCL_Events){ .value = (1U << 4U)})
44 #define RCL_EventSoftwareTriggered ((RCL_Events){ .value = (1U << 5U)})
45 #define RCL_EventTimerStart ((RCL_Events){ .value = (1U << 6U)})
46 #define RCL_EventDescheduleStop ((RCL_Events){ .value = (1U << 7U)})
47 #define RCL_EventGracefulStop ((RCL_Events){ .value = (1U << 8U)})
48 #define RCL_EventHardStop ((RCL_Events){ .value = (1U << 9U)})
49 #define RCL_EventStopDelayed ((RCL_Events){ .value = (1U << 10U)})
50 #define RCL_EventStopRejected ((RCL_Events){ .value = (1U << 11U)})
51 #define RCL_EventStartDelayed ((RCL_Events){ .value = (1U << 12U)})
52 #define RCL_EventStartRejected ((RCL_Events){ .value = (1U << 13U)})
53 #define RCL_EventSetup ((RCL_Events){ .value = (1U << 14U)})
54 #define RCL_EventPartialSetup ((RCL_Events){ .value = (1U << 15U)})
55 #define RCL_EventRxBufferUpdate ((RCL_Events){ .value = (1U << 16U)})
56 #define RCL_EventTxBufferUpdate ((RCL_Events){ .value = (1U << 17U)})
57 #define RCL_EventHandlerCmdUpdate ((RCL_Events){ .value = (1U << 18U)})
58 #define RCL_EventCmdStepDone ((RCL_Events){ .value = (1U << 19U)})
59 #define RCL_EventStopTimesUpdated ((RCL_Events){ .value = (1U << 20U)})
60 #define RCL_EventPacketTimeout ((RCL_Events){ .value = (1U << 21U)})
61 #define RCL_EventSilentlyRestartRadio ((RCL_Events){ .value = (1U << 22U)})
62 #define RCL_EventCmdUpdateDone ((RCL_Events){ .value = (1U << 23U)})
63 #define RCL_EventCoexNoTx ((RCL_Events){ .value = (1U << 24U)})
64 #define RCL_EventCmdScheduleDone ((RCL_Events){ .value = (1U << 25U)})
65 #define RCL_EventCmdStopDone ((RCL_Events){ .value = (1U << 26U)})
67 union RCL_Events_u {
68  struct {
69  uint32_t cmdStarted : 1;
70  uint32_t lastCmdDone : 1;
71  uint32_t rxEntryAvail : 1;
72  uint32_t rxBufferFinished : 1;
73  uint32_t txBufferFinished : 1;
74  uint32_t swTriggered : 1;
75  uint32_t timerStart : 1;
76  uint32_t descheduleStop : 1;
77  uint32_t gracefulStop : 1;
78  uint32_t hardStop : 1;
79  uint32_t stopDelayed : 1;
80  uint32_t stopRejected : 1;
81  uint32_t startDelayed : 1;
82  uint32_t startRejected : 1;
83  uint32_t setup : 1;
84  uint32_t partialSetup : 1;
85  uint32_t rxBufferUpdate : 1;
86  uint32_t txBufferUpdate : 1;
87  uint32_t handlerCmdUpdate : 1;
88  uint32_t cmdStepDone : 1;
89  uint32_t stopTimesUpdated : 1;
90  uint32_t packetTimeout : 1;
91  uint32_t silentlyRestartRadio: 1;
92  uint32_t cmdUpdateDone : 1;
93  uint32_t coexNoTx : 1;
94  uint32_t cmdScheduleDone : 1;
95  uint32_t cmdStopDone : 1;
96  };
97  uint32_t value;
98 };
99 
100 #endif /* ti_drivers_rcl_RCL_Event__include */
uint32_t value
Definition: RCL_Event.h:97