2021-12-16 11:29:39 -08:00
|
|
|
#pragma once
|
|
|
|
#include "rusefi_types.h"
|
|
|
|
struct launch_control_state_s {
|
2023-03-27 01:38:48 -07:00
|
|
|
// offset 0
|
2021-12-16 11:29:39 -08:00
|
|
|
int retardThresholdRpm = (int)0;
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 0
|
2021-12-16 11:29:39 -08:00
|
|
|
bool combinedConditions : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 1
|
2021-12-16 11:29:39 -08:00
|
|
|
bool launchActivatePinState : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 2
|
2021-12-16 11:29:39 -08:00
|
|
|
bool isLaunchCondition : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 3
|
2022-01-23 18:55:57 -08:00
|
|
|
bool isSwitchActivated : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 4
|
2022-01-23 18:55:57 -08:00
|
|
|
bool isClutchActivated : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 5
|
2022-01-24 18:04:47 -08:00
|
|
|
bool isValidInputPin : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 6
|
2022-01-24 18:04:47 -08:00
|
|
|
bool activateSwitchCondition : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 7
|
2022-01-24 18:04:47 -08:00
|
|
|
bool rpmCondition : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 8
|
2022-01-24 18:04:47 -08:00
|
|
|
bool speedCondition : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 9
|
2022-01-24 18:04:47 -08:00
|
|
|
bool tpsCondition : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 10
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_10 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 11
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_11 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 12
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_12 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 13
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_13 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 14
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_14 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 15
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_15 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 16
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_16 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 17
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_17 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 18
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_18 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 19
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_19 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 20
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_20 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 21
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_21 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 22
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_22 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 23
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_23 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 24
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_24 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 25
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_25 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 26
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_26 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 27
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_27 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 28
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_28 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 29
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_29 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 30
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_30 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
|
|
|
// offset 4 bit 31
|
2022-01-24 18:04:47 -08:00
|
|
|
bool unusedBit_11_31 : 1 {};
|
2023-03-27 01:38:48 -07:00
|
|
|
|
2021-12-16 11:29:39 -08:00
|
|
|
};
|
2022-04-17 13:30:07 -07:00
|
|
|
static_assert(sizeof(launch_control_state_s) == 8);
|
2021-12-16 11:29:39 -08:00
|
|
|
|