Speeduino
Loading...
Searching...
No Matches
resetControl.h
Go to the documentation of this file.
1
7#pragma once
8
9#include "statuses.h"
10
13{
15 Disabled = 0U,
19 PreventAlways = 2U,
21 SerialCommand = 3U
22};
23
26
29
31bool isResetPreventActive(void);
32
static TIntegral readSerialIntegralTimeout(void)
Reads an integral type, timing out if necessary.
Definition comms.cpp:175
ResetControlMode getResetControlMode(void)
Get the reset control mode as set during initialisation.
Definition resetControl.cpp:8
bool isResetPreventActive(void)
Check if reset prevention is active.
Definition resetControl.cpp:13
void initialiseResetControl(ResetControlMode resetControlMode, uint8_t resetPin)
Initialise the reset control system, with the given mode and reset pin.
Definition resetControl.cpp:18
void matchResetControlToEngineState(const statuses &current)
Match reset control to the current engine state.
Definition resetControl.cpp:36
ResetControlMode
Available reset control modes.
Definition resetControl.h:13
const config4 statuses & current
Definition scheduler_ignition_controller.cpp:367
The statuses struct and related defines.
The status struct with current values for all 'live' variables.
Definition statuses.h:36