tic
130
|
Timer/Counter (TIC) C Interface. More...
Go to the source code of this file.
Functions | |
Status functions | |
int | tic_failed (int i) |
get the most error status. More... | |
const char * | tic_errortext (int i) |
Error message of the most recent error encountered. More... | |
int | tic_errorcode (int i) |
Error code of the most recent error encountered. More... | |
int | tic_diagcode (int i) |
Diagnostic code of the most recent error encountered. More... | |
Lifecycle functions | |
int | tic_init (int i) |
initialize device More... | |
int | tic_fini (int i) |
finish device use More... | |
Measurement functions | |
int | tic_count_samples (int i) |
sample count More... | |
int | tic_loop (int i) |
main loop, controls the device operation during measurements More... | |
MFAV functions | |
int | tic_mode_frequency_average (int i) |
set MFAV (frequeny average mode) More... | |
double | tic_read_frequency_average (int i) |
read sample More... | |
MPWI functions | |
int | tic_mode_pulse_width (int i) |
set MPWI (pulse width mode) More... | |
double | tic_read_pulse_width (int i) |
read sample More... | |
MPUL functions | |
int | tic_mode_pulse (int i) |
set MPUL (pulse mode) More... | |
double | tic_read_pulse_first (int i) |
read first half of sample More... | |
double | tic_read_pulse_second (int i) |
read second half of sample More... | |
MTOC functions | |
int | tic_mode_totalcount (int i) |
set MTOC (totalizing counter) More... | |
long long | tic_read_totalcount (int i) |
read totalized count More... | |
Control functions | |
int | tic_arm (int i) |
arm channel More... | |
int | tic_set_property (int i, unsigned eProp, int iVal) |
set mode properties More... | |
Test/Demo functions | |
int | tic_init_stimuli (int i) |
enable 200 kHz test mode stimuli at port IO15 More... | |
Timer/Counter (TIC) C Interface.
int tic_arm | ( | int | i | ) |
arm channel
i | device index, 0 for the first device attached |
int tic_count_samples | ( | int | i | ) |
sample count
i | device index, 0 for the first device attached |
int tic_diagcode | ( | int | i | ) |
Diagnostic code of the most recent error encountered.
An additional diagnostic code may be given for some errors.
i | device index, 0 for the first device attached |
References Failable::iErr().
int tic_errorcode | ( | int | i | ) |
Error code of the most recent error encountered.
i | device index, 0 for the first device attached |
const char* tic_errortext | ( | int | i | ) |
Error message of the most recent error encountered.
i | device index, 0 for the first device attached |
References Failable::szErr().
int tic_failed | ( | int | i | ) |
get the most error status.
Error details may requested by the tic_errortext(), tic_errorcode and tic_diagcode() functions.
i | device index, 0 for the first device attached |
References Failable::isFail().
int tic_fini | ( | int | i | ) |
finish device use
i | device index, 0 for the first device attached |
int tic_init | ( | int | i | ) |
initialize device
i | device index, 0 for the first device attached |
int tic_init_stimuli | ( | int | i | ) |
enable 200 kHz test mode stimuli at port IO15
i | device index, 0 for the first device attached |
References TicLocalInitializer::ptp().
int tic_loop | ( | int | i | ) |
main loop, controls the device operation during measurements
i | device index, 0 for the first device attached |
References TinaPlex::callTinaSample(), and TicLocalInitializer::ptp().
int tic_mode_frequency_average | ( | int | i | ) |
set MFAV (frequeny average mode)
i | device index, 0 for the first device attached |
References TinaPlex::callTinaConfig(), and TicLocalInitializer::ptp().
int tic_mode_pulse | ( | int | i | ) |
set MPUL (pulse mode)
i | device index, 0 for the first device attached |
References TinaPlex::callTinaConfig(), and TicLocalInitializer::ptp().
int tic_mode_pulse_width | ( | int | i | ) |
set MPWI (pulse width mode)
i | device index, 0 for the first device attached |
References TinaPlex::callTinaConfig(), and TicLocalInitializer::ptp().
int tic_mode_totalcount | ( | int | i | ) |
set MTOC (totalizing counter)
i | device index, 0 for the first device attached |
References TinaPlex::callTinaConfig(), and TicLocalInitializer::ptp().
double tic_read_frequency_average | ( | int | i | ) |
read sample
i | device index, 0 for the first device attached |
References ModeAvg::rdFreq().
double tic_read_pulse_first | ( | int | i | ) |
read first half of sample
i | device index, 0 for the first device attached |
double tic_read_pulse_second | ( | int | i | ) |
read second half of sample
i | device index, 0 for the first device attached |
double tic_read_pulse_width | ( | int | i | ) |
read sample
i | device index, 0 for the first device attached |
long long tic_read_totalcount | ( | int | i | ) |
read totalized count
i | device index, 0 for the first device attached |
int tic_set_property | ( | int | i, |
unsigned | eProp, | ||
int | iVal | ||
) |
set mode properties
i | device index, 0 for the first device attached |
eProp | property key |
iVal | property value |