C# Class VAGSuite.Tools

Exibir arquivo Open project: Blackfrosch/VAGEDCSuite

Public Properties

Property Type Description
AxisList List
codeBlockList List
m_CurrentWorkingProject string
m_ProjectLog ProjectLog
m_ProjectTransactionLog TransactionLog
m_carMake CarMakes
m_codeBlock5ID int
m_codeBlock6ID int
m_codeBlock7ID int
m_currentFileType EDCFileType
m_currentfile string
m_currentfilelength int
m_symbols SymbolCollection

Public Methods

Method Description
DetermineFileType ( string fileName, bool isPrimaryFile ) : EDCFileType
ExtractBoschPartnumber ( byte allBytes ) : string
GetCorrectionFactorForRpm ( int rpm, int numberCylinders ) : double
GetParserForFile ( string filename, bool isPrimaryFile ) : IEDCFileParser
GetSymbolAddressLike ( SymbolCollection curSymbolCollection, string symbolname ) : System.Int64
GetSymbolNameByAddress ( Int32 address ) : string
GetSymbolNameByAddressInRange ( Int32 address, Int32 addressTo ) : string
GetWorkingDirectory ( ) : string
IQToTorque ( int IQ, int rpm, int numberCylinders ) : int
IsEDC16Partnumber ( string partnumber ) : bool
PowerToTorque ( int power, int rpm ) : int
StripNonAscii ( string input ) : string
TorqueToIQ ( int torque, int rpm, int numberCylinders ) : int
TorqueToPower ( int torque, int rpm ) : int
TorqueToPowerkW ( int torque, int rpm ) : int
UpdateChecksum ( string filename, bool verifyOnly ) : ChecksumResultDetails
findSequence ( byte fileData, int offset, byte sequence, byte mask ) : int
readdatafromfile ( string filename, int address, int length, EDCFileType type ) : byte[]
readdatafromfileasint ( string filename, int address, int length, EDCFileType type ) : int[]
reverseEndian ( byte retval ) : byte[]
reverseEndian ( int retval ) : int[]
savedatatobinary ( int address, int length, byte data, string filename, bool DoTransActionEntry, EDCFileType type ) : void
savedatatobinary ( int address, int length, byte data, string filename, bool DoTransActionEntry, string note, EDCFileType type ) : void

Private Methods

Method Description
CalculateEDC15PChecksum ( string filename, byte allBytes, bool verifyOnly, ChecksumResultDetails &result ) : ChecksumResult
CalculateEDC15VMChecksum ( string filename, byte allBytes, bool verifyOnly, ChecksumResultDetails &result ) : ChecksumResult
FindAscii ( byte allBytes, int start, int end, int length ) : string
FindDigits ( byte allBytes, int start, int end, int length ) : string
StripNonAsciiCapital ( string input ) : string
StripNonDigit ( string input ) : string
isDigit ( char c ) : bool
isLetter ( char c ) : bool

Method Details

DetermineFileType() public method

public DetermineFileType ( string fileName, bool isPrimaryFile ) : EDCFileType
fileName string
isPrimaryFile bool
return EDCFileType

ExtractBoschPartnumber() public method

public ExtractBoschPartnumber ( byte allBytes ) : string
allBytes byte
return string

GetCorrectionFactorForRpm() public method

public GetCorrectionFactorForRpm ( int rpm, int numberCylinders ) : double
rpm int
numberCylinders int
return double

GetParserForFile() public method

public GetParserForFile ( string filename, bool isPrimaryFile ) : IEDCFileParser
filename string
isPrimaryFile bool
return IEDCFileParser

GetSymbolAddressLike() public method

public GetSymbolAddressLike ( SymbolCollection curSymbolCollection, string symbolname ) : System.Int64
curSymbolCollection SymbolCollection
symbolname string
return System.Int64

GetSymbolNameByAddress() public method

public GetSymbolNameByAddress ( Int32 address ) : string
address System.Int32
return string

GetSymbolNameByAddressInRange() public method

public GetSymbolNameByAddressInRange ( Int32 address, Int32 addressTo ) : string
address System.Int32
addressTo System.Int32
return string

GetWorkingDirectory() public method

public GetWorkingDirectory ( ) : string
return string

IQToTorque() public method

public IQToTorque ( int IQ, int rpm, int numberCylinders ) : int
IQ int
rpm int
numberCylinders int
return int

IsEDC16Partnumber() public method

public IsEDC16Partnumber ( string partnumber ) : bool
partnumber string
return bool

PowerToTorque() public method

public PowerToTorque ( int power, int rpm ) : int
power int
rpm int
return int

StripNonAscii() public method

public StripNonAscii ( string input ) : string
input string
return string

TorqueToIQ() public method

public TorqueToIQ ( int torque, int rpm, int numberCylinders ) : int
torque int
rpm int
numberCylinders int
return int

TorqueToPower() public method

public TorqueToPower ( int torque, int rpm ) : int
torque int
rpm int
return int

TorqueToPowerkW() public method

public TorqueToPowerkW ( int torque, int rpm ) : int
torque int
rpm int
return int

UpdateChecksum() public method

public UpdateChecksum ( string filename, bool verifyOnly ) : ChecksumResultDetails
filename string
verifyOnly bool
return ChecksumResultDetails

findSequence() public method

public findSequence ( byte fileData, int offset, byte sequence, byte mask ) : int
fileData byte
offset int
sequence byte
mask byte
return int

readdatafromfile() public method

public readdatafromfile ( string filename, int address, int length, EDCFileType type ) : byte[]
filename string
address int
length int
type EDCFileType
return byte[]

readdatafromfileasint() public method

public readdatafromfileasint ( string filename, int address, int length, EDCFileType type ) : int[]
filename string
address int
length int
type EDCFileType
return int[]

reverseEndian() public method

public reverseEndian ( byte retval ) : byte[]
retval byte
return byte[]

reverseEndian() public method

public reverseEndian ( int retval ) : int[]
retval int
return int[]

savedatatobinary() public method

public savedatatobinary ( int address, int length, byte data, string filename, bool DoTransActionEntry, EDCFileType type ) : void
address int
length int
data byte
filename string
DoTransActionEntry bool
type EDCFileType
return void

savedatatobinary() public method

public savedatatobinary ( int address, int length, byte data, string filename, bool DoTransActionEntry, string note, EDCFileType type ) : void
address int
length int
data byte
filename string
DoTransActionEntry bool
note string
type EDCFileType
return void

Property Details

AxisList public_oe property

public List AxisList
return List

codeBlockList public_oe property

public List codeBlockList
return List

m_CurrentWorkingProject public_oe property

public string m_CurrentWorkingProject
return string

m_ProjectLog public_oe property

public ProjectLog,VAGSuite m_ProjectLog
return ProjectLog

m_ProjectTransactionLog public_oe property

public TransactionLog,VAGSuite m_ProjectTransactionLog
return TransactionLog

m_carMake public_oe property

public CarMakes m_carMake
return CarMakes

m_codeBlock5ID public_oe property

public int m_codeBlock5ID
return int

m_codeBlock6ID public_oe property

public int m_codeBlock6ID
return int

m_codeBlock7ID public_oe property

public int m_codeBlock7ID
return int

m_currentFileType public_oe property

public EDCFileType m_currentFileType
return EDCFileType

m_currentfile public_oe property

public string m_currentfile
return string

m_currentfilelength public_oe property

public int m_currentfilelength
return int

m_symbols public_oe property

public SymbolCollection,VAGSuite m_symbols
return SymbolCollection