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

A fuel injection schedule. More...

#include <scheduler.h>

Inheritance diagram for FuelSchedule:
Inheritance graph
[legend]
Collaboration diagram for FuelSchedule:
Collaboration graph
[legend]

Public Member Functions

void reset (void) override
 
constexpr Schedule (counter_t &counter, compare_t &compare)
 Construct a new Schedule object.
 
- Public Member Functions inherited from Schedule
constexpr Schedule (counter_t &counter, compare_t &compare)
 Construct a new Schedule object.
 

Public Attributes

uint16_t channelDegrees = 0U
 The number of crank degrees until cylinder is at TDC

 
uint16_t pw = 0U
 Pulse width in uS.
 
- Public Attributes inherited from Schedule
volatile COMPARE_TYPE _duration = 0U
 Scheduled duration (timer ticks)
 
volatile ScheduleStatus _status = OFF
 Schedule status: OFF, PENDING, STAGED, RUNNING.
 
callback _pStartCallback = &nullCallback
 Start Callback function for schedule.
 
callback _pEndCallback = &nullCallback
 End Callback function for schedule.
 
COMPARE_TYPE _nextStartCompare = 0U
 Planned start of next schedule (when current schedule is RUNNING)
 
counter_t_counter
 Reference to the counter register. E.g. TCNT3
 
compare_t_compare
 **Reference**to the compare register. E.g. OCR3A
 

Additional Inherited Members

- Public Types inherited from Schedule
using counter_t = decltype(FUEL1_COUNTER)
 The type of a timer counter register (this varies between platforms)
 
using compare_t = decltype(FUEL1_COMPARE)
 The type of a timer compare register (this varies between platforms)
 
using callback = void(*)(void)
 

Detailed Description

A fuel injection schedule.

Goal is to open & close the injector as accurately as possible.

<--------------- Delay ---------------><---- Injecting ---->
^ ^
static TIntegral readSerialIntegralTimeout(void)
Reads an integral type, timing out if necessary.
Definition comms.cpp:175

Member Function Documentation

◆ reset()

void FuelSchedule::reset ( void  )
overridevirtual

Reimplemented from Schedule.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Schedule()

constexpr Schedule::Schedule ( counter_t counter,
compare_t compare 
)
inlineconstexpr

Construct a new Schedule object.

Parameters
counterA reference to the timer counter
compareA reference to the timer comparator

Member Data Documentation

◆ channelDegrees

uint16_t FuelSchedule::channelDegrees = 0U

The number of crank degrees until cylinder is at TDC

◆ pw

uint16_t FuelSchedule::pw = 0U

Pulse width in uS.


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