Generic hardware access library
|
SequencerCommand to poll an item. More...
#include <PollItemCommand.hh>
Public Member Functions | |
PollItemCommand (std::string item, CommandSequence &sequence) | |
virtual | ~PollItemCommand () |
void | excecute (const HardwareDeviceInterface &device) const throw ( IllegalOperationException, BusAdapterException, MaskBoundaryException, TimeoutException ) |
This routine is common to all Sequencer commands. | |
void | setOffsetPointer (uint32_t *offsetPtr) |
This is used by the PollItemFactory. | |
void | setReferenceValuePointer (uint32_t *dataPtr) |
This is used by the PollItemFactory. | |
void | setTimeoutPointer (uint32_t *timeoutPtr) |
This is used by the PollItemFactory. | |
void | setResultPointer (uint32_t *resultPtr) |
This is used by the PollItemFactory. | |
void | setReferenceValue (uint32_t offset) |
This is used by the PollItemFactory. | |
void | setOffset (uint32_t offset) |
This is used by the PollItemFactory. | |
void | setTimeout (uint32_t timeout) |
This is used by the PollItemFactory. | |
void | setPollMethod (HalPollMethod pollMethod) |
This is used by the PollItemFactory. | |
Private Attributes | |
CommandSequence & | sequence |
std::string | item |
uint32_t * | referenceValuePtr |
uint32_t | referenceValue |
uint32_t * | timeoutPtr |
uint32_t | timeout |
uint32_t * | offsetPtr |
uint32_t | offset |
uint32_t * | resultPtr |
HalPollMethod | pollMethod |
SequencerCommand to poll an item.
This Command corresponds to the pollItem method in the HardwareDeviceInterface. The syntax is :
pollItem item referenceValue timeout $varname [pollMethod] [offset]
Definition at line 52 of file PollItemCommand.hh.
HAL::PollItemCommand::PollItemCommand | ( | 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 PollItemCommand.cc.
virtual HAL::PollItemCommand::~PollItemCommand | ( | ) | [inline, virtual] |
Definition at line 62 of file PollItemCommand.hh.
void HAL::PollItemCommand::excecute | ( | const HardwareDeviceInterface & | device | ) | const throw ( IllegalOperationException, BusAdapterException, MaskBoundaryException, TimeoutException ) [virtual] |
This routine is common to all Sequencer commands.
It does what it pretends to do.
Implements HAL::SequencerCommand.
Definition at line 14 of file PollItemCommand.cc.
void HAL::PollItemCommand::setOffset | ( | uint32_t | offset | ) |
This is used by the PollItemFactory.
Definition at line 23 of file PollItemCommand.cc.
void HAL::PollItemCommand::setOffsetPointer | ( | uint32_t * | offsetPtr | ) |
This is used by the PollItemFactory.
Definition at line 35 of file PollItemCommand.cc.
void HAL::PollItemCommand::setPollMethod | ( | HalPollMethod | pollMethod | ) |
This is used by the PollItemFactory.
Definition at line 39 of file PollItemCommand.cc.
void HAL::PollItemCommand::setReferenceValue | ( | uint32_t | offset | ) |
This is used by the PollItemFactory.
Definition at line 31 of file PollItemCommand.cc.
void HAL::PollItemCommand::setReferenceValuePointer | ( | uint32_t * | dataPtr | ) |
This is used by the PollItemFactory.
Definition at line 43 of file PollItemCommand.cc.
void HAL::PollItemCommand::setResultPointer | ( | uint32_t * | resultPtr | ) |
This is used by the PollItemFactory.
Definition at line 47 of file PollItemCommand.cc.
void HAL::PollItemCommand::setTimeout | ( | uint32_t | timeout | ) |
This is used by the PollItemFactory.
Definition at line 27 of file PollItemCommand.cc.
void HAL::PollItemCommand::setTimeoutPointer | ( | uint32_t * | timeoutPtr | ) |
This is used by the PollItemFactory.
Definition at line 51 of file PollItemCommand.cc.
std::string HAL::PollItemCommand::item [private] |
Definition at line 112 of file PollItemCommand.hh.
uint32_t HAL::PollItemCommand::offset [private] |
Definition at line 118 of file PollItemCommand.hh.
uint32_t* HAL::PollItemCommand::offsetPtr [private] |
Definition at line 117 of file PollItemCommand.hh.
Definition at line 120 of file PollItemCommand.hh.
uint32_t HAL::PollItemCommand::referenceValue [private] |
Definition at line 114 of file PollItemCommand.hh.
uint32_t* HAL::PollItemCommand::referenceValuePtr [private] |
Definition at line 113 of file PollItemCommand.hh.
uint32_t* HAL::PollItemCommand::resultPtr [private] |
Definition at line 119 of file PollItemCommand.hh.
CommandSequence& HAL::PollItemCommand::sequence [private] |
Definition at line 111 of file PollItemCommand.hh.
uint32_t HAL::PollItemCommand::timeout [private] |
Definition at line 116 of file PollItemCommand.hh.
uint32_t* HAL::PollItemCommand::timeoutPtr [private] |
Definition at line 115 of file PollItemCommand.hh.