Generic hardware access library
|
00001 #ifndef __UnmaskedWriteCommand 00002 #define __UnmaskedWriteCommand 00003 00004 #include <string> 00005 00006 #include "hal/SequencerCommand.hh" 00007 #include "hal/CommandSequence.hh" 00008 #include "hal/HardwareDeviceInterface.hh" 00009 #include "hal/BusAdapterException.hh" 00010 00011 namespace HAL { 00012 00037 class UnmaskedWriteCommand : public SequencerCommand { 00038 public: 00039 UnmaskedWriteCommand( std::string item, 00040 CommandSequence& sequence ); 00041 00042 virtual ~UnmaskedWriteCommand() {}; 00043 00044 void excecute( const HardwareDeviceInterface& device ) const 00045 throw( BusAdapterException ); 00046 00050 void setVerify(); 00051 00055 void setOffsetPointer( uint32_t* offsetPtr ); 00056 00060 void setDataPointer( uint32_t* dataPtr ); 00061 00065 void setData( uint32_t data ); 00066 00070 void setOffset( uint32_t offset ); 00071 00072 private: 00073 CommandSequence& sequence; 00074 std::string item; 00075 uint32_t* dataPtr; 00076 uint32_t* offsetPtr; 00077 uint32_t offset, constantData; 00078 HalVerifyOption verifyFlag; 00079 }; 00080 00081 } /* namespace HAL */ 00082 00083 #endif /* __UnmaskedWriteCommand */