SLAC PEP-II
BABAR
SLAC<->RAL
Babar logo
HEPIC E,S & H Databases PDG HEP preprints
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews
Unwrap page!
Det. Search
Who's who?
Meetings
FAQ
Images
Archive
Systems
Performance
Intern. region
Vertex Tracker
Drift chamber
DIRC
Calorimeter
IFR
LST
Magnet
Electronics
Trigger
Operations
Run Coordination
Contact Experts
Shift Takers Info
Operations Manual
Electronic Logbook
Ops Hypernews
Shift Signup
Check this page for HTML 4.01 Transitional compliance with the
W3C Validator
(More checks...)
Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

L1DWriteLongWord< opcode, adr > Class Template Reference

#include <L1DWriteLongWord.hh>

Inheritance diagram for L1DWriteLongWord< opcode, adr >:

odfWriteLongWord odfWrite odfRequest odfRoutine odfEntry List of all members.

Public Member Functions

virtual ~L1DWriteLongWord ()
 destructor : first position since some files mentionned a VxWorks bug

 L1DWriteLongWord (odfTask *task)
 Commands are attached to an odfTask.

odfTask * task ()
 odfWriteLongWord pure virtual methods, returns the odfTask who will execute that command

unsigned clinksA () const
 odfWriteLongWord pure virtual methods, returns the 16 bit pattern of the "A" Clink

unsigned clinksB () const
 odfWriteLongWord pure virtual methods, returns the 16 bit pattern of the "B" Clink (not used with trigger boards)

odfSubSysCmnd::OpCode opCode () const
 odfWriteLongWord pure virtual methods, returns the opcode

odfSubSysCmnd::Address address () const
 odfWriteLongWord pure virtual methods, returns the "sub-command bits",

unsigned long value () const
 odfWriteLongWord pure virtual methods, returns the value to write

odfRequest::Directions done ()
void write (unsigned long link, unsigned long value)
 write "value" at C-link pattern "link"


Private Attributes

odfTask * _task
 pointer to the odfTask who will execute the command

odfSemaphore _barrier
 the semaphore is used to ensure that the data are not overwritten until they have been sent to the board(s)

unsigned _clinksA
 storage of the C-link pattern for the Dataflow call to the clinksA() method

unsigned _clinksB
 storage of the C-link pattern for the Dataflow call to the clinksB() method

unsigned long _value
 storage of the valuefor the Dataflow call to the value() method


Detailed Description

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
class L1DWriteLongWord< opcode, adr >

Template class for writing 1 long word to the board The template argument is the opcode of the command and the "sub-command bits"

Definition at line 23 of file L1DWriteLongWord.hh.


Constructor & Destructor Documentation

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
virtual L1DWriteLongWord< opcode, adr >::~L1DWriteLongWord   [inline, virtual]
 

destructor : first position since some files mentionned a VxWorks bug

Definition at line 27 of file L1DWriteLongWord.hh.

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
L1DWriteLongWord< opcode, adr >::L1DWriteLongWord odfTask *    task
 

Commands are attached to an odfTask.

Definition at line 11 of file L1DWriteLongWord.cc.


Member Function Documentation

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
odfSubSysCmnd::Address L1DWriteLongWord< opcode, adr >::address   const [inline, virtual]
 

odfWriteLongWord pure virtual methods, returns the "sub-command bits",

Implements odfWrite.

Definition at line 40 of file L1DWriteLongWord.hh.

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
unsigned L1DWriteLongWord< opcode, adr >::clinksA   const [inline, virtual]
 

odfWriteLongWord pure virtual methods, returns the 16 bit pattern of the "A" Clink

Implements odfRequest.

Definition at line 34 of file L1DWriteLongWord.hh.

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
unsigned L1DWriteLongWord< opcode, adr >::clinksB   const [inline, virtual]
 

odfWriteLongWord pure virtual methods, returns the 16 bit pattern of the "B" Clink (not used with trigger boards)

Implements odfRequest.

Definition at line 36 of file L1DWriteLongWord.hh.

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
odfRequest::Directions L1DWriteLongWord< opcode, adr >::done   [inline, virtual]
 

odfWriteLongWord pure virtual methods, executed after the command has been sent. This is not executed by the same thread so any L1DInject object should be somehow permanent (static or else)

Implements odfRequest.

Definition at line 48 of file L1DWriteLongWord.hh.

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
odfSubSysCmnd::OpCode L1DWriteLongWord< opcode, adr >::opCode   const [inline, virtual]
 

odfWriteLongWord pure virtual methods, returns the opcode

Implements odfWrite.

Definition at line 38 of file L1DWriteLongWord.hh.

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
odfTask* L1DWriteLongWord< opcode, adr >::task   [inline, virtual]
 

odfWriteLongWord pure virtual methods, returns the odfTask who will execute that command

Implements odfRequest.

Definition at line 32 of file L1DWriteLongWord.hh.

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
unsigned long L1DWriteLongWord< opcode, adr >::value   const [inline, virtual]
 

odfWriteLongWord pure virtual methods, returns the value to write

Implements odfWriteLongWord.

Definition at line 42 of file L1DWriteLongWord.hh.

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
void L1DWriteLongWord< opcode, adr >::write unsigned long    link,
unsigned long    value
 

write "value" at C-link pattern "link"

Definition at line 21 of file L1DWriteLongWord.cc.

References L1DWriteLongWord< opcode, adr >::_barrier, L1DWriteLongWord< opcode, adr >::_clinksA, L1DWriteLongWord< opcode, adr >::_clinksB, L1DWriteLongWord< opcode, adr >::_value, and odfWriteLongWord::post().


Member Data Documentation

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
odfSemaphore L1DWriteLongWord< opcode, adr >::_barrier [private]
 

the semaphore is used to ensure that the data are not overwritten until they have been sent to the board(s)

Definition at line 57 of file L1DWriteLongWord.hh.

Referenced by L1DWriteLongWord< odfSubSysCmnd::opcode17, odfSubSysCmnd::adr0 >::done(), and L1DWriteLongWord< opcode, adr >::write().

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
unsigned L1DWriteLongWord< opcode, adr >::_clinksA [private]
 

storage of the C-link pattern for the Dataflow call to the clinksA() method

Definition at line 59 of file L1DWriteLongWord.hh.

Referenced by L1DWriteLongWord< odfSubSysCmnd::opcode17, odfSubSysCmnd::adr0 >::clinksA(), and L1DWriteLongWord< opcode, adr >::write().

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
unsigned L1DWriteLongWord< opcode, adr >::_clinksB [private]
 

storage of the C-link pattern for the Dataflow call to the clinksB() method

Definition at line 61 of file L1DWriteLongWord.hh.

Referenced by L1DWriteLongWord< odfSubSysCmnd::opcode17, odfSubSysCmnd::adr0 >::clinksB(), and L1DWriteLongWord< opcode, adr >::write().

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
odfTask* L1DWriteLongWord< opcode, adr >::_task [private]
 

pointer to the odfTask who will execute the command

Definition at line 55 of file L1DWriteLongWord.hh.

Referenced by L1DWriteLongWord< odfSubSysCmnd::opcode17, odfSubSysCmnd::adr0 >::task().

template<odfSubSysCmnd::OpCode opcode, odfSubSysCmnd::Address adr>
unsigned long L1DWriteLongWord< opcode, adr >::_value [private]
 

storage of the valuefor the Dataflow call to the value() method

Definition at line 63 of file L1DWriteLongWord.hh.

Referenced by L1DWriteLongWord< odfSubSysCmnd::opcode17, odfSubSysCmnd::adr0 >::value(), and L1DWriteLongWord< opcode, adr >::write().


The documentation for this class was generated from the following files:
Generated on Thu Jun 5 20:55:54 2003 for L1DctTeststand by doxygen1.3-rc3