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