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