fdhwlib
2.0.25
|
#include <FltStatistic.h>
The Register contains parameters for the statistic functions available on the FLT board.
(Implemented in Flt Version 2.00)
The mean value and the variance of the ADC input signal are calculated. This does NOT necessarily correspond with the content of ADC Memory of the FLT boards.
Changes:
Definition at line 37 of file FltStatistic.h.
FltStatistic::FltStatistic | ( | const char * | name, |
int | slotID, | ||
int | regID, | ||
int | r, | ||
int | w, | ||
int | len | ||
) |
FltStatistic::~FltStatistic | ( | ) |
void FltStatistic::disable | ( | int | ch | ) |
Disable the statisic functions.
void FltStatistic::disable | ( | ) |
Disable the statisic functions for all channels.
void FltStatistic::enable | ( | int | ch | ) |
Enable the statisic functions.
void FltStatistic::enable | ( | ) |
Enable the statisic functions for all channels.
bool FltStatistic::get | ( | int | ch, |
int * | offset, | ||
unsigned long * | n | ||
) |
Get the parameters for the statistical functions.
int FltStatistic::getOffset | ( | int | ch | ) |
int FltStatistic::getSamples | ( | int | ch | ) |
bool FltStatistic::isEnabled | ( | int | ch | ) |
Enable the statisic functions.
Returns true if the evaluation of the statistic functions is turned on.
void FltStatistic::set | ( | bool | enabled, |
int | offset, | ||
unsigned long | n | ||
) |
Broadcast the same parameters to all channels.
void FltStatistic::setOffset | ( | int | ch, |
int | offset | ||
) |
Defines a offset for the ADC values.
The statistics use the variable x, where x is calulated from the ADC values by the formular
x = ADC_i - offset.
The offset can take values from 0..1023.
void FltStatistic::setOffset | ( | int | offset | ) |
Defines the offset for all channels.
void FltStatistic::setSamples | ( | int | ch, |
int | n | ||
) |
Defines the number of samples used in the statistic functions.
Valid values for the number of samples are from 0..2^16-1.
void FltStatistic::setSamples | ( | int | n | ) |
Defines the number of samples for all channels.
int FltStatistic::writeBitsByName | ( | int | ch, |
char * | name, | ||
unsigned long | data | ||
) | [virtual] |