8 #define CCONV __stdcall 9 #define PHIDGET22_API __declspec(dllimport) 11 #if defined(__BORLANDC__) || defined(_MSC_VER) 12 #define CCONV __stdcall 13 #define PHIDGET22_API __declspec(dllimport) 44 #ifndef _PHIDGET_CONSTANTS_H_ 45 #define _PHIDGET_CONSTANTS_H_ 47 #define PUNK_BOOL 0x02 48 #define PUNK_INT8 INT8_MAX 49 #define PUNK_UINT8 UINT8_MAX 50 #define PUNK_INT16 INT16_MAX 51 #define PUNK_UINT16 UINT16_MAX 52 #define PUNK_INT32 INT32_MAX 53 #define PUNK_UINT32 UINT32_MAX 54 #define PUNK_INT64 INT64_MAX 55 #define PUNK_UINT64 UINT64_MAX 56 #define PUNK_DBL 1e300 58 #define PUNK_ENUM INT32_MAX 59 #define PUNK_SIZE SIZE_MAX 67 #ifndef _PHIDGETCONSTANTS_GEN_H_ 68 #define _PHIDGETCONSTANTS_GEN_H_ 70 #define PHIDGET_SERIALNUMBER_ANY -1 // Pass to ${METHOD:setDeviceSerialNumber} to open any serial number. 71 #define PHIDGET_HUBPORT_ANY -1 // Pass to ${METHOD:setHubPort} to open any hub port. 72 #define PHIDGET_CHANNEL_ANY -1 // Pass to ${METHOD:setChannel} to open any channel. 73 #define PHIDGET_LABEL_ANY NULL // Pass to ${METHOD:setDeviceLabel} to open any label. 74 #define PHIDGET_TIMEOUT_INFINITE 0x0 // Pass to ${METHOD:openWaitForAttachment} for an infinite timeout. 75 #define PHIDGET_TIMEOUT_DEFAULT 0x3e8 // Pass to ${METHOD:openWaitForAttachment} for the default timeout. 76 #define PHIDGETSERVER_AUTHREQUIRED 0x1 // PhidgetServer flag indicating that the server requires a password to authenticate 77 #define IR_RAWDATA_LONGSPACE 0xffffffff // The value for a long space in raw data 78 #define IR_MAX_CODE_BIT_COUNT 0x80 // Maximum bit count for sent / received data 79 #define IR_MAX_CODE_STR_LENGTH 0x21 // Maximum bit count for sent / received data 1346 __declspec(dllimport)
int __stdcall Phidget_validDictionaryKey(
const char *);
3069 __declspec(dllimport)
const char * __stdcall Phidget_enumString(
const char *,
int);
3070 __declspec(dllimport)
int __stdcall Phidget_enumFromString(
const char *);
3700 double magneticField,
double offset0,
double offset1,
double offset2,
double gain0,
double gain1,
double gain2,
double T0,
double T1,
double T2,
double T3,
double T4,
double T5);
3751 double magneticField,
double offset0,
double offset1,
double offset2,
double gain0,
double gain1,
double gain2,
double T0,
double T1,
double T2,
double T3,
double T4,
double T5);
3779 const double quaternion[4],
double timestamp);
3882 int positionChange,
double timeChange,
int indexTriggered);
3943 void *
ctx, uint64_t counts,
double timeChange);
5126 const char *
key,
const char *
value);
5136 const char *
key,
const char *
value);
const char int const char * func
PhidgetDigitalOutput_LEDForwardVoltage
const char char * errorDetail
uint32_t * maxDistanceChangeTrigger
double * minVoltageChangeTrigger
PhidgetTemperatureSensor_ThermocoupleType thermocoupleType
Phidget_InputMode inputMode
struct _PhidgetMagnetometer * PhidgetMagnetometerHandle
void(__stdcall * PhidgetGPS_OnPositionChangeCallback)(PhidgetGPSHandle ch, void *ctx, double latitude, double longitude, double altitude)
int int int int int sourceX2
uint32_t(uint32_t(* amplitudes)[8]
struct _PhidgetPowerGuard * PhidgetPowerGuardHandle
double * maxSPLChangeTrigger
double * maxCorrectionTemperature
double * minTouchValueChangeTrigger
PhidgetLCD_Font const char * character
const char int const char const char Phidget_LogLevel level
PhidgetRCServo_Voltage voltage
PhidgetDataAdapter_RTSMode
void(__stdcall * PhidgetMotorPositionController_OnPositionChangeCallback)(PhidgetMotorPositionControllerHandle ch, void *ctx, double position)
double * minSPLChangeTrigger
void(__stdcall * PhidgetDCMotor_OnBrakingStrengthChangeCallback)(PhidgetDCMotorHandle ch, void *ctx, double brakingStrength)
double sensorValueChangeTrigger
PhidgetTemperatureSensor_ThermocoupleType
PhidgetDataAdapter_StopBits
double humidityChangeTrigger
double temperatureChangeTrigger
double * minMagneticFieldChangeTrigger
void(__stdcall * PhidgetRCServo_OnPositionChangeCallback)(PhidgetRCServoHandle ch, void *ctx, double position)
void(__stdcall * PhidgetGPS_OnPositionFixStateChangeCallback)(PhidgetGPSHandle ch, void *ctx, int positionFixState)
uint32_t carrierFrequency
double * maxVoltageChangeTrigger
Phidget_ChannelClass * channelClass
double * minResistanceChangeTrigger
PhidgetIR_Encoding encoding
struct PhidgetGPS_GPRMC * PhidgetGPS_GPRMCHandle
struct _PhidgetPHSensor * PhidgetPHSensorHandle
void(__stdcall * PhidgetRFID_OnTagCallback)(PhidgetRFIDHandle ch, void *ctx, const char *tag, PhidgetRFID_Protocol protocol)
double double double double double double double double double double double double T4
PhidgetSoundSensor_SPLRange
double * minVelocityLimit
void(__stdcall * PhidgetRCServo_OnTargetPositionReachedCallback)(PhidgetRCServoHandle ch, void *ctx, double position)
double pressureChangeTrigger
double * minIlluminanceChangeTrigger
const char char size_t keyListLen
const char int const char const char * src
const uint32_t size_t dataLen
PhidgetHandle size_t * arrCnt
struct _PhidgetDigitalOutput * PhidgetDigitalOutputHandle
uint32_t * maxFailsafeTime
struct _PhidgetGPS * PhidgetGPSHandle
double currentRegulatorGain
Phidget_UnitInfo * sensorUnit
void(__stdcall * PhidgetBLDCMotor_OnPositionChangeCallback)(PhidgetBLDCMotorHandle ch, void *ctx, double position)
int int PhidgetLCD_PixelState pixelState
uint32_t * minDistanceChangeTrigger
struct _PhidgetDigitalInput * PhidgetDigitalInputHandle
struct _PhidgetAccelerometer * PhidgetAccelerometerHandle
const char ** errorString
int int int int int filled
struct _PhidgetHumiditySensor * PhidgetHumiditySensorHandle
double * minTemperatureChangeTrigger
struct _PhidgetCapacitiveTouch * PhidgetCapacitiveTouchHandle
struct _PhidgetSoundSensor * PhidgetSoundSensorHandle
void(__stdcall * Phidget_AsyncCallback)(PhidgetHandle phid, void *ctx, PhidgetReturnCode returnCode)
void(__stdcall * PhidgetFrequencyCounter_OnCountChangeCallback)(PhidgetFrequencyCounterHandle ch, void *ctx, uint64_t counts, double timeChange)
void(__stdcall * PhidgetTemperatureSensor_OnTemperatureChangeCallback)(PhidgetTemperatureSensorHandle ch, void *ctx, double temperature)
struct _PhidgetVoltageRatioInput * PhidgetVoltageRatioInputHandle
PhidgetDataAdapter_Endianness
const char PhidgetRFID_Protocol int lockTag
struct PhidgetGPS_Time * PhidgetGPS_TimeHandle
double * maxFrequencyCutoff
double * maxPulseWidthLimit
double * minVoltageRatioChangeTrigger
void(__stdcall * PhidgetBLDCMotor_OnBrakingStrengthChangeCallback)(PhidgetBLDCMotorHandle ch, void *ctx, double brakingStrength)
struct _PhidgetGyroscope * PhidgetGyroscopeHandle
struct _PhidgetVoltageOutput * PhidgetVoltageOutputHandle
void(__stdcall * PhidgetSoundSensor_OnSPLChangeCallback)(PhidgetSoundSensorHandle ch, void *ctx, double dB, double dBA, double dBC, const double octaves[10])
PhidgetDataAdapter_Protocol
PhidgetVoltageInput_VoltageRange
void(__stdcall * PhidgetDistanceSensor_OnSonarReflectionsUpdateCallback)(PhidgetDistanceSensorHandle ch, void *ctx, const uint32_t distances[8], const uint32_t amplitudes[8], uint32_t count)
void(__stdcall * PhidgetMotorPositionController_OnDutyCycleUpdateCallback)(PhidgetMotorPositionControllerHandle ch, void *ctx, double dutyCycle)
double * minHumidityChangeTrigger
PhidgetStepper_ControlMode controlMode
void(__stdcall * PhidgetStepper_OnVelocityChangeCallback)(PhidgetStepperHandle ch, void *ctx, double velocity)
void(__stdcall * PhidgetStepper_OnStoppedCallback)(PhidgetStepperHandle ch, void *ctx)
double voltageChangeTrigger
double(* maxMagneticField)[3]
void(__stdcall * PhidgetFrequencyCounter_OnFrequencyChangeCallback)(PhidgetFrequencyCounterHandle ch, void *ctx, double frequency)
double * maxTemperatureChangeTrigger
struct _PhidgetDistanceSensor * PhidgetDistanceSensorHandle
typedefvoid *struct _PhidgetManager * PhidgetManagerHandle
void(__stdcall * PhidgetSpatial_OnSpatialDataCallback)(PhidgetSpatialHandle ch, void *ctx, const double acceleration[3], const double angularRate[3], const double magneticField[3], double timestamp)
double double double double double double double gain2
PhidgetDataAdapter_SPIMode
struct _PhidgetStepper * PhidgetStepperHandle
PhidgetGPS_NMEAData * NMEAData
PhidgetTemperatureSensor_RTDType RTDType
double illuminanceChangeTrigger
double(* minMagneticField)[3]
double * maxCurrentChangeTrigger
char size_t uint32_t * bitCount
void(__stdcall * PhidgetCapacitiveTouch_OnTouchCallback)(PhidgetCapacitiveTouchHandle ch, void *ctx, double touchValue)
double * minBrakingStrength
struct _PhidgetLightSensor * PhidgetLightSensorHandle
void(__stdcall * PhidgetRCServo_OnVelocityChangeCallback)(PhidgetRCServoHandle ch, void *ctx, double velocity)
double * maxMagneticFieldChangeTrigger
PhidgetFrequencyCounter_FilterType filterType
double * minFrequencyCutoff
void(__stdcall * PhidgetCurrentInput_OnCurrentChangeCallback)(PhidgetCurrentInputHandle ch, void *ctx, double current)
uint32_t * minDataInterval
void(__stdcall * Phidget_OnDetachCallback)(PhidgetHandle phid, void *ctx)
void(__stdcall * PhidgetNet_OnServerAddedCallback)(void *ctx, PhidgetServerHandle server, void *kv)
struct _Phidget * PhidgetHandle
PhidgetLCD_Font const char const uint8_t * bitmap
double voltageRatioChangeTrigger
double double double double double double double double double double double double double T5
double * maxCurrentRegulatorGain
void(__stdcall * PhidgetVoltageRatioInput_OnSensorChangeCallback)(PhidgetVoltageRatioInputHandle ch, void *ctx, double sensorValue, Phidget_UnitInfo *sensorUnit)
void(__stdcall * PhidgetIR_OnRawDataCallback)(PhidgetIRHandle ch, void *ctx, const uint32_t *data, size_t dataLen)
double double double double double double gain1
double magneticFieldChangeTrigger
struct PhidgetIR_CodeInfo * PhidgetIR_CodeInfoHandle
struct _PhidgetEncoder * PhidgetEncoderHandle
Phidget_RTDWireSetup RTDWireSetup
double double double double double double double double double double T2
PhidgetLCD_Font int int const char * text
void(__stdcall * PhidgetIR_OnLearnCallback)(PhidgetIRHandle ch, void *ctx, const char *code, PhidgetIR_CodeInfo *codeInfo)
PhidgetDataAdapter_IOVoltage
double * maxHumidityChangeTrigger
struct _PhidgetBLDCMotor * PhidgetBLDCMotorHandle
PhidgetVoltageOutput_VoltageOutputRange
double double double double double double double double double double double T3
void(__stdcall * PhidgetDCMotor_OnVelocityUpdateCallback)(PhidgetDCMotorHandle ch, void *ctx, double velocity)
void(__stdcall * PhidgetAccelerometer_OnAccelerationChangeCallback)(PhidgetAccelerometerHandle ch, void *ctx, const double acceleration[3], double timestamp)
struct _PhidgetLCD * PhidgetLCDHandle
double * maxAccelerationChangeTrigger
uint32_t * maxPositionChangeTrigger
double(* minAngularRate)[3]
void(__stdcall * PhidgetGyroscope_OnAngularRateUpdateCallback)(PhidgetGyroscopeHandle ch, void *ctx, const double angularRate[3], double timestamp)
struct _PhidgetCurrentInput * PhidgetCurrentInputHandle
uint32_t distanceChangeTrigger
int int int int int int sourceY2
uint32_t * maxDataInterval
double * minPressureChangeTrigger
double holdingCurrentLimit
int int int int int int int int int inverted
PhidgetSoundSensor_SPLRange SPLRange
PhidgetDigitalOutput_LEDForwardVoltage LEDForwardVoltage
void(__stdcall * Phidget_OnAttachCallback)(PhidgetHandle phid, void *ctx)
struct _PhidgetIR * PhidgetIRHandle
void(__stdcall * PhidgetSpatial_OnAlgorithmDataCallback)(PhidgetSpatialHandle ch, void *ctx, const double quaternion[4], double timestamp)
double horizontalDilution
double * maxBrakingStrength
void(__stdcall * PhidgetManager_OnErrorCallback)(PhidgetManagerHandle phidm, void *ctx, Phidget_ErrorEventCode errorCode, const char *errorString)
void(__stdcall * Phidget_OnErrorCallback)(PhidgetHandle phid, void *ctx, Phidget_ErrorEventCode errorCode, const char *errorString)
const char ** serverPeerName
Phidget_OnDetachCallback void * ctx
double double double double offset2
PhidgetLCD_Font int * maxCharacters
void(__stdcall * PhidgetDictionary_OnAddCallback)(PhidgetDictionaryHandle ch, void *ctx, const char *key, const char *value)
int int int int int int int destX
double accelerationChangeTrigger
double * maxTouchValueChangeTrigger
double double double double double double double double T0
double * minStallVelocity
int const char const char int const char PhidgetServerHandle * server
void(__stdcall * PhidgetVoltageRatioInput_OnVoltageRatioChangeCallback)(PhidgetVoltageRatioInputHandle ch, void *ctx, double voltageRatio)
double double double double double double double double double T1
double * minCurrentChangeTrigger
Phidget_DeviceClass * deviceClass
void(__stdcall * PhidgetDictionary_OnUpdateCallback)(PhidgetDictionaryHandle ch, void *ctx, const char *key, const char *value)
struct Phidget_UnitInfo * Phidget_UnitInfoHandle
struct _PhidgetRCServo * PhidgetRCServoHandle
double targetBrakingStrength
double double double double double gain0
void(__stdcall * PhidgetResistanceInput_OnResistanceChangeCallback)(PhidgetResistanceInputHandle ch, void *ctx, double resistance)
struct _PhidgetDictionary * PhidgetDictionaryHandle
struct _PhidgetVoltageInput * PhidgetVoltageInputHandle
PhidgetVoltageRatioInput_BridgeGain
void(__stdcall * PhidgetRFID_OnTagLostCallback)(PhidgetRFIDHandle ch, void *ctx, const char *tag, PhidgetRFID_Protocol protocol)
PhidgetLCD_Font int * width
PhidgetStepper_ControlMode
struct PhidgetGPS_Date * PhidgetGPS_DateHandle
double * minPHChangeTrigger
uint32_t * minPositionChangeTrigger
Phidget_PowerSupply powerSupply
double * minLEDCurrentLimit
const char char size_t valueLen
char size_t PhidgetRFID_Protocol * protocol
struct PhidgetGPS_GPGSA * PhidgetGPS_GPGSAHandle
const char int const char * password
struct _PhidgetTemperatureSensor * PhidgetTemperatureSensorHandle
void(__stdcall * PhidgetManager_OnDetachCallback)(PhidgetManagerHandle phidm, void *ctx, PhidgetHandle phid)
double * maxStallVelocity
const uint32_t size_t uint32_t double uint32_t gap
double * minCorrectionTemperature
void(__stdcall * PhidgetEncoder_OnPositionChangeCallback)(PhidgetEncoderHandle ch, void *ctx, int positionChange, double timeChange, int indexTriggered)
void(__stdcall * PhidgetHumiditySensor_OnHumidityChangeCallback)(PhidgetHumiditySensorHandle ch, void *ctx, double humidity)
PhidgetLCD_ScreenSize screenSize
void(__stdcall * PhidgetBLDCMotor_OnVelocityUpdateCallback)(PhidgetBLDCMotorHandle ch, void *ctx, double velocity)
void(__stdcall * Phidget_OnPropertyChangeCallback)(PhidgetHandle phid, void *ctx, const char *property)
const char ** channelClassName
const char const char * value
const char int const char int flags
struct PhidgetGPS_NMEAData * PhidgetGPS_NMEADataHandle
void(__stdcall * PhidgetVoltageInput_OnSensorChangeCallback)(PhidgetVoltageInputHandle ch, void *ctx, double sensorValue, Phidget_UnitInfo *sensorUnit)
uint32_t positionChangeTrigger
Phidget_ChannelClass uint32_t * count
PhidgetVoltageInput_VoltageRange voltageRange
const char char size_t * errorDetailLen
void(__stdcall * PhidgetIR_OnCodeCallback)(PhidgetIRHandle ch, void *ctx, const char *code, uint32_t bitCount, int isRepeat)
double * maxVelocityLimit
Phidget_OnDetachCallback fptr
PhidgetDataAdapter_Parity
struct _PhidgetFrequencyCounter * PhidgetFrequencyCounterHandle
struct _PhidgetSpatial * PhidgetSpatialHandle
PhidgetLCD_Font int int * height
struct _PhidgetPressureSensor * PhidgetPressureSensorHandle
const char ** channelName
double algorithmMagnetometerGain
void(__stdcall * PhidgetStepper_OnPositionChangeCallback)(PhidgetStepperHandle ch, void *ctx, double position)
void(__stdcall * PhidgetNet_OnServerRemovedCallback)(void *ctx, PhidgetServerHandle server)
void(__stdcall * PhidgetPHSensor_OnPHChangeCallback)(PhidgetPHSensorHandle ch, void *ctx, double PH)
int32_t * deviceSerialNumber
PhidgetTemperatureSensor_RTDType
double * maxPHChangeTrigger
char size_t PhidgetIR_CodeInfo * codeInfo
double * minAccelerationChangeTrigger
void(__stdcall * PhidgetPressureSensor_OnPressureChangeCallback)(PhidgetPressureSensorHandle ch, void *ctx, double pressure)
struct _PhidgetHub * PhidgetHubHandle
double * minPulseWidthLimit
double * maxLEDCurrentLimit
double * maxIlluminanceChangeTrigger
PhidgetVoltageOutput_VoltageOutputRange voltageOutputRange
void(__stdcall * PhidgetDictionary_OnChangeCallback)(int, const char *, void *, int, const char *, const char *)
Phidget_DeviceID * deviceID
Phidget_SpatialAlgorithm algorithm
double resistanceChangeTrigger
const uint32_t size_t uint32_t carrierFrequency
const char ** serverUniqueName
double(* maxAngularRate)[3]
PhidgetFrequencyCounter_FilterType
void(__stdcall * PhidgetLightSensor_OnIlluminanceChangeCallback)(PhidgetLightSensorHandle ch, void *ctx, double illuminance)
void(__stdcall * PhidgetDistanceSensor_OnDistanceChangeCallback)(PhidgetDistanceSensorHandle ch, void *ctx, uint32_t distance)
Phidget_ChannelSubclass * channelSubclass
double * maxPressureChangeTrigger
void(__stdcall * PhidgetManager_OnAttachCallback)(PhidgetManagerHandle phidm, void *ctx, PhidgetHandle phid)
struct _PhidgetMotorPositionController * PhidgetMotorPositionControllerHandle
void(__stdcall * PhidgetGPS_OnHeadingChangeCallback)(PhidgetGPSHandle ch, void *ctx, double heading, double velocity)
const char char * keyList
void(__stdcall * PhidgetDictionary_OnRemoveCallback)(PhidgetDictionaryHandle ch, void *ctx, const char *key)
PhidgetVoltageRatioInput_SensorType sensorType
double double double offset1
double * maxResistanceChangeTrigger
struct _PhidgetResistanceInput * PhidgetResistanceInputHandle
double * maxVoltageRatioChangeTrigger
void(__stdcall * PhidgetMagnetometer_OnMagneticFieldChangeCallback)(PhidgetMagnetometerHandle ch, void *ctx, const double magneticField[3], double timestamp)
int int int int int int int int destY
void(__stdcall * PhidgetCapacitiveTouch_OnTouchEndCallback)(PhidgetCapacitiveTouchHandle ch, void *ctx)
double currentChangeTrigger
void(__stdcall * PhidgetDCMotor_OnBackEMFChangeCallback)(PhidgetDCMotorHandle ch, void *ctx, double backEMF)
struct PhidgetGPS_GPGGA * PhidgetGPS_GPGGAHandle
struct PhidgetGPS_GPVTG * PhidgetGPS_GPVTGHandle
const char ** serverHostname
Phidget_EncoderIOMode IOMode
struct _PhidgetRFID * PhidgetRFIDHandle
__declspec(dllimport) PhidgetReturnCode __stdcall Phidget_getLibraryVersion(const char **libraryVersion)
double touchValueChangeTrigger
PhidgetVoltageRatioInput_BridgeGain bridgeGain
PhidgetVoltageRatioInput_SensorType
void(__stdcall * PhidgetDigitalInput_OnStateChangeCallback)(PhidgetDigitalInputHandle ch, void *ctx, int state)
struct _PhidgetDCMotor * PhidgetDCMotorHandle
double * minCurrentRegulatorGain
struct PhidgetServer * PhidgetServerHandle
void(__stdcall * PhidgetVoltageInput_OnVoltageChangeCallback)(PhidgetVoltageInputHandle ch, void *ctx, double voltage)
PhidgetVoltageInput_SensorType
const char ** deviceClassName
uint32_t * minFailsafeTime
double correctionTemperature