Skip to content

Functions

karter16 edited this page Feb 17, 2025 · 17 revisions

Master Functions

Note: Function names in all caps are known (from documentation, etc.) to be the exact function name. Function names in lowercase or mixed case are best-guesses.

Function Name Address Notes
0x000003e8 Sets up the SIM (System Integration Module)
CTM4_Init 0x00010c2e Initialises the CTM4 (Configurable Timer Module version 4)
DPR_Sync 0x00011472 This function reads/writes variables from/to the DPR (Dual Ported RAM) which is used for non-critical sharing of variables between the master and slave CPUs
EGAS_SK_PCNTRL_Monitor_Partner_Processor_Timer 0x000119a8 This function performs monitoring of the partner processor timer as part of the EGAS Safety Concept module
EGAS_SK_Program_Execution_Control 0x00011a38 This function performs program execution control as part of the EGAS Safety Concept module
task_10ms 0x00012e14 The 10ms task
Calculate_N_Variables 0x00018890 Calculates N (rpm) related variables like N_SEGMENT, D_N_SEGMENT, N40, D_N40, etc.
CSL_MAP_Pressure_???_FUN_0001a6aa 0x0001a6aa This function is related to CSL MAP sensor processing
CSL_ML_From_MAP_Pressure_???_FUN_0001a8a4 0x0001a8a4 Seems to be a function that validates that the CSL MAP sensor value is within bounds
0x0001a9d2 Seems to be the function that determines the current AlphaN value
0x0001dd56 Determines which variable speed segments on the dash to illuminate based on oil temp
0x0001ddfc Seems to be a variation on 0x0001dd56. Unsure yet why there are two different functions
Calculate_RF_SK_WDK_???_FUN_00021b48 0x00021b48 Calculates RF_SK_WDK1 and RF_SK_WDK2, CSL MAP Sensor inputs into this.
EGAS_SOLL_BERECH 0x00022934 Final calculation of egas_soll
EGAS_SOLL_BESTIMM 0x00022cd4 Determines in what way the target egas value should be calculated
Calculate_PWG_?_FUN_00022f98 0x00022f98 Calculates PWG, D_PWG, etc.
EDK_???_FUN_00025092 0x00025092 EDK related function
FR_Density_Correction_?_FUN_000253de 0x000253de Part of the FR Density Correction function
FR_Adaptation_???_FUN_000256c6 0x000256c6 Part of the FR Adaptation function
0x0002abde tz (ignition) related, retrieves the current map value based on operating mode
0x0002acd6 Seems to be the Lambda sensor aging function (pg. 250 of the funktionsrahmen)
Dynamic_Advance_FUN_0002bd66 0x0002bd66 This function is related to the Dynamic Advance module
0x0002c1e2 It seems that this function re-evaluates the current Operating Mode. Timed loop?
0x0002d2e8 Appears to be the function that calculates oil level etc. for the CSL
CAN_ARBID_770_FUN_0002f316 0x0002f316 Processes CAN ARBID 770
CAN_ARBID_513_FUN_0002f3c6 0x0002f3c6 Processes CAN ARBID 513
CAN_ARBID_512_FUN_0002f452 0x0003f452 Processes CAN ARBID 512
0x0002f78a Function possibly evaluates conditions to set MIL Malfunction Indicator Light/Check Engine Light
0x00035526 Looks like it iterates through 128 DTCs and does something
0x000355b2 Loads key values into an array defined by the function parameter
CAN_Send_DME_ARBID 0x0003a938 This function calls the appropriate CAN ARBID send function
CAN_Receive_ARBID 0x0003b226 This function calls the appropriate CAN ARBID receive function
CAN_Send_DME_ARBIDs 0x0003b954 This function processes all send ARBIDs in turn
CAN_Receive_ARBIDs 0x0003b9a8 This function processes all receive ARBIDs in turn
CAN_ARBID_153_FUN_0003c1e8 0x0003c1e8 Processes CAN ARBID 153
CAN_ARBID_1F0_FUN_0003c378 0x0003c378 Processes CAN ARBID 1F0
CAN_ARBID_1F3_FUN_0003c4f8 0x0003c4f8 Processes CAN ARBID 1F3
CAN_ARBID_1F5_FUN_0003c7e0 0x0003c7e0 Processes CAN ARBID 1F5
CAN_ARBID_329_FUN_0003bce4 0x0003bce4 Processes CAN ARBID 329
CAN_ARBID_545_FUN_0003beb4 0x0003beb4 Processes CAN ARBID 545
Find_Position_of_MSB 0x00040094 This function calculates the position of the most significant bit (MSB) that is set to 1 in the input parameter
0x00040974 One of the curve lookup functions. Need to ID which one this is
0x00040ad6 One of the table lookup functions. Need to ID which one this is
Clone this wiki locally