Generic hardware access library
/home/cschwick/hal/generic/include/hal/UnmaskedReadCommand.hh
Go to the documentation of this file.
00001 #ifndef __UnmaskedReadCommand
00002 #define __UnmaskedReadCommand
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 
00033 class UnmaskedReadCommand : public SequencerCommand {
00034 public:
00040   UnmaskedReadCommand( std::string item,
00041                        CommandSequence& sequence );
00042 
00043   virtual ~UnmaskedReadCommand() {};
00044 
00045   void excecute( const HardwareDeviceInterface& device ) const
00046     throw ( IllegalOperationException,
00047             BusAdapterException );
00048 
00052   void setOffsetPointer( uint32_t* offsetPtr );
00053         
00057   void setResultPointer( uint32_t* dataPtr );
00058         
00062   void setOffset( uint32_t offset );
00063 
00064 private:
00065   CommandSequence& sequence;
00066   std::string item;
00067   uint32_t* resultPtr;
00068   uint32_t* offsetPtr;
00069   uint32_t  offset;
00070 };
00071 
00072 } /* namespace HAL */
00073 
00074 #endif /* __UnmaskedReadCommand */