fome-fw/firmware/controllers/algo/tps_accel_state_generated.h

111 lines
3.1 KiB
C
Raw Normal View History

#pragma once
#include "rusefi_types.h"
struct tps_accel_state_s {
2023-05-05 02:42:48 -07:00
// Fuel: TPS AE from
2023-03-27 01:38:48 -07:00
// offset 0
2024-01-19 04:02:28 -08:00
float tpsFrom = (float)0;
2023-05-05 02:42:48 -07:00
// Fuel: TPS AE to
2023-03-27 01:38:48 -07:00
// offset 4
2024-01-19 04:02:28 -08:00
float tpsTo = (float)0;
2023-05-05 02:42:48 -07:00
// Fuel: TPS AE change
2023-03-27 01:38:48 -07:00
// offset 8
2024-01-19 04:02:28 -08:00
float deltaTps = (float)0;
2023-03-27 01:38:48 -07:00
// offset 12
2024-01-19 04:02:28 -08:00
float extraFuel = (float)0;
2023-03-27 01:38:48 -07:00
// offset 16
float valueFromTable = (float)0;
2023-05-05 02:42:48 -07:00
// Fuel: TPS AE Active
2023-03-27 01:38:48 -07:00
// offset 20 bit 0
2021-12-01 21:04:17 -08:00
bool isAboveAccelThreshold : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 1
2021-12-01 21:04:17 -08:00
bool isBelowDecelThreshold : 1 {};
2023-03-27 01:38:48 -07:00
// Accel: reset time
// offset 20 bit 2
2021-12-01 21:04:17 -08:00
bool isTimeToResetAccumulator : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 3
2021-12-01 21:04:17 -08:00
bool isFractionalEnrichment : 1 {};
2023-03-27 01:38:48 -07:00
// Accel: below threshold
// offset 20 bit 4
2021-12-01 21:04:17 -08:00
bool belowEpsilon : 1 {};
2023-03-27 01:38:48 -07:00
// Accel: too short
// offset 20 bit 5
2022-01-02 10:57:58 -08:00
bool tooShort : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 6
2024-01-19 04:02:28 -08:00
bool unusedBit_20_6 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 7
2024-01-19 04:02:28 -08:00
bool unusedBit_20_7 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 8
2024-01-19 04:02:28 -08:00
bool unusedBit_20_8 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 9
2024-01-19 04:02:28 -08:00
bool unusedBit_20_9 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 10
2024-01-19 04:02:28 -08:00
bool unusedBit_20_10 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 11
2024-01-19 04:02:28 -08:00
bool unusedBit_20_11 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 12
2024-01-19 04:02:28 -08:00
bool unusedBit_20_12 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 13
2024-01-19 04:02:28 -08:00
bool unusedBit_20_13 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 14
2024-01-19 04:02:28 -08:00
bool unusedBit_20_14 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 15
2024-01-19 04:02:28 -08:00
bool unusedBit_20_15 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 16
2024-01-19 04:02:28 -08:00
bool unusedBit_20_16 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 17
2024-01-19 04:02:28 -08:00
bool unusedBit_20_17 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 18
2024-01-19 04:02:28 -08:00
bool unusedBit_20_18 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 19
2024-01-19 04:02:28 -08:00
bool unusedBit_20_19 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 20
2024-01-19 04:02:28 -08:00
bool unusedBit_20_20 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 21
2024-01-19 04:02:28 -08:00
bool unusedBit_20_21 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 22
2024-01-19 04:02:28 -08:00
bool unusedBit_20_22 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 23
2024-01-19 04:02:28 -08:00
bool unusedBit_20_23 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 24
2024-01-19 04:02:28 -08:00
bool unusedBit_20_24 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 25
2024-01-19 04:02:28 -08:00
bool unusedBit_20_25 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 26
2024-01-19 04:02:28 -08:00
bool unusedBit_20_26 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 27
2024-01-19 04:02:28 -08:00
bool unusedBit_20_27 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 28
2024-01-19 04:02:28 -08:00
bool unusedBit_20_28 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 29
2024-01-19 04:02:28 -08:00
bool unusedBit_20_29 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 30
2024-01-19 04:02:28 -08:00
bool unusedBit_20_30 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 20 bit 31
2024-01-19 04:02:28 -08:00
bool unusedBit_20_31 : 1 {};
2023-03-27 01:38:48 -07:00
// offset 24
float fractionalInjFuel = (float)0;
2023-03-27 01:38:48 -07:00
// offset 28
2024-01-19 04:02:28 -08:00
float accumulatedValue = (float)0;
2023-03-27 01:38:48 -07:00
// offset 32
2024-01-19 04:02:28 -08:00
float maxExtraPerCycle = (float)0;
2023-03-27 01:38:48 -07:00
// offset 36
2024-01-19 04:02:28 -08:00
float maxExtraPerPeriod = (float)0;
2023-03-27 01:38:48 -07:00
// offset 40
2024-01-19 04:02:28 -08:00
float maxInjectedPerPeriod = (float)0;
2023-03-27 01:38:48 -07:00
// offset 44
int cycleCnt = (int)0;
};
2022-04-17 13:30:07 -07:00
static_assert(sizeof(tps_accel_state_s) == 48);
2024-01-19 04:02:28 -08:00
static_assert(offsetof(tps_accel_state_s, tpsFrom) == 0);
static_assert(offsetof(tps_accel_state_s, tpsTo) == 4);
static_assert(offsetof(tps_accel_state_s, deltaTps) == 8);
static_assert(offsetof(tps_accel_state_s, extraFuel) == 12);
static_assert(offsetof(tps_accel_state_s, valueFromTable) == 16);
static_assert(offsetof(tps_accel_state_s, fractionalInjFuel) == 24);
static_assert(offsetof(tps_accel_state_s, accumulatedValue) == 28);
static_assert(offsetof(tps_accel_state_s, maxExtraPerCycle) == 32);
static_assert(offsetof(tps_accel_state_s, maxExtraPerPeriod) == 36);
static_assert(offsetof(tps_accel_state_s, maxInjectedPerPeriod) == 40);
static_assert(offsetof(tps_accel_state_s, cycleCnt) == 44);