Generic hardware access library
/home/cschwick/hal/generic/include/hal/ResetBitCommand.hh
Go to the documentation of this file.
00001 #ifndef __ResetBitCommand
00002 #define __ResetBitCommand
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 
00036 class ResetBitCommand : public SequencerCommand {
00037 public:
00038 
00039   ResetBitCommand( std::string item,
00040                    CommandSequence& sequence );
00041 
00042   virtual ~ResetBitCommand() {};
00043 
00044   void excecute( const HardwareDeviceInterface& device ) const
00045           throw( BusAdapterException );
00046 
00050   void setVerify();
00051 
00055   void setOffset( uint32_t offset );
00056        
00060   void setOffsetPointer( uint32_t* offsetPtr );
00061 
00062 private:
00063   CommandSequence& sequence;
00064   std::string item;
00065   uint32_t* offsetPtr;
00066   uint32_t  offset;
00067   HalVerifyOption verifyFlag;
00068 };
00069 
00070 } /* namespace HAL */
00071 
00072 #endif /* __ResetBitCommand */