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 {
166 #define RCL_Command_Default(_id, _handler) \
170 .scheduling = RCL_Schedule_Now, \
171 .status = RCL_CommandStatus_Idle, \
172 .conflictPolicy = RCL_ConflictPolicy_AlwaysInterrupt, \
173 .allowDelay = false, \
175 .handler = _handler, \
179 .relGracefulStopTime = 0, \
180 .relHardStopTime = 0, \
183 #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:144
@ 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:159
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:121
int32_t relGracefulStopTime
Definition: RCL_Command.h:74
uint32_t relMinTime
Definition: RCL_Command.h:73
RCL_CommandTiming timing
Definition: RCL_Command.h:163
@ RCL_CommandStatus_Finished
Definition: RCL_Command.h:90
RCL_ConflictPolicy conflictPolicy
Definition: RCL_Command.h:160
@ 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:205
@ RCL_ConflictPolicy_AlwaysInterrupt
Definition: RCL_Command.h:145
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:135
uint16_t phyFeatures
Definition: RCL_Command.h:157
@ RCL_CommandStatus_Deferred
Definition: RCL_Command.h:89
@ RCL_StopType_Graceful
Definition: RCL_Command.h:124
@ RCL_CommandStatus_Descheduled
Definition: RCL_Command.h:98
bool allowDelay
Definition: RCL_Command.h:161
@ RCL_StopType_None
Definition: RCL_Command.h:122
@ RCL_ConflictPolicy_NeverInterrupt
Definition: RCL_Command.h:147
@ 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:123
@ 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:1252
@ RCL_CommandStatus_RxTimeout
Definition: RCL_Command.h:93
@ RCL_Schedule_AbsTime
Definition: RCL_Command.h:136
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:197
@ 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:156
@ RCL_CommandStatus_Error_TxFifo
Definition: RCL_Command.h:109
uint32_t relHardStopTime
Definition: RCL_Command.h:75
@ RCL_ConflictPolicy_Polite
Definition: RCL_Command.h:146
@ RCL_CommandStatus_Error_Param
Definition: RCL_Command.h:104
RCL_CommandRuntime runtime
Definition: RCL_Command.h:162
@ 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:158
@ RCL_CommandStatus_NoSync
Definition: RCL_Command.h:94
General command.
Definition: RCL_Command.h:155
@ RCL_CommandStatus_Error_Setup
Definition: RCL_Command.h:103
RCL_ScheduleType
Schedule type.
Definition: RCL_Command.h:134
@ RCL_CommandStatus_Scheduled
Definition: RCL_Command.h:86
@ RCL_StopType_Hard
Definition: RCL_Command.h:125
@ RCL_CommandStatus_Error_Synth
Definition: RCL_Command.h:111
LRF_Events lrfCallbackMask
Definition: RCL_Command.h:61