Generic hardware access library
/home/cschwick/hal/generic/src/common/ResetBitCommand.cc
Go to the documentation of this file.
00001 #include "hal/ResetBitCommand.hh"
00002 
00003 
00004 HAL::ResetBitCommand::ResetBitCommand( std::string item, 
00005                                        HAL::CommandSequence& sequence )
00006   : sequence(sequence),
00007     item( item ) {
00008   offsetPtr = &offset;
00009   offset = 0;
00010   verifyFlag = HAL_NO_VERIFY;
00011 }
00012 
00013 void HAL::ResetBitCommand::excecute( const HAL::HardwareDeviceInterface& device ) const
00014         throw( HAL::BusAdapterException ) {
00015   device.resetBit( item, verifyFlag, *offsetPtr );
00016 }
00017 
00018 void HAL::ResetBitCommand::setVerify() {
00019   verifyFlag = HAL_DO_VERIFY;
00020 }
00021 
00022 void HAL::ResetBitCommand::setOffset( uint32_t offset ) {
00023   this->offset = offset;
00024 }
00025 
00026 void HAL::ResetBitCommand::setOffsetPointer( uint32_t* offsetPtr ) {
00027   this->offsetPtr = offsetPtr;
00028 }