fdhwlib
2.0.25
|
#include <sltmultiplicity.h>
The stores trigger information with a high time resolution but low spatial resolution.
Every long word of the memory block contains 4 bytes with 4 multiplicity values each of 6 bit length.
Definition at line 30 of file sltmultiplicity.h.
SltMultiplicity::SltMultiplicity | ( | const char * | name, |
int | slotID, | ||
unsigned long | regID, | ||
int | len | ||
) |
SltMultiplicity::~SltMultiplicity | ( | ) |
void SltMultiplicity::clear | ( | int | page, |
unsigned long | data = 0 |
||
) |
Write a constant value (default 0) to the multiplicity memory.
Reimplemented from SltMemory.
int SltMultiplicity::getLength | ( | ) |
Number of long words required for one page of multiplicity data.
Reimplemented from SltMemory.
char* SltMultiplicity::getName | ( | ) |
Name of the muliplicity memory.
Reimplemented from SltMemory.
void SltMultiplicity::read | ( | int | page, |
unsigned long * | data | ||
) |
Read one page of multiplicity data.
page | Pages number (0..SLT_PAGES-1) |
data | Array to store the multiplicity values The size of the array has to equal the length of the memory (use SltMultiplicity::getLength). |
Reimplemented from SltMemory.
void SltMultiplicity::read | ( | int | page, |
int | start, | ||
unsigned long * | data | ||
) |
Read one page of multiplicity data with a arbitrary start point.
page | Page number |
start | 0...999 (Use SltTime::fltAddr) |
data | Array with the returned data |
Reimplemented from SltMemory.
void SltMultiplicity::read | ( | int | page, |
int | start, | ||
unsigned long * | data, | ||
int | n | ||
) |
Read a portion of multiplicity data with a arbitrary start point.
page | Page number |
start | 0...999 (Use SltTime::fltAddr) |
data | Array with the returned data. The array has be at least of length n |
n | 0..1000 Number of the requested multiplicity data |
Reimplemented from SltMemory.
unsigned long SltMultiplicity::read | ( | int | page, |
unsigned long | addr | ||
) |
Read a single long word from the multiplicity memory.
Reimplemented from SltMemory.
void SltMultiplicity::read | ( | int | page, |
unsigned char * | data | ||
) |
Read the multiplicity and store it directly in an array with characters.
void SltMultiplicity::read | ( | int | page, |
int | start, | ||
unsigned char * | data | ||
) |
Read the multiplicity and store it directly in an array with characters.
page | Page number |
start | 0...999 (Use SltTime::fltAddr) |
data | Array with the returned data |
void SltMultiplicity::read | ( | int | page, |
int | start, | ||
unsigned char * | data, | ||
int | n | ||
) |
Read the multiplicity and store it directly in an array with characters.
Note: This function will read the whole array but the resulting array can be smaller.
page | Page number |
start | 0...999 (Use SltTime::fltAddr) |
data | Array with the returned data. The array has to be at least of length n |
n | Number of requested multiplicity data |
void SltMultiplicity::write | ( | int | page, |
unsigned long * | data | ||
) |
Write to the multiplicity memory of a page.
Reimplemented from SltMemory.
void SltMultiplicity::write | ( | int | page, |
unsigned long | addr, | ||
unsigned long | data | ||
) |
Write a single long word - this contains four multiplicity values.
Reimplemented from SltMemory.