Generic hardware access library
|
00001 #ifndef __SetBitCommand 00002 #define __SetBitCommand 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 SetBitCommand : public SequencerCommand { 00038 public: 00039 SetBitCommand( std::string item, 00040 CommandSequence& sequence ); 00041 00042 virtual ~SetBitCommand() {}; 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 /* __SetBitCommand */