FreeEMS
0.2.0-SNAPSHOT-282-g9efc524
|
Memory block details lookup. More...
#include "inc/freeEMS.h"
#include "inc/interrupts.h"
#include "inc/locationIDs.h"
#include "inc/pagedLocationBuffers.h"
#include "inc/blockDetailsLookup.h"
Go to the source code of this file.
Macros | |
#define | BLOCK_DETAILS_LOOKUP_C |
Functions | |
unsigned short | lookupBlockDetails (unsigned short locationID, blockDetails *details) |
Lookup memory block details. |
Memory block details lookup.
This file holds the single function lookupBlockDetails() which functions as a sort of address book for logical blocks of memory.
Definition in file blockDetailsLookup.c.
#define BLOCK_DETAILS_LOOKUP_C |
Definition at line 38 of file blockDetailsLookup.c.
unsigned short lookupBlockDetails | ( | unsigned short | locationID, |
blockDetails * | details | ||
) |
Lookup memory block details.
Flash only blocks leave the RAM address and page values set to zero. ID's that don't exist return an error code.
locationID | is the ID of the memory location for which details are required. |
details | is a pointer to the blockDetails struct to populate with the details. |
Definition at line 60 of file blockDetailsLookup.c.
References ADCBuffers, ADCRegistersLocationID, AirflowTable2LocationID, AirflowTableFlash2Location, AirflowTableFlashLocation, AirflowTableLocationID, fixedConfig2::algorithmSettings, algorithmSettingsLocationID, blendVersusRPMTable2Location, blendVersusRPMTable2LocationID, blendVersusRPMTableLocation, blendVersusRPMTableLocationID, block_for_backup_restore, block_gets_verified, block_has_parent, block_is_2dus_table, block_is_configuration, block_is_in_flash, block_is_in_ram, block_is_indexable, block_is_lookup_data, block_is_main_table, block_is_read_only, CHTTransferTable, CHTTransferTableLocation, CHTTransferTableLocationID, Clocks, ClocksLocationID, coarseBBSettingsLocationID, fixedConfig1::coarseBitBangSettings, CoreVars, coreVarsLocationID, Counters, CountersLocationID, fixedConfig1::cutAndLimiterSettings, cutAndLimiterSettingsLocationID, fixedConfig2::decoderSettings, decoderSettingsLocationID, DerivedVars, DerivedVarsLocationID, dwellDesiredVersusVoltageTable2Location, dwellDesiredVersusVoltageTable2LocationID, dwellDesiredVersusVoltageTableLocation, dwellDesiredVersusVoltageTableLocationID, dwellVersusRPMTable2Location, dwellVersusRPMTable2LocationID, dwellVersusRPMTableLocation, dwellVersusRPMTableLocationID, fixedConfig1::engineSettings, engineSettingsLocationID, engineTempEnrichmentTableFixed2Location, engineTempEnrichmentTableFixed2LocationID, engineTempEnrichmentTableFixedLocation, engineTempEnrichmentTableFixedLocationID, engineTempEnrichmentTablePercent2Location, engineTempEnrichmentTablePercent2LocationID, engineTempEnrichmentTablePercentLocation, engineTempEnrichmentTablePercentLocationID, fillerA2Location, fillerA2LocationID, fillerALocation, fillerALocationID, fillerB2Location, fillerB2LocationID, fillerBLocation, fillerBLocationID, fillerC2Location, fillerC2LocationID, fillerCLocation, fillerCLocationID, fillerD2Location, fillerD2LocationID, fillerDLocation, fillerDLocationID, FixedConfig1LocationID, FixedConfig2LocationID, fixedConfigs1, fixedConfigs2, Flaggables, Flaggables2, Flaggables2LocationID, FlaggablesLocationID, blockDetails::flags, blockDetails::FlashAddress, blockDetails::FlashPage, FUELTABLES_PPAGE, IATTransferTable, IATTransferTableLocation, IATTransferTableLocationID, IgnitionAdvanceTableMain2LocationID, IgnitionAdvanceTableMainFlash2Location, IgnitionAdvanceTableMainFlashLocation, IgnitionAdvanceTableMainLocationID, IgnitionAdvanceTableSecondary2LocationID, IgnitionAdvanceTableSecondaryFlash2Location, IgnitionAdvanceTableSecondaryFlashLocation, IgnitionAdvanceTableSecondaryLocationID, InjectionAdvanceTableMain2LocationID, InjectionAdvanceTableMainFlash2Location, InjectionAdvanceTableMainFlashLocation, InjectionAdvanceTableMainLocationID, InjectionAdvanceTableSecondary2LocationID, InjectionAdvanceTableSecondaryFlash2Location, InjectionAdvanceTableSecondaryFlashLocation, InjectionAdvanceTableSecondaryLocationID, injectorDeadTimeTable2Location, injectorDeadTimeTable2LocationID, injectorDeadTimeTableLocation, injectorDeadTimeTableLocationID, fixedConfig2::inputOutputSettings, inputOutputSettingsLocationID, KeyUserDebugLocationID, KeyUserDebugs, LambdaTable2LocationID, LambdaTableFlash2Location, LambdaTableFlashLocation, LambdaTableLocationID, locationIDNotFound, loggingSettings2Location, loggingSettings2LocationID, loggingSettingsLocation, loggingSettingsLocationID, LOOKUP_PPAGE, MAFTransferTable, MAFTransferTableLocation, MAFTransferTableLocationID, blockDetails::parent, postStartEnrichmentTable2Location, postStartEnrichmentTable2LocationID, postStartEnrichmentTableLocation, postStartEnrichmentTableLocationID, PPAGE, primingVolumeTable2Location, primingVolumeTable2LocationID, primingVolumeTableLocation, primingVolumeTableLocationID, blockDetails::RAMAddress, blockDetails::RAMPage, RPAGE_FUEL_ONE, RPAGE_FUEL_TWO, RPAGE_LINEAR, RPAGE_TIME_ONE, RPAGE_TIME_TWO, RPAGE_TUNE_ONE, RPAGE_TUNE_TWO, fixedConfig1::schedulingSettings, schedulingSettingsLocationID, fixedConfig2::sensorPresets, sensorPresetsLocationID, fixedConfig2::sensorRanges, sensorRangesLocationID, fixedConfig2::sensorSettings, sensorSettingsLocationID, fixedConfig2::sensorSources, sensorSourcesLocationID, fixedConfig1::serialSettings, serialSettingsLocationID, fixedConfig1::simpleGPIOSettings, simpleGPIOSettingsLocationID, blockDetails::size, SMALL_TABLES_1_FILLER_SIZE, SMALL_TABLES_2_FILLER_SIZE, SMALL_TABLES_3_FILLER_SIZE, SMALL_TABLES_4_FILLER_SIZE, SmallTablesA2LocationID, SmallTablesAFlash2Location, SmallTablesAFlashLocation, SmallTablesALocationID, SmallTablesB2LocationID, SmallTablesBFlash2Location, SmallTablesBFlashLocation, SmallTablesBLocationID, SmallTablesC2LocationID, SmallTablesCFlash2Location, SmallTablesCFlashLocation, SmallTablesCLocationID, SmallTablesD2LocationID, SmallTablesDFlash2Location, SmallTablesDFlashLocation, SmallTablesDLocationID, TestTransferTable, TestTransferTableLocation, TestTransferTableLocationID, TIMETABLES_PPAGE, TUNETABLES_PPAGE, fixedConfig1::userTextField, fixedConfig2::userTextField2, userTextField2LocationID, userTextFieldArrayLength1, userTextFieldArrayLength2, userTextFieldLocationID, VETableMain2LocationID, VETableMainFlash2Location, VETableMainFlashLocation, VETableMainLocationID, VETableSecondary2LocationID, VETableSecondaryFlash2Location, VETableSecondaryFlashLocation, and VETableSecondaryLocationID.
Referenced by decodePacketAndRespond(), and lookupMainTable().