Speeduino
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
IgnitionSchedule Struct Reference

#include <scheduler.h>

Public Types

using counter_t = decltype(IGN1_COUNTER)
 
using compare_t = decltype(IGN1_COMPARE)
 

Public Member Functions

 IgnitionSchedule (counter_t &counter, compare_t &compare, void(&_pTimerDisable)(), void(&_pTimerEnable)())
 

Public Attributes

volatile unsigned long duration
 Scheduled duration (uS ?)
 
volatile ScheduleStatus Status
 Schedule status: OFF, PENDING, STAGED, RUNNING.
 
void(* pStartCallback )(void)
 Start Callback function for schedule.
 
void(* pEndCallback )(void)
 End Callback function for schedule.
 
volatile unsigned long startTime
 
volatile COMPARE_TYPE startCompare
 The counter value of the timer when this will start.
 
volatile COMPARE_TYPE endCompare
 The counter value of the timer when this will end.
 
COMPARE_TYPE nextStartCompare
 Planned start of next schedule (when current schedule is RUNNING)
 
COMPARE_TYPE nextEndCompare
 Planned end of next schedule (when current schedule is RUNNING)
 
volatile bool hasNextSchedule = false
 Enable flag for planned next schedule (when current schedule is RUNNING)
 
volatile bool endScheduleSetByDecoder = false
 
counter_tcounter
 
compare_tcompare
 
void(&) pTimerDisable ()
 
void(&) pTimerEnable ()
 

Detailed Description

Ignition schedule.

Member Typedef Documentation

◆ compare_t

◆ counter_t

Constructor & Destructor Documentation

◆ IgnitionSchedule()

IgnitionSchedule::IgnitionSchedule ( counter_t counter,
compare_t compare,
void(&)()  _pTimerDisable,
void(&)()  _pTimerEnable 
)
inline

Member Data Documentation

◆ compare

compare_t& IgnitionSchedule::compare

◆ counter

counter_t& IgnitionSchedule::counter

◆ duration

volatile unsigned long IgnitionSchedule::duration

Scheduled duration (uS ?)

◆ endCompare

volatile COMPARE_TYPE IgnitionSchedule::endCompare

The counter value of the timer when this will end.

◆ endScheduleSetByDecoder

volatile bool IgnitionSchedule::endScheduleSetByDecoder = false

◆ hasNextSchedule

volatile bool IgnitionSchedule::hasNextSchedule = false

Enable flag for planned next schedule (when current schedule is RUNNING)

◆ nextEndCompare

COMPARE_TYPE IgnitionSchedule::nextEndCompare

Planned end of next schedule (when current schedule is RUNNING)

◆ nextStartCompare

COMPARE_TYPE IgnitionSchedule::nextStartCompare

Planned start of next schedule (when current schedule is RUNNING)

◆ pEndCallback

void(* IgnitionSchedule::pEndCallback) (void)

End Callback function for schedule.

◆ pStartCallback

void(* IgnitionSchedule::pStartCallback) (void)

Start Callback function for schedule.

◆ pTimerDisable

void(&) IgnitionSchedule::pTimerDisable()

◆ pTimerEnable

void(&) IgnitionSchedule::pTimerEnable()

◆ startCompare

volatile COMPARE_TYPE IgnitionSchedule::startCompare

The counter value of the timer when this will start.

◆ startTime

volatile unsigned long IgnitionSchedule::startTime

The system time (in uS) that the schedule started, used by the overdwell protection in timers.ino

◆ Status

volatile ScheduleStatus IgnitionSchedule::Status

Schedule status: OFF, PENDING, STAGED, RUNNING.


The documentation for this struct was generated from the following file: