Member Variables

Member variables of the main class.

I think these are self-explanatory.

time_ms_t entryTime = 0;  //the entry point of a task, returned by millis()
time_ms_t exitTime = 0; //the exit point of a task, returned by millis()
time_ms_t elapsedTime = 0;  //elapsed time since the last task execution
uint64_t intervalCounter = 0; //how many intervals have been passed
uint64_t sleepIntervalCounter = 0; //how many intervals have been passed after disabling/suspending the task
uint64_t executionCounter = 0; //how many times the task has been executed
uint64_t iterationCounter = 0; //how many times the iteration set has been executed

uint32_t iterations = 0;  //how many times a task has to be executed, for each activation
uint32_t iterationsExtended = 0;  //how many times a task has to be executed, for each activation
uint8_t taskMode = PT_MODE_EPO;  //the execution mode of a task
uint8_t sleepMode = PT_SLEEP_DISABLE; //default is disable
uint8_t intervalCount;  //how many intervals have been passed
time_ms_t* intervalList;  //a pointer to array of intervals
uint8_t intervalIndex = 0;  //the position in the interval list
uint32_t skipInterval = 0;  //number of intervals to skip
uint32_t skipIteration = 0; //number of iterations to skip
time_ms_t skipTime = 0; //time to skip before running a task

bool enabled = true;  //a task is allowed to run or not
bool taskStarted = false; //a task has started an execution cycle
bool cycleStarted = false; //a task has started an interval cycle
bool suspended = false; //a task is prevented from running until further activation
bool iterationEnded = false;  //end of an iteration set
bool running = false; //a task is running
bool runState;  //the current execution state of a task

bool inputError = false;  //if any user input parameters are wrong
bool skipIntervalSet = false; //if skip interval was set
bool skipIterationSet = false;  //if skip iteration was set
bool skipTimeSet = false; //if skip time was set

Last updated