CALID.h - aalesv/2boost GitHub Wiki
This file contains all symbols specific to particular CALID
Required symbols
CALID
This is CAL ID of ROM. Used in VERSION
constant. Must be enclosed in quotes.
ORIG_CALC_3D_UINT_TO_FLOAT_FUNCTION_ADDRESS
This is ROM's calculate 3D table function address.
ORIG_CALC_2D_FLOAT_TO_FLOAT_FUNCTION_ADDRESS
This is ROM's calculate 2D table (with float number axis and float data) function address. Usually the same as ORIG_CALC_2D_UINT_TO_FLOAT_FUNCTION_ADDRESS
.
ORIG_CALC_2D_UINT_TO_FLOAT_FUNCTION_ADDRESS
This is ROM's calculate 2D table (with float number axis and 8-bit or 16-bit integer data) function address. Usually the same as ORIG_CALC_2D_FLOAT_TO_FLOAT_FUNCTION_ADDRESS
.
P_CRUISE_STATE_ADDRESS
Cruise state variable RAM address.
P_CRUISE_STATE
Pointer to cruise state RAM variable.
P_CRUISE_STATE_MASK_CRUISE_ENABLED
Bit mask for cruise enabled state. Used in later ROMs. Usually 1
.
P_CRUISE_STATE_MASK_CRUISE_DISABLED
Bit mask for cruise disabled state. Used in earlier ROMs. Usually 8
.
P_SI_DRVIE_STATE_ADDRESS
SI-Drive switch state RAM address.
P_SI_DRVIE_STATE
Pointer to SI-Drive switch state RAM variable.
RAM_HOLE
RAM address where 2Boost variables will be placed.
Optional symbols
3D Tables
Keep in mind that at least one 3D or 2D table must be defined.
ORIG_TABLE_TARGET_BOOST_ADDRESS
ROM's Target Boost table address.
TABLE_TARGET_BOOST_X_COUNT
Target Boost table X elements count.
TABLE_TARGET_BOOST_Y_COUNT
Target Boost table Y elements count.
TABLE_TARGET_BOOST_DATA_TYPE
Target Boost table data type. Usually 0x8000000
which means uint16
.
TABLE_TARGET_BOOST_MULTIPLIER
Target Boost table data multiplier. Usually 1.0
.
TABLE_TARGET_BOOST_OFFSET
Target Boost table data offset. Usually 0.0
2D tables
ORIG_TABLE_THROTTLE_TIP_IN_ENRICHMENT_A_ADDRESS
ROM's Throttle Tip-in Enrichment table A address.
ORIG_TABLE_THROTTLE_TIP_IN_ENRICHMENT_B_ADDRESS
ROM's Throttle Tip-in Enrichment table B address.
Speed Density
SPEED_DENSITY
When this symbol is defined, Speed Density support is enabled.
ORIG_TABLE_MAF_ADDRESS
ROM's MAF table address
P_MANIFOLD_PRESSURE_ADDRESS
Manifold pressure RAM variable address. Can be found in SSM Routine P7.
P_MANIFOLD_PRESSURE
Pointer to manifold pressure variable RAM.
P_ENGINE_SPEED_ADDRESS
Engine speed RAM variable address. Can be found in SSM Routine P8.
P_ENGINE_SPEED
Pointer to engine speed RAM variable.
P_IAT_ADDRESS
Intake air temperature variable RAM address. Can be found in SSM Routine P11.
P_IAT
Pointer to Intake air temperature RAM variable.
P_THROTTLE_ANGLE_CHANGE_ADDRESS
Throttle angle change variable RAM address.
P_THROTTLE_ANGLE_CHANGE
Pointer to throttle angle change variable.
Overtake button
P_CRUISE_CANCEL_SWITCH_ADDRESS
Cruise cancel button state variable RAM address.
P_CRUISE_CANCEL_SWITCH
Pointer to cruise cancel button state RAM variable.
P_CRUISE_CANCEL_SWITCH_MASK
Bit mask for cruise cancel button. Usually 0x40
for most of earlier ROMs and 1
for later ROMs.
P_ACCELERATOR_PEDAL_ANGLE_ADDRESS
Accelerator pedal angle variable RAM address.
P_ACCELERATOR_PEDAL_ANGLE
Pointer to accelerator pedal angle variable.
P_BRAKE_PEDAL_SWITCH_ADDRESS
Brake pedal switch variale RAM address.
P_BRAKE_PEDAL_SWITCH
Pointer to brake pedal switch variable.
CEL Flash
P_ENGINE_LOAD_ADDRESS
Engine load variable RAM address.
P_ENGINE_LOAD
Pointer to engine load variable.
P_FBKC_ADDRESS
Feedback knock correction variable RAM address.
P_FBKC
Pointer to feedback knock correction variable.
ORIG_CEL_TRIGGER_OUTER_FUNCTION_ADDRESS
This is address of function that contains call of ROM's CEL trigger function. Interception of CEL trigger function itself is impossible by technical reason.
P_CEL_LIGHT_STATUS_OEM_ADDRESS
ROM's CEL dashboard light variable address.
P_CEL_LIGHT_STATUS_OEM
Pointer to ROM's CEL dashboard light variable. This variable is used to copy ROM CEL status to 2boot internal variable to implement CEL flashing correctly. When flash hacks enabled, ROM does not use this variable to turn on and off CEL light.