Speeduino
|
The statuses struct and related defines. More...
Go to the source code of this file.
Classes | |
struct | statuses |
The status struct with current values for all 'live' variables. More... | |
Typedefs | |
using | byte = uint8_t |
Functions | |
static bool | HasAnySyncUnsafe (const statuses &status) |
Non-atomic version of HasAnySync. **Should only be called in an ATOMIC() block***. | |
static bool | HasAnySync (const statuses &status) |
The statuses struct and related defines.
#define BIT_AIRCON_CLT_LOCKOUT 5 |
#define BIT_AIRCON_COMPRESSOR 1 |
#define BIT_AIRCON_FAN 6 |
#define BIT_AIRCON_REQUEST 0 |
#define BIT_AIRCON_RPM_LOCKOUT 2 |
#define BIT_AIRCON_TPS_LOCKOUT 3 |
#define BIT_AIRCON_TURNING_ON 4 |
#define BIT_AIRCON_UNUSED8 7 |
#define BIT_ENGINE_ACC 4 |
#define BIT_ENGINE_ASE 2 |
#define BIT_ENGINE_CRANK 1 |
#define BIT_ENGINE_DCC 5 |
#define BIT_ENGINE_MAPACC 6 |
#define BIT_ENGINE_MAPDCC 7 |
#define BIT_ENGINE_RUN 0 |
#define BIT_ENGINE_WARMUP 3 |
#define BIT_STATUS1_BOOSTCUT 5 |
#define BIT_STATUS1_DFCO 4 |
#define BIT_STATUS1_INJ1 0 |
#define BIT_STATUS1_INJ2 1 |
#define BIT_STATUS1_INJ3 2 |
#define BIT_STATUS1_INJ4 3 |
#define BIT_STATUS1_TOOTHLOG1READY 6 |
#define BIT_STATUS1_TOOTHLOG2READY 7 |
#define BIT_STATUS2_BOOSTCUT 4 |
#define BIT_STATUS2_ERROR 5 |
#define BIT_STATUS2_HLAUNCH 0 |
#define BIT_STATUS2_HRDLIM 2 |
#define BIT_STATUS2_IDLE 6 |
#define BIT_STATUS2_SFTLIM 3 |
#define BIT_STATUS2_SLAUNCH 1 |
#define BIT_STATUS2_SYNC 7 |
#define BIT_STATUS3_FUEL2_ACTIVE 2 |
#define BIT_STATUS3_HALFSYNC 4 |
#define BIT_STATUS3_NITROUS 1 |
#define BIT_STATUS3_NSQUIRTS1 5 |
#define BIT_STATUS3_RESET_PREVENT 0 |
#define BIT_STATUS3_UNUSED1 6 |
#define BIT_STATUS3_UNUSED2 7 |
#define BIT_STATUS3_VSS_REFRESH 3 |
#define BIT_STATUS4_ALLOW_LEGACY_COMMS 7 |
#define BIT_STATUS4_BURNPENDING 4 |
#define BIT_STATUS4_COMMS_COMPAT 6 |
#define BIT_STATUS4_FAN 3 |
#define BIT_STATUS4_STAGING_ACTIVE 5 |
#define BIT_STATUS4_VVT1_ERROR 1 |
#define BIT_STATUS4_VVT2_ERROR 2 |
#define BIT_STATUS4_WMI_EMPTY 0 |
#define BIT_STATUS5_FLATSH 0 |
#define BIT_STATUS5_FLATSS 1 |
#define BIT_STATUS5_KNOCK_ACTIVE 3 |
#define BIT_STATUS5_KNOCK_PULSE 4 |
#define BIT_STATUS5_SPARK2_ACTIVE 2 |
#define BIT_STATUS5_UNUSED6 5 |
#define BIT_STATUS5_UNUSED7 6 |
#define BIT_STATUS5_UNUSED8 7 |
#define ENGINE_PROTECT_BIT_AFR 3 |
#define ENGINE_PROTECT_BIT_COOLANT 4 |
#define ENGINE_PROTECT_BIT_MAP 1 |
#define ENGINE_PROTECT_BIT_OIL 2 |
#define ENGINE_PROTECT_BIT_RPM 0 |