fdhwlib  2.0.25
SltTimeStamp Class Reference

#include <SltTimeStamp.h>

Inheritance diagram for SltTimeStamp:
SltRegisterVector Pbus

List of all members.

Public Member Functions

Private Attributes


Detailed Description

The class provides methods to access to the time stamp data of the pages.

The parameter <width> control whether the array contains a second counter or not. If the second counter is available specify width = 2. If there is no second counter use width = 1.

Definition at line 30 of file SltTimeStamp.h.


Constructor & Destructor Documentation

SltTimeStamp::SltTimeStamp ( const char *  name,
int  slotID,
int  regID,
int  r,
int  w,
int  len,
int  width 
)
SltTimeStamp::~SltTimeStamp ( )

Member Function Documentation

unsigned long SltTimeStamp::read ( int  elem)

Unformated read like in SltRegisterVector.

The elements are numbered from 0..width*len. Where len equals the number of pages and witdh the number of long words required for the timestamp of a single page.

Reimplemented from SltRegisterVector.

void SltTimeStamp::read ( unsigned long *  data)

Unformated read like in SltRegisterVector.

As elements are numbered from 0..width*len, the size of the data array has to be at least width*len.

Reimplemented from SltRegisterVector.

void SltTimeStamp::read ( int  page,
SltTime time 
)

Read the time stamp of one page.

Parameters:
pagePage number (0..SLT_PAGES-1)
timePointer to a SltTime object. The object will be used to return the requested time stamp.
void SltTimeStamp::read ( int  page,
unsigned long *  secCount,
unsigned long *  subSecCount 
)
void SltTimeStamp::read ( SltTime time)

Read the time stamp of all pages.

Parameters:
timePointer to an array of SltTime objects The required length of the list depends on the length defined of the register vector.
void SltTimeStamp::write ( int  page,
SltTime time 
)

Write to the timestamp memory (only for simulation mode)

Parameters:
pagePage number (0..SLT_PAGES-1)
timeTime stamp to be written
void SltTimeStamp::write ( int  page,
unsigned long  secCount,
unsigned long  subSecCount 
)

Write to the timestamp memory (only for simulation mode)

Parameters:
pagePage number (0..SLT_PAGES-1)
secCountsecond part of the time stamp
subSecCountsubsecond part of the tiem stamp

Member Data Documentation

int SltTimeStamp::width [private]

Number of long words / registers required for the time stamp of a single page.

Definition at line 97 of file SltTimeStamp.h.


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