Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

PUSMemoryLoad.h

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // PUSMemoryLoad.h 00005 // 00006 // Version 1.0 00007 // Date 05.12.03 00008 // Author A. Pasetti (P&P Software) 00009 00010 #ifndef PUSMemoryLoadH 00011 #define PUSMemoryLoadH 00012 00013 #include "../GeneralInclude/ForwardDeclarations.h" 00014 #include "../GeneralInclude/BasicTypes.h" 00015 #include "PUSTelecommand.h" 00016 00064 class PUSMemoryLoad : public PUSTelecommand { 00065 00066 protected: 00067 00073 struct MemBlockType { 00074 00078 TD_PUSMemData* startAddress; 00079 00083 TD_PUSMemLength length; 00084 00088 unsigned short checksum; 00089 }; 00090 00095 MemBlockType* block; 00096 00100 TD_PUSNumberMemBlocks maxNumberBlocks; 00101 00105 TD_PUSNumberMemBlocks numberBlocks; 00106 00114 TD_PUSMemData* data; 00115 00119 unsigned int maxNumberData; 00120 00136 virtual TD_ActionOutcome doAction(void); 00137 00138 public: 00139 00146 PUSMemoryLoad(void); 00147 00156 void setMaxNumberBlocks(unsigned int max); 00157 00163 unsigned int getMaxNumberBlocks() const; 00164 00170 unsigned int getNumberBlocks() const; 00171 00180 void setMaxNumberData(unsigned int max); 00181 00187 unsigned int getMaxNumberData() const; 00188 00200 TD_PUSMemData* getStartAddress(unsigned int i) const; 00201 00211 TD_PUSMemLength getLength(unsigned int i) const; 00212 00222 unsigned short getChecksum(unsigned int i) const; 00223 00230 virtual bool isObjectConfigured(void); 00231 00232 }; 00233 00234 #endif
Copyright 2003 P&P Software GmbH - All Rights Reserved