![]() |
Speeduino
|
Functions | |
| ResetControlMode | getResetControlMode (void) |
| Get the reset control mode as set during initialisation. | |
| bool | isResetPreventActive (void) |
| Check if reset prevention is active. | |
| void | initialiseResetControl (ResetControlMode resetControlMode, uint8_t resetPin) |
| Initialise the reset control system, with the given mode and reset pin. | |
| void | matchResetControlToEngineState (const statuses ¤t) |
| Match reset control to the current engine state. | |
Variables | |
| static ResetControlMode | _resetControl = ResetControlMode::Disabled |
| static uint8_t | _resetPin |
| static bool | _resetPreventActive = false |
| ResetControlMode getResetControlMode | ( | void | ) |
Get the reset control mode as set during initialisation.

| void initialiseResetControl | ( | ResetControlMode | resetControlMode, |
| uint8_t | resetPin | ||
| ) |
Initialise the reset control system, with the given mode and reset pin.


Check if reset prevention is active.

Match reset control to the current engine state.
When the mode is set to PreventWhenRunning, this will set the reset pin HIGH (to prevent reset) if the engine is running, and LOW otherwise. This should be called regularly in the main loop.


|
static |
|
static |