fdhwlib
2.0.25
|
#include <sltpagestatus.h>
To keep track of the status information there are one or more registers.
Every bit stands for a single page. This class provides some methods to deal with the page status.
Definition at line 28 of file sltpagestatus.h.
SltPageStatus::SltPageStatus | ( | ) |
SltPageStatus::~SltPageStatus | ( | ) |
void SltPageStatus::display | ( | FILE * | fout, |
const char * | name = 0 |
||
) |
Display the page status.
unsigned long SltPageStatus::get | ( | int | word | ) |
Get a status word for 32 pages.
word | Number of the status word (0..1) |
unsigned long* SltPageStatus::get | ( | ) |
Get the reference to the status words.
int SltPageStatus::getLength | ( | ) |
Get the length of the pages status register in means of 32bit words.
int SltPageStatus::getNumberOfFilledPages | ( | ) |
Get the number of filled pages.
int SltPageStatus::getNumberOfPages | ( | ) |
Get the total number of pages in the electronic.
bool SltPageStatus::isPageFilled | ( | ) |
Is any page filled with event data?
bool SltPageStatus::isPageFilled | ( | int | page | ) |
Check whether a certain page contains data.
page | Page number 0..31/63 |
SltPageStatus SltPageStatus::operator& | ( | const SltPageStatus & | status | ) | const |
Bit wise AND operation.
SltPageStatus& SltPageStatus::operator&= | ( | const SltPageStatus & | status | ) |
Bit wise AND operation, current value is modified.
SltPageStatus& SltPageStatus::operator= | ( | const SltPageStatus & | status | ) |
Copy the status registers.
SltPageStatus& SltPageStatus::operator= | ( | unsigned long * | status | ) |
Copy the status registers.
status | Pointer to an array of adequate length. |
bool SltPageStatus::operator== | ( | const SltPageStatus & | status | ) | const |
Check for equal status register values.
SltPageStatus SltPageStatus::operator^ | ( | const SltPageStatus & | status | ) | const |
Get the changed pages (exclusive or)
SltPageStatus& SltPageStatus::operator^= | ( | const SltPageStatus & | status | ) |
Bit wise EXOR operation, current value is modified.
SltPageStatus SltPageStatus::operator| | ( | const SltPageStatus & | status | ) | const |
Bit wise OR operation.
SltPageStatus& SltPageStatus::operator|= | ( | const SltPageStatus & | status | ) |
Bit wise OR operation, current value is modified.
SltPageStatus SltPageStatus::operator~ | ( | ) | const |
Get the inverted page status.
void SltPageStatus::set | ( | int | word, |
unsigned long | status | ||
) |
Set the pages status.
void SltPageStatus::setPageFilled | ( | int | page | ) |
Set a certain page to be filled.
void SltPageStatus::setPageFilled | ( | ) |
Set all pages filled.
void SltPageStatus::setPageFree | ( | int | page | ) |
Set a certain page to be free.
void SltPageStatus::setPageFree | ( | ) |
Set all pages free.
unsigned long SltPageStatus::data[SLT_PAGES/32] |
Variable that stores the bit sequences of the page status registers.
Definition at line 119 of file sltpagestatus.h.
Definition at line 121 of file sltpagestatus.h.