Classes | Defines | Enumerations | Functions
Phidget Frequency Counter
Specific Phidgets
Collaboration diagram for Phidget Frequency Counter:

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)

Detailed Description

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 Documentation

#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.

Parameters:
phidA phidget frequency counter handle.
fptrCallback function pointer.
userPtrA pointer for use by the user - this value is passed back into the callback function.

Definition at line 110 of file cphidgetfrequencycounter.h.

Definition at line 113 of file cphidgetfrequencycounter.h.

#define FREQCOUNTER_TICKS_PER_SEC   100000

Definition at line 112 of file cphidgetfrequencycounter.h.


Enumeration Type Documentation

Filter Types supported by the frequency counter.

Enumerator:
PHIDGET_FREQUENCYCOUNTER_FILTERTYPE_ZERO_CROSSING 

Zero crossing signal filter.

PHIDGET_FREQUENCYCOUNTER_FILTERTYPE_LOGIC_LEVEL 

Logic level signal filter.

PHIDGET_FREQUENCYCOUNTER_FILTERTYPE_UNKNOWN 

Filter type unknown.

PHIDGET_FREQUENCYCOUNTER_FILTERTYPE_ZERO_CROSSING 
PHIDGET_FREQUENCYCOUNTER_FILTERTYPE_LOGIC_LEVEL 
PHIDGET_FREQUENCYCOUNTER_FILTERTYPE_UNKNOWN 

Definition at line 15 of file cphidgetfrequencycounter.h.


Function Documentation

Gets the number of inputs supported by this phidget frequency counter.

Parameters:
phidAn attached phidget frequency counter handle.
countThe input count. Gets the measured frequency of an input, in Hz.
phidAn attached phidget frequency counter handle.
indexThe input index.
frequencyThe frequency. Gets the total time that has passed since the last reset on this input, in microseconds.
phidAn attached phidget frequency counter handle.
indexThe input index.
timeThe time. Gets the total number of ticks that have happened since the last reset on this input.
phidAn attached phidget frequency counter handle.
indexThe input index.
countThe tick count. Gets the timeout value for an input, in microseconds. This controls the lowest measurable frequency.
phidAn attached phidget frequency counter handle.
indexThe input index.
timeoutThe timeout. Sets the timeout value for an input, in microseconds.
phidAn attached phidget frequency counter handle.
indexThe input index.
timeoutThe timeout. Gets the enabled state for an input.
phidAn attached phidget frequency counter handle.
indexThe input index.
enabledStateThe enabled state. Sets the enabled state for an input.
phidAn attached phidget frequency counter handle.
indexThe input index.
enabledStateThe enabled state. Gets the filter type for an input.
phidAn attached phidget frequency counter handle.
indexThe input index.
filterThe filter type. Sets the filter type for an input.
phidAn attached phidget frequency counter handle.
indexThe input index.
filterThe filter type. Resets total count and total time for an input.
phidAn attached phidget frequency counter handle.
indexThe input index.


pedal_monitor
Author(s): Pedro Mendes
autogenerated on Fri Jun 6 2014 18:37:22