|
| void | initialiseSchedulers (void) |
| |
| void | setFuelSchedule (struct Schedule *targetSchedule, unsigned long timeout, unsigned long duration) |
| |
| void | setFuelSchedule1 (unsigned long timeout, unsigned long duration) |
| |
| void | setFuelSchedule2 (unsigned long timeout, unsigned long duration) |
| |
| void | setFuelSchedule3 (unsigned long timeout, unsigned long duration) |
| |
| void | setFuelSchedule4 (unsigned long timeout, unsigned long duration) |
| |
| void | setIgnitionSchedule1 (void(*startCallback)(), unsigned long timeout, unsigned long duration, void(*endCallback)()) |
| |
| void | refreshIgnitionSchedule1 (unsigned long timeToEnd) |
| |
| void | setIgnitionSchedule2 (void(*startCallback)(), unsigned long timeout, unsigned long duration, void(*endCallback)()) |
| |
| void | setIgnitionSchedule3 (void(*startCallback)(), unsigned long timeout, unsigned long duration, void(*endCallback)()) |
| |
| void | setIgnitionSchedule4 (void(*startCallback)(), unsigned long timeout, unsigned long duration, void(*endCallback)()) |
| |
| void | setIgnitionSchedule5 (void(*startCallback)(), unsigned long timeout, unsigned long duration, void(*endCallback)()) |
| |
| void | setIgnitionSchedule6 (void(*startCallback)(), unsigned long timeout, unsigned long duration, void(*endCallback)()) |
| |
| void | setIgnitionSchedule7 (void(*startCallback)(), unsigned long timeout, unsigned long duration, void(*endCallback)()) |
| |
| void | setIgnitionSchedule8 (void(*startCallback)(), unsigned long timeout, unsigned long duration, void(*endCallback)()) |
| |
| void | beginInjectorPriming (void) |
| |
| void | disablePendingFuelSchedule (byte channel) |
| |
| void | disablePendingIgnSchedule (byte channel) |
| |
Injector and Ignition (on/off) scheduling (functions). There is usually 8 functions for cylinders 1-8 with same naming pattern.
Scheduling structures
Structures FuelSchedule and Schedule describe (from scheduler.h) describe the scheduling info for Fuel and Ignition respectively. They contain duration, current activity status, start timing, end timing, callbacks to carry out action, etc.
Scheduling Functions
For Injection:
- setFuelSchedule*(tout,dur) - Setup schedule for (next) injection on the channel
- inj*StartFunction() - Execute start of injection (Interrupt handler)
- inj*EndFunction() - Execute end of injection (interrupt handler)
For Ignition (has more complex schedule setup):
- setIgnitionSchedule*(cb_st,tout,dur,cb_end) - Setup schedule for (next) ignition on the channel
- ign*StartFunction() - Execute start of ignition (Interrupt handler)
- ign*EndFunction() - Execute end of ignition (Interrupt handler)
| void initialiseSchedulers |
( |
void |
| ) |
|
< The number of crank degrees until cylinder 1 is at TDC (This is obviously 0 for virtually ALL engines, but there's some weird ones)
< The number of crank degrees until cylinder 2 (and 5/6/7/8) is at TDC
< The number of crank degrees until cylinder 2 (and 5/6/7/8) is at TDC
< The number of crank degrees until cylinder 2 (and 5/6/7/8) is at TDC
< The number of crank degrees until cylinder 1 is at TDC (This is obviously 0 for virtually ALL engines, but there's some weird ones)
< The number of crank degrees until cylinder 2 (and 5/6/7/8) is at TDC
< The number of crank degrees until cylinder 3 (and 5/6/7/8) is at TDC
< The number of crank degrees until cylinder 4 (and 5/6/7/8) is at TDC