#include <CDxlPacket.hpp>
Public Member Functions | |
void | adjustLength (const int numParams) |
BYTE | calcChecksum () |
CDxlPacket () | |
CDxlPacket (const int ID, const BYTE instruction, const int numParams) | |
void | clearParams () |
BYTE * | data () |
BYTE | getError () |
BYTE | getID () |
BYTE | getParam (const BYTE paramIndex) |
void | getParams (const BYTE paramIndex, const BYTE numParams, BYTE *data) |
WORD | getParamWord (const BYTE paramIndex) |
std::string | getPktString () |
std::string | getPktString (unsigned char length) |
BYTE | length () |
BYTE | readChecksum () |
void | reset () |
void | setChecksum () |
void | setID (const int ID) |
void | setInstruction (const BYTE instruction) |
void | setParam (const BYTE paramIndex, const BYTE value) |
void | setParams (const BYTE paramIndex, const BYTE numParams, BYTE *data) |
void | setParamWord (const BYTE paramIndex, const WORD value) |
Protected Attributes | |
BYTE | mData [DXL_PKT_MAX_LENGTH] |
bool | mInit |
unsigned int | mLength |
unsigned int | mNumParams |
Definition at line 29 of file CDxlPacket.hpp.
CDxlPacket::CDxlPacket | ( | ) | [inline] |
Definition at line 38 of file CDxlPacket.hpp.
CDxlPacket::CDxlPacket | ( | const int | ID, |
const BYTE | instruction, | ||
const int | numParams | ||
) | [inline] |
Definition at line 40 of file CDxlPacket.hpp.
void CDxlPacket::adjustLength | ( | const int | numParams | ) | [inline] |
Definition at line 73 of file CDxlPacket.hpp.
BYTE CDxlPacket::calcChecksum | ( | ) | [inline] |
Definition at line 84 of file CDxlPacket.hpp.
void CDxlPacket::clearParams | ( | ) | [inline] |
Definition at line 99 of file CDxlPacket.hpp.
BYTE* CDxlPacket::data | ( | ) | [inline] |
Definition at line 68 of file CDxlPacket.hpp.
BYTE CDxlPacket::getError | ( | ) | [inline] |
Definition at line 69 of file CDxlPacket.hpp.
BYTE CDxlPacket::getID | ( | ) | [inline] |
Definition at line 70 of file CDxlPacket.hpp.
BYTE CDxlPacket::getParam | ( | const BYTE | paramIndex | ) | [inline] |
Definition at line 94 of file CDxlPacket.hpp.
void CDxlPacket::getParams | ( | const BYTE | paramIndex, |
const BYTE | numParams, | ||
BYTE * | data | ||
) | [inline] |
Definition at line 95 of file CDxlPacket.hpp.
WORD CDxlPacket::getParamWord | ( | const BYTE | paramIndex | ) | [inline] |
Definition at line 102 of file CDxlPacket.hpp.
std::string CDxlPacket::getPktString | ( | ) | [inline] |
Definition at line 106 of file CDxlPacket.hpp.
std::string CDxlPacket::getPktString | ( | unsigned char | length | ) | [inline] |
Definition at line 110 of file CDxlPacket.hpp.
BYTE CDxlPacket::length | ( | ) | [inline] |
Definition at line 67 of file CDxlPacket.hpp.
BYTE CDxlPacket::readChecksum | ( | ) | [inline] |
Definition at line 82 of file CDxlPacket.hpp.
void CDxlPacket::reset | ( | ) | [inline] |
Reimplemented in CDxlSyncWritePacket.
Definition at line 53 of file CDxlPacket.hpp.
void CDxlPacket::setChecksum | ( | ) | [inline] |
Definition at line 83 of file CDxlPacket.hpp.
void CDxlPacket::setID | ( | const int | ID | ) | [inline] |
Definition at line 66 of file CDxlPacket.hpp.
void CDxlPacket::setInstruction | ( | const BYTE | instruction | ) | [inline] |
Definition at line 98 of file CDxlPacket.hpp.
void CDxlPacket::setParam | ( | const BYTE | paramIndex, |
const BYTE | value | ||
) | [inline] |
Definition at line 96 of file CDxlPacket.hpp.
void CDxlPacket::setParams | ( | const BYTE | paramIndex, |
const BYTE | numParams, | ||
BYTE * | data | ||
) | [inline] |
Definition at line 97 of file CDxlPacket.hpp.
void CDxlPacket::setParamWord | ( | const BYTE | paramIndex, |
const WORD | value | ||
) | [inline] |
Definition at line 103 of file CDxlPacket.hpp.
BYTE CDxlPacket::mData[DXL_PKT_MAX_LENGTH] [protected] |
Definition at line 35 of file CDxlPacket.hpp.
bool CDxlPacket::mInit [protected] |
Definition at line 34 of file CDxlPacket.hpp.
unsigned int CDxlPacket::mLength [protected] |
Definition at line 32 of file CDxlPacket.hpp.
unsigned int CDxlPacket::mNumParams [protected] |
Definition at line 33 of file CDxlPacket.hpp.