RomRep::DevUtil Class Reference

List of all members.

Public Member Functions

 DevUtil ()

Static Public Member Functions

static bool canEditHeader (unsigned char file __gc[], bool column, int columnOrRow)
static RomRep::ByteChangemapHeaderChanged (unsigned char file __gc[], MapHeaderChangeArgs *args, String *colHead[], String *RowHead[])[]
static RomRep::ByteChangesetPressureVal (int col, int inhg, unsigned char file __gc[])
 sets a vacuum column header in file
static RomRep::ByteChangesetPressureVal (int col, float psi, unsigned char file __gc[])
 sets a boost column header in file
static RomRep::ByteChangesetHeader (bool column, int roworcol, String *val, unsigned char file __gc[])
static RomRep::MapHeaderChangeArgsdevNotify (RomRep::ByteChange *bc, unsigned char file __gc[], int maxmapadd)
 called when the dev roms are notified of a byte change
static int getRomWidth (unsigned char file __gc[])
 gets the width of the maps stored in ROM
static int getRomHeight (unsigned char file __gc[])
 gets the height of the maps stored in ROM
static int getMapSensor (unsigned char file __gc[])
 gets the type of map sensor stored in ROM
static void setMapSensor (RomRep::HondaEcu *ecu, int sensor)
 sets the type of map sensor in ROM
static void recalcPressureHeaders (int mapsensor, HondaEcu *file)
 Recalculates the pressure headers for the given mapsensor type.
static String * calcHeaders (int maxmap, unsigned char thefile __gc[])[]
 Takes the raw values from ROM and assembles the column header string array.
static int getRawHeaders (int maxmap, unsigned char thefile __gc[]) __gc[]
static int findLastNACol (unsigned char file __gc[])
 figures out what index the last NA column is
static float getXOver (int mapsensor)
 gets the NA to boost crossover voltage for a given map sensor

Static Public Attributes

static const int mapscalarloc = 0x63d2
 location of column header scalars
static const int natoboost = 153
static const int mapsensorloc = 0x7ff0
static const int igmap = 0x6600
 ignition map address
static const int igmapvtec = 0x6984
 VTEC ignition map address.
static const int fmap = 0x6D08
 fuel map address
static const int fmapvtec = 0x70aa
 VTEC fuel map address.
static const int revscalar_ig = 0x648c
 Unused address of revscalars.
static const int revscalar_igv = 0x64e9
 Unused address of revscalars.
static const int revscalar_fu = 0x6546
 Unused address of revscalars.
static const int revscalar_fuv = 0x65a3
 Unused address of revscalars.
static const int MAXMAPSENSOR = 4
static const int MAP2BAR = 1
 2 bar map sensor type
static const int MAP25BAR = 2
 2.5 bar map sensor type
static const int MAP3BAR = 3
 3 bar map sensor type
static const int MAPMOTOROLA25BAR = 4
 motorola 2.5 bar map sensor type
static const int MAPSTOCK = 0
 stock map sensor type
static const float XOVER2BAR = 2.5F
 NA to boost voltage for 2 bar map sensor type.
static const float XOVER25BAR = 2.0F
 NA to boost voltage for GM 2.5 bar map sensor type.
static const float XOVERMOTOROLA25BAR = 1.864F
 NA to boost voltage for motorola 2.5 bar map sensor type.
static const float XOVER3BAR = 1.6F
 NA to boost voltage for 3 bar map sensor type.
static const float XOVERSTOCK = 2.8F
 NA to boost voltage for stock map sensor type.
static const float PSICONST3BAR = .1156F
 boost calculation constant for 3 bar map sensor type
static const float PSICONST25BAR = .13612F
 boost calculation constant for 2.5 bar map sensor type
static const float PSICONSTMOTOROLA25BAR = .14069F
 boost calculation constant for motorola 2.5 bar map sensor type
static const float PSICONST2BAR = .171F
 boost calculation constant for 2 bar map sensor type
static const float PSICONSTSTOCK = .18707F
 boost calculation constant for stock map sensor type
static const float INHGCONST3BAR = -.0535F
 NA calculation constant for 3 bar map sensor type.
static const float INHGCONST25BAR = -.0668F
 NA calculation constant for 2.5 bar map sensor type.
static const float INHGCONSTMOTOROLA25BAR = -.0689F
 NA calculation constant for motorola 2.5 bar map sensor type.
static const float INHGCONST2BAR = -.084F
 NA calculation constant for 2 bar map sensor type.
static const float INHGCONSTSTOCK = -.094F
 NA calculation constant for stock map sensor type.

Detailed Description

This class is for the Dev roms (RomRep.JdmPr3Dev, RomRep.JdmPw0Dev, RomRep.EuroPw0Dev). They exend their type (JdmPr3, JdmPw0, EuroPw0) and then use the functionality of this class.


Constructor & Destructor Documentation

RomRep::DevUtil::DevUtil  ) 
 


Member Function Documentation

String * RomRep::DevUtil::calcHeaders int  maxmap,
unsigned char thefile  __gc[]
[static]
 

Takes the raw values from ROM and assembles the column header string array.

bool RomRep::DevUtil::canEditHeader unsigned char file  __gc[],
bool  column,
int  columnOrRow
[static]
 

RomRep::MapHeaderChangeArgs * RomRep::DevUtil::devNotify RomRep::ByteChange bc,
unsigned char file  __gc[],
int  maxmapadd
[static]
 

called when the dev roms are notified of a byte change

int RomRep::DevUtil::findLastNACol unsigned char file  __gc[]  )  [static]
 

figures out what index the last NA column is

int RomRep::DevUtil::getMapSensor unsigned char file  __gc[]  )  [static]
 

gets the type of map sensor stored in ROM

int RomRep::DevUtil::getRawHeaders int  maxmap,
unsigned char thefile  __gc[]
[static]
 

int RomRep::DevUtil::getRomHeight unsigned char file  __gc[]  )  [static]
 

gets the height of the maps stored in ROM

int RomRep::DevUtil::getRomWidth unsigned char file  __gc[]  )  [static]
 

gets the width of the maps stored in ROM

static float RomRep::DevUtil::getXOver int  mapsensor  )  [static]
 

gets the NA to boost crossover voltage for a given map sensor

RomRep::ByteChange * RomRep::DevUtil::mapHeaderChanged unsigned char file  __gc[],
MapHeaderChangeArgs args,
String *  colHead[],
String *  RowHead[]
[static]
 

void RomRep::DevUtil::recalcPressureHeaders int  mapsensor,
HondaEcu file
[static]
 

Recalculates the pressure headers for the given mapsensor type.

RomRep::ByteChange * RomRep::DevUtil::setHeader bool  column,
int  roworcol,
String *  val,
unsigned char file  __gc[]
[static]
 

void RomRep::DevUtil::setMapSensor RomRep::HondaEcu ecu,
int  sensor
[static]
 

sets the type of map sensor in ROM

RomRep::ByteChange * RomRep::DevUtil::setPressureVal int  col,
float  psi,
unsigned char file  __gc[]
[static]
 

sets a boost column header in file

RomRep::ByteChange * RomRep::DevUtil::setPressureVal int  col,
int  inhg,
unsigned char file  __gc[]
[static]
 

sets a vacuum column header in file


Member Data Documentation

const int RomRep::DevUtil::fmap = 0x6D08 [static]
 

fuel map address

const int RomRep::DevUtil::fmapvtec = 0x70aa [static]
 

VTEC fuel map address.

const int RomRep::DevUtil::igmap = 0x6600 [static]
 

ignition map address

const int RomRep::DevUtil::igmapvtec = 0x6984 [static]
 

VTEC ignition map address.

const float RomRep::DevUtil::INHGCONST25BAR = -.0668F [static]
 

NA calculation constant for 2.5 bar map sensor type.

const float RomRep::DevUtil::INHGCONST2BAR = -.084F [static]
 

NA calculation constant for 2 bar map sensor type.

const float RomRep::DevUtil::INHGCONST3BAR = -.0535F [static]
 

NA calculation constant for 3 bar map sensor type.

const float RomRep::DevUtil::INHGCONSTMOTOROLA25BAR = -.0689F [static]
 

NA calculation constant for motorola 2.5 bar map sensor type.

const float RomRep::DevUtil::INHGCONSTSTOCK = -.094F [static]
 

NA calculation constant for stock map sensor type.

const int RomRep::DevUtil::MAP25BAR = 2 [static]
 

2.5 bar map sensor type

const int RomRep::DevUtil::MAP2BAR = 1 [static]
 

2 bar map sensor type

const int RomRep::DevUtil::MAP3BAR = 3 [static]
 

3 bar map sensor type

const int RomRep::DevUtil::MAPMOTOROLA25BAR = 4 [static]
 

motorola 2.5 bar map sensor type

const int RomRep::DevUtil::mapscalarloc = 0x63d2 [static]
 

location of column header scalars

const int RomRep::DevUtil::mapsensorloc = 0x7ff0 [static]
 

const int RomRep::DevUtil::MAPSTOCK = 0 [static]
 

stock map sensor type

const int RomRep::DevUtil::MAXMAPSENSOR = 4 [static]
 

const int RomRep::DevUtil::natoboost = 153 [static]
 

const float RomRep::DevUtil::PSICONST25BAR = .13612F [static]
 

boost calculation constant for 2.5 bar map sensor type

const float RomRep::DevUtil::PSICONST2BAR = .171F [static]
 

boost calculation constant for 2 bar map sensor type

const float RomRep::DevUtil::PSICONST3BAR = .1156F [static]
 

boost calculation constant for 3 bar map sensor type

const float RomRep::DevUtil::PSICONSTMOTOROLA25BAR = .14069F [static]
 

boost calculation constant for motorola 2.5 bar map sensor type

const float RomRep::DevUtil::PSICONSTSTOCK = .18707F [static]
 

boost calculation constant for stock map sensor type

const int RomRep::DevUtil::revscalar_fu = 0x6546 [static]
 

Unused address of revscalars.

const int RomRep::DevUtil::revscalar_fuv = 0x65a3 [static]
 

Unused address of revscalars.

const int RomRep::DevUtil::revscalar_ig = 0x648c [static]
 

Unused address of revscalars.

const int RomRep::DevUtil::revscalar_igv = 0x64e9 [static]
 

Unused address of revscalars.

const float RomRep::DevUtil::XOVER25BAR = 2.0F [static]
 

NA to boost voltage for GM 2.5 bar map sensor type.

const float RomRep::DevUtil::XOVER2BAR = 2.5F [static]
 

NA to boost voltage for 2 bar map sensor type.

const float RomRep::DevUtil::XOVER3BAR = 1.6F [static]
 

NA to boost voltage for 3 bar map sensor type.

const float RomRep::DevUtil::XOVERMOTOROLA25BAR = 1.864F [static]
 

NA to boost voltage for motorola 2.5 bar map sensor type.

const float RomRep::DevUtil::XOVERSTOCK = 2.8F [static]
 

NA to boost voltage for stock map sensor type.




BRE Documentation Home