![]() |
Speeduino
|
A schedule for a single output channel. More...
#include <scheduler.h>

Public Types | |
| 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) | |
Public Member Functions | |
| constexpr | Schedule (counter_t &counter, compare_t &compare) |
| Construct a new Schedule object. | |
Public Attributes | |
| volatile COMPARE_TYPE | duration = 0U |
| Scheduled duration (timer ticks) | |
| volatile ScheduleStatus | Status = OFF |
| Schedule status: OFF, PENDING, STAGED, RUNNING. | |
| voidVoidCallback | pStartCallback = &nullCallback |
| Start Callback function for schedule. | |
| voidVoidCallback | 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 | |
A schedule for a single output channel.
I.e.
The type of a timer compare register (this varies between platforms)
The type of a timer counter register (this varies between platforms)
Construct a new Schedule object.
| counter | A reference to the timer counter |
| compare | A reference to the timer comparator |
| compare_t& Schedule::_compare |
**Reference**to the compare register. E.g. OCR3A
| counter_t& Schedule::_counter |
Reference to the counter register. E.g. TCNT3
| volatile COMPARE_TYPE Schedule::duration = 0U |
Scheduled duration (timer ticks)
This captures the duration of the next interval to be scheduled. I.e.
| COMPARE_TYPE Schedule::nextStartCompare = 0U |
Planned start of next schedule (when current schedule is RUNNING)
| voidVoidCallback Schedule::pEndCallback = &nullCallback |
End Callback function for schedule.
| voidVoidCallback Schedule::pStartCallback = &nullCallback |
Start Callback function for schedule.
| volatile ScheduleStatus Schedule::Status = OFF |
Schedule status: OFF, PENDING, STAGED, RUNNING.