Generic hardware access library
HAL::ResetBitCommand Class Reference

SequencerCommand to set a single bit in the hardware. More...

#include <ResetBitCommand.hh>

Inheritance diagram for HAL::ResetBitCommand:
HAL::SequencerCommand

List of all members.

Public Member Functions

 ResetBitCommand (std::string item, CommandSequence &sequence)
virtual ~ResetBitCommand ()
void excecute (const HardwareDeviceInterface &device) const throw ( BusAdapterException )
 This routine is common to all Sequencer commands.
void setVerify ()
 This is used by the WriteFactory.
void setOffset (uint32_t offset)
 This is needed by the ResetBitFactory.
void setOffsetPointer (uint32_t *offsetPtr)
 This is needed by the ResetBitFactory.

Private Attributes

CommandSequencesequence
std::string item
uint32_t * offsetPtr
uint32_t offset
HalVerifyOption verifyFlag

Detailed Description

SequencerCommand to set a single bit in the hardware.

The syntax is :

resetBit item [verifyFlag] [offset]

  • 'verifyFlag' is an optional parameter which must have the value "HAL_DO_VERIFY" or "HAL_NO_VERIFY".
  • 'offset' is an optional parameter which can be a constant or a variable. If 'offset' is provided also 'verifyFlag' must be provided.
See also:
ResetBitFactory
Author:
Christoph Schwick
Revision:
1.1
Date:
2007/03/05 18:02:10

Definition at line 36 of file ResetBitCommand.hh.


Constructor & Destructor Documentation

HAL::ResetBitCommand::ResetBitCommand ( std::string  item,
HAL::CommandSequence sequence 
)

Definition at line 4 of file ResetBitCommand.cc.

virtual HAL::ResetBitCommand::~ResetBitCommand ( ) [inline, virtual]

Definition at line 42 of file ResetBitCommand.hh.


Member Function Documentation

void HAL::ResetBitCommand::excecute ( const HardwareDeviceInterface device) const throw ( BusAdapterException ) [virtual]

This routine is common to all Sequencer commands.

It does what it pretends to do.

Implements HAL::SequencerCommand.

Definition at line 13 of file ResetBitCommand.cc.

void HAL::ResetBitCommand::setOffset ( uint32_t  offset)

This is needed by the ResetBitFactory.

Definition at line 22 of file ResetBitCommand.cc.

void HAL::ResetBitCommand::setOffsetPointer ( uint32_t *  offsetPtr)

This is needed by the ResetBitFactory.

Definition at line 26 of file ResetBitCommand.cc.

This is used by the WriteFactory.

Definition at line 18 of file ResetBitCommand.cc.


Member Data Documentation

std::string HAL::ResetBitCommand::item [private]

Definition at line 64 of file ResetBitCommand.hh.

uint32_t HAL::ResetBitCommand::offset [private]

Definition at line 66 of file ResetBitCommand.hh.

uint32_t* HAL::ResetBitCommand::offsetPtr [private]

Definition at line 65 of file ResetBitCommand.hh.

Definition at line 63 of file ResetBitCommand.hh.


The documentation for this class was generated from the following files: