Radio Control Layer (RCL)
RCL_Scheduler.c File Reference
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <ti/log/Log.h>
#include <ti/drivers/dpl/HwiP.h>
#include <ti/drivers/rcl/hal/hal.h>
#include <ti/drivers/rcl/RCL_Command.h>
#include <ti/drivers/rcl/RCL_Scheduler.h>
#include <ti/drivers/rcl/RCL_Debug.h>
#include <ti/drivers/rcl/LRF.h>
+ Include dependency graph for RCL_Scheduler.c:

Enumerations

enum  SchedulerStartType { SchedulerNoStart = 0, SchedulerStartNow = 1, SchedulerStartAbsTimeAllowDelay = 2, SchedulerStartAbsTimeNoDelay = 3 }
 

Functions

static RCL_CommandStatus rclSchedulerProcessCmdStartStopTime (const RCL_Command *cmd, uint32_t startTime, SchedulerStartType startType)
 
static void rclSchedulerFindEarliestStopTime (RCL_SchedulerStopInfo *stopInfo)
 
RCL_CommandStatus RCL_Scheduler_setStartStopTime (const RCL_Command *cmd)
 Set start and stop time for LRF based on command. More...
 
RCL_CommandStatus RCL_Scheduler_setStartStopTimeEarliestStart (const RCL_Command *cmd, uint32_t earliestStartTime)
 Set start and stop time for LRF based on command with earliest start time. More...
 
RCL_CommandStatus RCL_Scheduler_setCmdStopTimeNoStartTrigger (const RCL_Command *cmd)
 Set stop time for LRF based on command when it does not need a start trigger. More...
 
RCL_CommandStatus RCL_Scheduler_setNewStartNow (void)
 Set new start time for LRF to now, after a previous start. More...
 
RCL_CommandStatus RCL_Scheduler_setNewStartAbsTime (uint32_t startTime)
 Set new start time for LRF to given absolute time, after a previous start. More...
 
RCL_CommandStatus RCL_Scheduler_setNewStartRelTime (uint32_t relStartTime)
 Set new start time for LRF to given time relative to previous LRF start. More...
 
RCL_StopType RCL_Scheduler_setStopTimes (void)
 Function to apply relevant stop times. More...
 
bool RCL_Scheduler_isLater (uint32_t refTime, uint32_t chkTime)
 Find if a time instant occurs after another, allowing wrap-around. More...
 
int32_t RCL_Scheduler_delta (uint32_t refTime, uint32_t chkTime)
 Find the time difference between two times, allowing wrap-around. More...
 
RCL_StopType RCL_Scheduler_setSchedStopTime (RCL_SchedulerStopInfo *stopInfo, uint32_t schedStopTime)
 Set scheduler stop time. More...
 
bool RCL_Scheduler_postEvent (RCL_Command_Handle c, RCL_Events e)
 Post event to command handler. More...
 

Variables

RCL_SchedulerState rclSchedulerState
 

Enumeration Type Documentation

◆ SchedulerStartType

Enumerator
SchedulerNoStart 
SchedulerStartNow 
SchedulerStartAbsTimeAllowDelay 
SchedulerStartAbsTimeNoDelay 

Function Documentation

◆ rclSchedulerProcessCmdStartStopTime()

◆ rclSchedulerFindEarliestStopTime()

Variable Documentation

◆ rclSchedulerState