![]() |
Classes | |
struct | CPhidgetFrequencyCounterInfo |
Defines | |
#define | FREQCOUNTER_FLAG_CH0_ENABLE 0x08 |
#define | FREQCOUNTER_FLAG_CH0_LOGIC 0x02 |
#define | FREQCOUNTER_FLAG_CH1_ENABLE 0x04 |
#define | FREQCOUNTER_FLAG_CH1_LOGIC 0x01 |
#define | FREQCOUNTER_MAXINPUTS 2 |
#define | FREQCOUNTER_MICROSECONDS_PER_TICK (1000000 / FREQCOUNTER_TICKS_PER_SEC) |
#define | FREQCOUNTER_TICKS_PER_SEC 100000 |
Enumerations | |
enum | CPhidgetFrequencyCounter_FilterType { PHIDGET_FREQUENCYCOUNTER_FILTERTYPE_ZERO_CROSSING = 1, PHIDGET_FREQUENCYCOUNTER_FILTERTYPE_LOGIC_LEVEL, PHIDGET_FREQUENCYCOUNTER_FILTERTYPE_UNKNOWN, PHIDGET_FREQUENCYCOUNTER_FILTERTYPE_ZERO_CROSSING = 1, PHIDGET_FREQUENCYCOUNTER_FILTERTYPE_LOGIC_LEVEL, PHIDGET_FREQUENCYCOUNTER_FILTERTYPE_UNKNOWN } |
Functions | |
PHIDGET21_API int CCONV | CPhidgetFrequencyCounter_reset (CPhidgetFrequencyCounterHandle phid, int index) |
These calls are specific to the Phidget Frequency Counter object. See your device's User Guide for more specific API details, technical information, and revision details. The User Guide, along with other resources, can be found on the product page for your device.
#define FREQCOUNTER_FLAG_CH0_ENABLE 0x08 |
Definition at line 119 of file cphidgetfrequencycounter.h.
#define FREQCOUNTER_FLAG_CH0_LOGIC 0x02 |
Definition at line 117 of file cphidgetfrequencycounter.h.
#define FREQCOUNTER_FLAG_CH1_ENABLE 0x04 |
Definition at line 118 of file cphidgetfrequencycounter.h.
#define FREQCOUNTER_FLAG_CH1_LOGIC 0x01 |
Definition at line 116 of file cphidgetfrequencycounter.h.
#define FREQCOUNTER_MAXINPUTS 2 |
Sets a count event handler. This is called when ticks have been counted on an input, or when the timeout has passed.
phid | A phidget frequency counter handle. |
fptr | Callback function pointer. |
userPtr | A pointer for use by the user - this value is passed back into the callback function. |
Definition at line 110 of file cphidgetfrequencycounter.h.
#define FREQCOUNTER_MICROSECONDS_PER_TICK (1000000 / FREQCOUNTER_TICKS_PER_SEC) |
Definition at line 113 of file cphidgetfrequencycounter.h.
#define FREQCOUNTER_TICKS_PER_SEC 100000 |
Definition at line 112 of file cphidgetfrequencycounter.h.
Filter Types supported by the frequency counter.
Definition at line 15 of file cphidgetfrequencycounter.h.
PHIDGET21_API int CCONV CPhidgetFrequencyCounter_reset | ( | CPhidgetFrequencyCounterHandle | phid, |
int | index | ||
) |
Gets the number of inputs supported by this phidget frequency counter.
phid | An attached phidget frequency counter handle. |
count | The input count. Gets the measured frequency of an input, in Hz. |
phid | An attached phidget frequency counter handle. |
index | The input index. |
frequency | The frequency. Gets the total time that has passed since the last reset on this input, in microseconds. |
phid | An attached phidget frequency counter handle. |
index | The input index. |
time | The time. Gets the total number of ticks that have happened since the last reset on this input. |
phid | An attached phidget frequency counter handle. |
index | The input index. |
count | The tick count. Gets the timeout value for an input, in microseconds. This controls the lowest measurable frequency. |
phid | An attached phidget frequency counter handle. |
index | The input index. |
timeout | The timeout. Sets the timeout value for an input, in microseconds. |
phid | An attached phidget frequency counter handle. |
index | The input index. |
timeout | The timeout. Gets the enabled state for an input. |
phid | An attached phidget frequency counter handle. |
index | The input index. |
enabledState | The enabled state. Sets the enabled state for an input. |
phid | An attached phidget frequency counter handle. |
index | The input index. |
enabledState | The enabled state. Gets the filter type for an input. |
phid | An attached phidget frequency counter handle. |
index | The input index. |
filter | The filter type. Sets the filter type for an input. |
phid | An attached phidget frequency counter handle. |
index | The input index. |
filter | The filter type. Resets total count and total time for an input. |
phid | An attached phidget frequency counter handle. |
index | The input index. |