Generic hardware access library
|
SequencerCommand to perform a read operation into from a hardware device. More...
#include <ReadCommand.hh>
Public Member Functions | |
ReadCommand (std::string item, CommandSequence &sequence) | |
virtual | ~ReadCommand () |
void | excecute (const HardwareDeviceInterface &device) const throw ( IllegalOperationException, BusAdapterException, MaskBoundaryException) |
This routine is common to all Sequencer commands. | |
void | setOffsetPointer (uint32_t *offsetPtr) |
This is used by the ReadFactory. | |
void | setResultPointer (uint32_t *dataPtr) |
This is used by the ReadFactory. | |
void | setOffset (uint32_t offset) |
This is used by the ReadFactory. | |
Private Attributes | |
CommandSequence & | sequence |
std::string | item |
uint32_t * | resultPtr |
uint32_t * | offsetPtr |
uint32_t | offset |
SequencerCommand to perform a read operation into from a hardware device.
This Command corresponds to the read method in the HardwareDeviceInterface. The read value is put into a variable. The syntax is :
read item $varname [offset]
Definition at line 37 of file ReadCommand.hh.
HAL::ReadCommand::ReadCommand | ( | std::string | item, |
HAL::CommandSequence & | sequence | ||
) |
sequence | denotes the Sequence to which this command belongs. This reference is needed to store the read value in a variable of the sequence. |
Definition at line 4 of file ReadCommand.cc.
virtual HAL::ReadCommand::~ReadCommand | ( | ) | [inline, virtual] |
Definition at line 47 of file ReadCommand.hh.
void HAL::ReadCommand::excecute | ( | const HardwareDeviceInterface & | device | ) | const throw ( IllegalOperationException, BusAdapterException, MaskBoundaryException) [virtual] |
This routine is common to all Sequencer commands.
It does what it pretends to do.
Implements HAL::SequencerCommand.
Definition at line 12 of file ReadCommand.cc.
void HAL::ReadCommand::setOffset | ( | uint32_t | offset | ) |
This is used by the ReadFactory.
Definition at line 19 of file ReadCommand.cc.
void HAL::ReadCommand::setOffsetPointer | ( | uint32_t * | offsetPtr | ) |
This is used by the ReadFactory.
Definition at line 23 of file ReadCommand.cc.
void HAL::ReadCommand::setResultPointer | ( | uint32_t * | dataPtr | ) |
This is used by the ReadFactory.
Definition at line 27 of file ReadCommand.cc.
std::string HAL::ReadCommand::item [private] |
Definition at line 71 of file ReadCommand.hh.
uint32_t HAL::ReadCommand::offset [private] |
Definition at line 74 of file ReadCommand.hh.
uint32_t* HAL::ReadCommand::offsetPtr [private] |
Definition at line 73 of file ReadCommand.hh.
uint32_t* HAL::ReadCommand::resultPtr [private] |
Definition at line 72 of file ReadCommand.hh.
CommandSequence& HAL::ReadCommand::sequence [private] |
Definition at line 70 of file ReadCommand.hh.