Radio Control Layer (RCL)
|
Go to the documentation of this file.
33 #ifndef ti_drivers_RCL_Command_h__include
34 #define ti_drivers_RCL_Command_h__include
46 typedef RCL_Events (*
RCL_CommandHandler)(RCL_Command *cmd, LRF_Events lrfEvents, RCL_Events rclEvents);
51 typedef void (*
RCL_Callback)(RCL_Command *cmd, LRF_Events lrfEvents, RCL_Events rclEvents);
83 typedef enum RCL_CommandStatus_e {
119 #define RCL_CommandStatus_isAnyStop(x) (((x) == RCL_CommandStatus_Descheduled) || ((x) == RCL_CommandStatus_GracefulStop) || ((x) == RCL_CommandStatus_HardStop))
120 #define RCL_CommandStatus_isAnyDescheduled(x) ((x) == RCL_CommandStatus_Descheduled)
121 #define RCL_CommandStatus_isAnyGracefulStop(x) ((x) == RCL_CommandStatus_GracefulStop)
122 #define RCL_CommandStatus_isAnyHardStop(x) ((x) == RCL_CommandStatus_HardStop)
174 #define RCL_Command_Default(_id, _handler) \
178 .scheduling = RCL_Schedule_Now, \
179 .status = RCL_CommandStatus_Idle, \
180 .conflictPolicy = RCL_ConflictPolicy_AlwaysInterrupt, \
181 .allowDelay = false, \
183 .handler = _handler, \
187 .relGracefulStopTime = 0, \
188 .relHardStopTime = 0, \
191 #define RCL_Command_DefaultRuntime(_id, _handler) (RCL_Command) RCL_Command_Default(_id, _handler)
@ RCL_CommandStatus_Error_RxFifo
Definition: RCL_Command.h:110
@ RCL_CommandStatus_Connect
Definition: RCL_Command.h:100
@ RCL_CommandStatus_RxErr
Definition: RCL_Command.h:95
RCL_ConflictPolicy
Conflict resolution policy.
Definition: RCL_Command.h:152
@ RCL_CommandStatus_Suspended
Definition: RCL_Command.h:88
RCL_Callback callback
Definition: RCL_Command.h:63
@ RCL_CommandStatus_Error_MissingTxBuffer
Definition: RCL_Command.h:105
@ RCL_CommandStatus_ChannelBusy
Definition: RCL_Command.h:92
RCL_CommandStatus status
Definition: RCL_Command.h:167
Index of the tx power table.
Definition: LRFCC23X0.h:153
RCL_Events rclCallbackMask
Definition: RCL_Command.h:62
@ RCL_CommandStatus_Error_TxBufferCorruption
Definition: RCL_Command.h:106
@ RCL_CommandStatus_RejectedStart
Definition: RCL_Command.h:99
RCL_StopType
Stop types.
Definition: RCL_Command.h:129
int32_t relGracefulStopTime
Definition: RCL_Command.h:74
uint32_t relMinTime
Definition: RCL_Command.h:73
RCL_CommandTiming timing
Definition: RCL_Command.h:171
@ RCL_CommandStatus_Finished
Definition: RCL_Command.h:90
RCL_ConflictPolicy conflictPolicy
Definition: RCL_Command.h:168
@ RCL_CommandStatus_ChannelIdle
Definition: RCL_Command.h:91
@ RCL_CommandStatus_Queued
Definition: RCL_Command.h:85
static void RCL_Command_setRawTxPower(uint32_t registerSetting, uint32_t temperatureCoefficient)
Set raw TX power.
Definition: RCL_Command.h:213
@ RCL_ConflictPolicy_AlwaysInterrupt
Definition: RCL_Command.h:153
uint32_t absStartTime
Definition: RCL_Command.h:72
RCL_CommandStatus
Command status.
Definition: RCL_Command.h:83
Command timing structure.
Definition: RCL_Command.h:71
@ RCL_Schedule_Now
Definition: RCL_Command.h:143
uint16_t phyFeatures
Definition: RCL_Command.h:165
@ RCL_CommandStatus_Deferred
Definition: RCL_Command.h:89
@ RCL_StopType_Graceful
Definition: RCL_Command.h:132
@ RCL_CommandStatus_Descheduled
Definition: RCL_Command.h:98
bool allowDelay
Definition: RCL_Command.h:169
@ RCL_StopType_None
Definition: RCL_Command.h:130
@ RCL_ConflictPolicy_NeverInterrupt
Definition: RCL_Command.h:155
@ RCL_CommandStatus_Error_AlreadySubmitted
Definition: RCL_Command.h:113
RCL_CommandHandler handler
Definition: RCL_Command.h:59
@ RCL_CommandStatus_Error_RxBufferCorruption
Definition: RCL_Command.h:107
@ RCL_StopType_DescheduleOnly
Definition: RCL_Command.h:131
@ RCL_CommandStatus_MaxNak
Definition: RCL_Command.h:101
@ RCL_CommandStatus_Idle
Definition: RCL_Command.h:84
@ RCL_CommandStatus_Error_StartTooLate
Definition: RCL_Command.h:108
RCL_Client * client
Definition: RCL_Command.h:60
void LRF_setRawTxPower(uint32_t value, uint32_t temperatureCoefficient)
Definition: LRFCC23X0.c:1266
@ RCL_CommandStatus_RxTimeout
Definition: RCL_Command.h:93
@ RCL_Schedule_AbsTime
Definition: RCL_Command.h:144
void(* RCL_Callback)(RCL_Command *cmd, LRF_Events lrfEvents, RCL_Events rclEvents)
Callback function type.
Definition: RCL_Command.h:51
@ RCL_CommandStatus_Active
Definition: RCL_Command.h:87
LRF_TxPowerTable_Index RCL_Command_TxPower
Type for TX power.
Definition: RCL_Command.h:205
@ RCL_CommandStatus_Error
Definition: RCL_Command.h:102
RCL_Events(* RCL_CommandHandler)(RCL_Command *cmd, LRF_Events lrfEvents, RCL_Events rclEvents)
Command handler function type.
Definition: RCL_Command.h:46
@ RCL_CommandStatus_GracefulStop
Definition: RCL_Command.h:96
uint16_t cmdId
Definition: RCL_Command.h:164
@ RCL_CommandStatus_Error_TxFifo
Definition: RCL_Command.h:109
uint32_t relHardStopTime
Definition: RCL_Command.h:75
@ RCL_ConflictPolicy_Polite
Definition: RCL_Command.h:154
@ RCL_CommandStatus_Error_Param
Definition: RCL_Command.h:104
RCL_CommandRuntime runtime
Definition: RCL_Command.h:170
@ RCL_CommandStatus_HardStop
Definition: RCL_Command.h:97
@ RCL_CommandStatus_Error_UnknownOp
Definition: RCL_Command.h:112
Command runtime structure.
Definition: RCL_Command.h:58
RCL_ScheduleType scheduling
Definition: RCL_Command.h:166
@ RCL_CommandStatus_NoSync
Definition: RCL_Command.h:94
General command.
Definition: RCL_Command.h:163
@ RCL_CommandStatus_Error_Setup
Definition: RCL_Command.h:103
RCL_ScheduleType
Schedule type.
Definition: RCL_Command.h:142
@ RCL_CommandStatus_Scheduled
Definition: RCL_Command.h:86
@ RCL_StopType_Hard
Definition: RCL_Command.h:133
@ RCL_CommandStatus_Error_Synth
Definition: RCL_Command.h:111
LRF_Events lrfCallbackMask
Definition: RCL_Command.h:61