fdhwlib  2.0.25
SltRegister Class Reference

#include <SltRegister.h>

Inheritance diagram for SltRegister:
Pbus SltControlReg SltInterruptMask SltIRvector SltSetSecondCounter SltStatusReg

List of all members.

Public Member Functions

Private Attributes


Detailed Description

The class contains the register address modell of the SLT board.

The individual register address is calculated from the slot ID and the register ID.

Definition at line 30 of file SltRegister.h.


Constructor & Destructor Documentation

SltRegister::SltRegister ( const char *  name,
int  slotID,
unsigned int  regID,
int  r,
int  w 
)
virtual SltRegister::~SltRegister ( ) [virtual]

Member Function Documentation

virtual void SltRegister::get ( FEunitData **  data) [virtual]

Pass the data of the register vector to the DAQ application.

unsigned long SltRegister::getAddr ( )

Get address.

const char* SltRegister::getName ( )
bool SltRegister::isReadable ( )
bool SltRegister::isWriteable ( )
unsigned long SltRegister::read ( )

Reimplemented in SltControlReg, and SltStatusReg.

void SltRegister::setBitsToHigh ( unsigned long  mask)
void SltRegister::setBitsToLow ( unsigned long  mask)
void SltRegister::write ( unsigned long  data)
void SltRegister::writeBits ( unsigned long  data,
unsigned long  mask,
int  shift 
)
virtual int SltRegister::writeBitsByName ( char *  name,
unsigned long  data 
) [virtual]

Set a bit field by name.

The bit field have to be defined in the specialized classes.

Parameters:
namename of the bit field
datavaues to write to the specified bit field
Returns:
0 Ok, 1 bit field unknown

Reimplemented in SltControlReg, and SltSetSecondCounter.


Member Data Documentation

unsigned long SltRegister::addr [private]

Reimplemented in SltIRvector.

Definition at line 79 of file SltRegister.h.

const char* SltRegister::name [private]

Reimplemented in SltIRvector.

Definition at line 82 of file SltRegister.h.

bool SltRegister::readable [private]

Reimplemented in SltIRvector.

Definition at line 85 of file SltRegister.h.

bool SltRegister::writeable [private]

Reimplemented in SltIRvector.

Definition at line 88 of file SltRegister.h.


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