|
Öffentliche Typen |
| enum | CmdCode {
READ_EEPROM_DATA_REQ = 0x01,
READ_PROGRAM_DATA_REQ = 0x02,
READ_RAM_DATA_REQ = 0x03,
WRITE_EEPROM_DATA_REQ = 0x04,
WRITE_PROGRAM_DATA_REQ = 0x05,
WRITE_RAM_DATA_REQ = 0x06,
READ_EEPROM_DATA_CNF = 0x81,
READ_PROGRAM_DATA_CNF = 0x82,
READ_RAM_DATA_CNF = 0x83,
WRITE_EEPROM_DATA_CNF = 0x84,
WRITE_PROGRAM_DATA_CNF = 0x85,
WRITE_RAM_DATA_CNF = 0x86,
STATUS_INFO = 0xff
} |
| | all possible commandtypes the memory refers always to the build in memory of the fps device Mehr...
|
Öffentliche Methoden |
| | CCommandstring () |
| virtual | ~CCommandstring () |
| void | SetUseCrcCheck (bool bUseCrc) |
| | tells the api to use ( or not ) the crc check when receiving data
|
| CmdCode | GetCommand (void) const |
| | delivers the current command
|
| WORD | GetAddress (void) const |
| | delivers the address the current command is pointing to
|
| unsigned int | GetLength (void) const |
| | delivers the length of the data being send or received
|
| std::vector< unsigned char > | GetData (void) const |
| | Delivers the data being send or received.
|
const std::vector< unsigned
char > & | GetCommandString (void) const |
| | Delivers the hole commandstring.
|
| void | SetCommand (const CmdCode nCommand) |
| | set the current command
|
| void | SetAddress (const ADDRESS_TYPE nNewAdress) |
| | sets the address the current command is pointing to
|
| void | SetLength (const unsigned int uiLength) |
| | sets the length of the data being send or received
|
| void | SetData (const std::vector< unsigned char > &aucData) |
| | Set the data to be send.
|
| bool | SetCommandString (const std::vector< unsigned char > &aucNewCommandstring) |
| | Sets the commandstring as a hole.
|
| bool | CheckData (void) |
| | do the check if the data was transfered correctly
|
| void | BuildString (void) |
| | build the string from the information store in the variables
|
Öffentliche, statische Methoden |
| void | DebugPrintRoutine (const char const *pcName, const ADDRESS_TYPE nAddress, const unsigned int uiLength) |
| | for debug reasons : prints out typical function parameter
|
| void | DebugPrintRoutine (const char const *pcName, const ADDRESS_TYPE nAddress, const unsigned int uiLength, const std::vector< unsigned char > &aucData) |
| | for debug reasons : prints out typical function parameter
|
| void | DebugPrintVector (const std::vector< unsigned char > &aucData) |
| | prints out the overgiven vector
|