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

#include <scheduler.h>

Public Types

using counter_t = decltype(FUEL1_COUNTER)
 
using compare_t = decltype(FUEL1_COMPARE)
 

Public Member Functions

 FuelSchedule (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.
 
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.
 
void(* pStartFunction )(void)
 
void(* pEndFunction )(void)
 
COMPARE_TYPE nextStartCompare
 
COMPARE_TYPE nextEndCompare
 
volatile bool hasNextSchedule = false
 
counter_tcounter
 
compare_tcompare
 
void(&) pTimerDisable ()
 
void(&) pTimerEnable ()
 

Detailed Description

Fuel injection schedule. Fuel schedules don't use the callback pointers, or the startTime/endScheduleSetByDecoder variables. They are removed in this struct to save RAM.

Member Typedef Documentation

◆ compare_t

◆ counter_t

Constructor & Destructor Documentation

◆ FuelSchedule()

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

Member Data Documentation

◆ compare

compare_t& FuelSchedule::compare

◆ counter

counter_t& FuelSchedule::counter

◆ duration

volatile unsigned long FuelSchedule::duration

Scheduled duration (uS ?)

◆ endCompare

volatile COMPARE_TYPE FuelSchedule::endCompare

The counter value of the timer when this will end.

◆ hasNextSchedule

volatile bool FuelSchedule::hasNextSchedule = false

◆ nextEndCompare

COMPARE_TYPE FuelSchedule::nextEndCompare

◆ nextStartCompare

COMPARE_TYPE FuelSchedule::nextStartCompare

◆ pEndFunction

void(* FuelSchedule::pEndFunction) (void)

◆ pStartFunction

void(* FuelSchedule::pStartFunction) (void)

◆ pTimerDisable

void(&) FuelSchedule::pTimerDisable()

◆ pTimerEnable

void(&) FuelSchedule::pTimerEnable()

◆ startCompare

volatile COMPARE_TYPE FuelSchedule::startCompare

The counter value of the timer when this will start.

◆ Status

volatile ScheduleStatus FuelSchedule::Status

Schedule status: OFF, PENDING, STAGED, RUNNING.


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