#include <commandstring.hpp>
Ö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 () | |
| 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 | |
Private Attribute | |
| unsigned int | m_uiLength |
| CChecksum | m_cChecksum |
| Length of the data transfered. | |
| CHECKSUM_TYPE | m_nChecksum |
| Class used for calculating the checksum. | |
| std::vector< unsigned char > | m_aucBytes |
| checksum store in datablock | |
| CmdCode | m_nCommand |
| Bytes tranfered to the fps. | |
| ADDRESS_TYPE | m_nAddress |
| Commandcode ( see upove for deatils ). | |
| bool | m_bUseCrcCheck |
| Address ( of the fps ) for datatranfer ( targetadress ). | |
| std::vector< unsigned char > | m_aucCommandstring |
| use crc check | |
|
|
|
|
|
|
build the string from the information store in the variables
|
|
|
do the check if the data was transfered correctly
|
|
||||||||||||||||||||
|
for debug reasons : prints out typical function parameter
|
|
||||||||||||||||
|
for debug reasons : prints out typical function parameter
|
|
|
prints out the overgiven vector
|
|
|
delivers the address the current command is pointing to
|
|
|
delivers the current command
|
|
|
Delivers the hole commandstring.
|
|
|
Delivers the data being send or received.
|
|
|
delivers the length of the data being send or received
|
|
|
sets the address the current command is pointing to
|
|
|
set the current command
|
|
|
Sets the commandstring as a hole.
|
|
|
Set the data to be send.
|
|
|
sets the length of the data being send or received
|
|
|
tells the api to use ( or not ) the crc check when receiving data
|
1.3.7