Speeduino
Loading...
Searching...
No Matches
schedule_state_machine.h
Go to the documentation of this file.
1#pragma once
2
3#include "scheduler.h"
4
33
49
66
75
76
static TIntegral readSerialIntegralTimeout(void)
Reads an integral type, timing out if necessary.
Definition comms.cpp:173
void(* scheduleStateTranstionFunc)(Schedule *)
The type of function that is called during a state transition. Captures the actions to take as a resu...
Definition schedule_state_machine.h:32
void defaultRunningToOff(Schedule *schedule)
Default action for RUNNING to OFF state transition.
void defaultRunningToPending(Schedule *schedule)
Default action for RUNNING to PENDING state transition.
void movetoNextState(Schedule &schedule, scheduleStateTranstionFunc pendingToRunning, scheduleStateTranstionFunc runningToOff, scheduleStateTranstionFunc runningToPending)
The engine/pump that moves a schedule through it's various timer driven states.
void defaultPendingToRunning(Schedule *schedule)
Default action for PENDING to RUNNING state transition.
scheduleStateTranstionFunc pendingToRunning
Definition schedule_state_machine.cpp:30
scheduleStateTranstionFunc scheduleStateTranstionFunc runningToOff
Definition schedule_state_machine.cpp:31
A schedule for a single output channel.
Definition scheduler.h:107