Add new Picard 4D stage SDK
authormark <mark@2c67d6c2-4361-4cd7-bd83-1149b1926c9b>
Tue, 28 Apr 2015 16:50:36 +0000 (16:50 +0000)
committermark <mark@2c67d6c2-4361-4cd7-bd83-1149b1926c9b>
Tue, 28 Apr 2015 16:50:36 +0000 (16:50 +0000)
git-svn-id: https://valelab.ucsf.edu/svn/3rdpartypublic@175 2c67d6c2-4361-4cd7-bd83-1149b1926c9b

Picard/20150428/4D-Stage DLL and Docs/PiUsb.def [new file with mode: 0644]
Picard/20150428/4D-Stage DLL and Docs/PiUsb.dll [new file with mode: 0644]
Picard/20150428/4D-Stage DLL and Docs/PiUsb.h [new file with mode: 0644]
Picard/20150428/4D-Stage DLL and Docs/PiUsb.lib [new file with mode: 0644]
Picard/20150428/4D-Stage DLL and Docs/Win32/PiUsb.dll [new file with mode: 0644]
Picard/20150428/4D-Stage DLL and Docs/Win32/PiUsb.lib [new file with mode: 0644]
Picard/20150428/4D-Stage DLL and Docs/x64/PiUsb.dll [new file with mode: 0644]
Picard/20150428/4D-Stage DLL and Docs/x64/PiUsb.lib [new file with mode: 0644]

diff --git a/Picard/20150428/4D-Stage DLL and Docs/PiUsb.def b/Picard/20150428/4D-Stage DLL and Docs/PiUsb.def
new file mode 100644 (file)
index 0000000..8f718b3
--- /dev/null
@@ -0,0 +1,153 @@
+; PiUsb.def : Declares the module parameters for the DLL.\r
+\r
+LIBRARY      "PiUsb"\r
+\r
+EXPORTS\r
+; Shutter Wrapper functions\r
+piConnectShutter\r
+piDisconnectShutter\r
+piSetShutterState\r
+piGetShutterState\r
+; Flipper Wrapper Functions\r
+piConnectFlipper\r
+piDisconnectFlipper\r
+piSetFlipperState\r
+piGetFlipperState\r
+; Relay Wrapper functions\r
+piConnectRelay\r
+piDisconnectRelay\r
+piSetRelayStates\r
+piGetRelayStates\r
+; Filter Wheel Wrapper functions\r
+piConnectFilter\r
+piDisconnectFilter\r
+piSetFilterPosition\r
+piGetFilterPosition\r
+; Motor and Motor II Wrapper functions\r
+piConnectMotor\r
+piDisconnectMotor\r
+piGetMotorPosition\r
+piSetMotorVelocity\r
+piRunMotorToPosition\r
+piHomeMotor\r
+piGetMotorHomeStatus\r
+piGetMotorMovingStatus\r
+piGetMotorVelocity\r
+piHaltMotor\r
+; Twister Wrapper functions\r
+piConnectTwister\r
+piDisconnectTwister\r
+piSetTwisterPositionZero\r
+piRunTwisterToPosition\r
+piRunTwisterContinuous\r
+piHaltTwister\r
+piGetTwisterMovingStatus\r
+piGetTwisterPosition\r
+piGetTwisterVelocity\r
+; Rotator Wrapper functions\r
+piConnectRotator\r
+piDisconnectRotator\r
+piSetRotatorPosition\r
+piGetRotatorPosition\r
+; Gradient Wheel Wrapper functions\r
+piConnectGWheel\r
+piDisconnectGWheel\r
+piSetGWheelPosition\r
+piGetGWheelPosition\r
+; Valve wrapper functions\r
+piConnectValve\r
+piDisconnectValve\r
+piSetValveStates\r
+piGetValveStates\r
+piGetValveSensor\r
+; Wrappers for Labview\r
+; Shutter\r
+piCreateShutterObj\r
+piDestroyShutterObj\r
+piConnectShutterObj\r
+piShutterSet\r
+piShutterReset\r
+piShutterOpen\r
+piShutterConnected\r
+; Flipper\r
+piCreateFlipperObj\r
+piDestroyFlipperObj\r
+piConnectFlipperObj\r
+piFlipperExtend\r
+piFlipperRetract\r
+piFlipperExtended\r
+piFlipperConnected\r
+; Filter\r
+piCreateFilterObj\r
+piDestroyFilterObj\r
+piConnectFilterObj\r
+piGoFilterPosition\r
+piFilterPosition\r
+piFilterConnected\r
+; Relay\r
+piCreateRelayObj\r
+piDestroyRelayObj\r
+piConnectRelayObj\r
+piRelaySet\r
+piRelayGet\r
+piRelayConnected\r
+; Motor and Motor II\r
+piCreateMotorObj\r
+piDestroyMotorObj\r
+piConnectMotorLV\r
+piHomeMotorLV\r
+piSetVelocityLV\r
+piSetPositionZeroLV\r
+piHaltMotorLV\r
+piRunToPositionLV\r
+piInHomePositionLV\r
+piMotorMovingLV\r
+piMotorVelocityLV\r
+piMotorPositionLV\r
+piMotorConnectedLV\r
+; Twister\r
+piCreateTwisterObj\r
+piDestroyTwisterObj\r
+piConnectTwisterLV\r
+piSetTwisterPositionZeroLV\r
+piRunTwisterToPositionLV\r
+piRunTwisterContinuousLV\r
+piHaltTwisterLV\r
+piTwisterMovingLV\r
+piTwisterPositionLV\r
+piTwisterVelocityLV\r
+piTwisterConnectedLV\r
+; Laser Wrapper functions\r
+piConnectLaser\r
+piDisconnectLaser\r
+piSetLaserStates\r
+piGetLaserStates\r
+; Laser\r
+piCreateLaserObj\r
+piDestroyLaserObj\r
+piConnectLaserObj\r
+piLaserSet\r
+piLaserGet\r
+piLaserConnected\r
+; Rotator\r
+piCreateRotatorObj\r
+piDestroyRotatorObj\r
+piConnectRotatorObj\r
+piGoRotatorPosition\r
+piRotatorPosition\r
+piRotatorConnected\r
+; Gradient Wheel\r
+piCreateGradientObj\r
+piDestroyGradientObj\r
+piConnectGradientObj\r
+piGoGradientPosition\r
+piGradientPosition\r
+piGradientConnected\r
+; Valve\r
+piCreateValveObj\r
+piDestroyValveObj\r
+piValveSet\r
+piValveGet\r
+piValveGetSensor\r
+piValveConnected\r
+\r
diff --git a/Picard/20150428/4D-Stage DLL and Docs/PiUsb.dll b/Picard/20150428/4D-Stage DLL and Docs/PiUsb.dll
new file mode 100644 (file)
index 0000000..fc92da9
Binary files /dev/null and b/Picard/20150428/4D-Stage DLL and Docs/PiUsb.dll differ
diff --git a/Picard/20150428/4D-Stage DLL and Docs/PiUsb.h b/Picard/20150428/4D-Stage DLL and Docs/PiUsb.h
new file mode 100644 (file)
index 0000000..8afd201
--- /dev/null
@@ -0,0 +1,103 @@
+// PiUsb.h   Function definitions\r
+// Version 1.17  2014-03-14\r
+\r
+#ifndef PIUSB_H\r
+#define PIUSB_H\r
+\r
+// All returned int values are the ErrorNumber.\r
+// Connect functions return a device pointer.\r
+\r
+#define PI_NO_ERROR 0\r
+#define PI_DEVICE_NOT_FOUND 1\r
+#define PI_OBJECT_NOT_FOUND 2\r
+#define PI_CANNOT_CREATE_OBJECT 3\r
+\r
+#define PI_SHUTTER_OPEN 1\r
+#define PI_SHUTTER_CLOSED 0\r
+\r
+#define PI_FLIPPER_EXTENDED 1\r
+#define PI_FLIPPER_RETRACTED 0\r
+\r
+// Use the C linkage convention.\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+// Shutter Functions\r
+void * __stdcall piConnectShutter(int * ErrorNumber, int SerialNum);\r
+void __stdcall piDisconnectShutter(void * devicePtr);\r
+int __stdcall piSetShutterState(int ShutterState, void * devicePtr);\r
+int __stdcall piGetShutterState(int * CurrentShutterState, void * devicePtr);\r
+\r
+// Flipper Functions\r
+void * __stdcall piConnectFlipper(int * ErrorNumber, int SerialNum);\r
+void __stdcall piDisconnectFlipper(void * devicePtr);\r
+int __stdcall piSetFlipperState(int FlipperStatevoid, void * devicePtr);\r
+int __stdcall piGetFlipperState(int *CurrentFlipperState, void * devicePtr);\r
+\r
+// USB Motor Functions\r
+void * __stdcall piConnectMotor(int * ErrorNumber, int SerialNum);\r
+void __stdcall piDisconnectMotor(void * devicePtr);\r
+int __stdcall piHomeMotor(int Velocity, void * devicePtr);\r
+int __stdcall piSetMotorVelocity(int Velocity, void * devicePtr);\r
+int __stdcall piHaltMotor(void * devicePtr);\r
+int __stdcall piRunMotorToPosition( int Position, int Velocity, void * devicePtr);\r
+int __stdcall piGetMotorHomeStatus(BOOL * AtHome, void * devicePtr);\r
+int __stdcall piGetMotorMovingStatus(BOOL * Moving, void * devicePtr);\r
+int __stdcall piGetMotorVelocity(int * ReportedVelocity, void * devicePtr);\r
+int __stdcall piGetMotorPosition(int * ReportedPosition, void * devicePtr);\r
+\r
+// USB Twister Functions\r
+void * __stdcall piConnectTwister(int * ErrorNumber, int SerialNum);\r
+void __stdcall piDisconnectTwister(void * devicePtr);\r
+int __stdcall piSetTwisterPositionZero(void * devicePtr);\r
+int __stdcall piRunTwisterToPosition( int Position, int Velocity, void * devicePtr);\r
+int __stdcall piRunTwisterContinuous( int Direction, int Velocity, void * devicePtr);\r
+int __stdcall piHaltTwister(void * devicePtr);\r
+int __stdcall piGetTwisterMovingStatus(BOOL * Moving, void * devicePtr);\r
+int __stdcall piGetTwisterPosition(int * ReportedPosition, void * devicePtr);\r
+int __stdcall piGetTwisterVelocity(int * ReportedVelocity, void * devicePtr);\r
+\r
+// Filter Wheel Functions\r
+void * __stdcall piConnectFilter(int * ErrorNumber, int SerialNum);\r
+void __stdcall piDisconnectFilter(void * devicePtr);\r
+int __stdcall piSetFilterPosition(int Position, void * devicePtr);\r
+int __stdcall piGetFilterPosition(int * ReportedPosition, void * devicePtr);\r
+\r
+// Gradient Wheel Functions\r
+void * __stdcall piConnectGWheel(int * ErrorNumber, int SerialNum);\r
+void __stdcall piDisconnectGWheel(void * devicePtr);\r
+int __stdcall piSetGWheelPosition(int Position, void * devicePtr);\r
+int __stdcall piGetGWheelPosition(int * ReportedPosition, void * devicePtr);\r
+\r
+// Relay Functions\r
+void * __stdcall piConnectRelay(int * ErrorNumber, int SerialNum);\r
+void __stdcall piDisconnectRelay(void * devicePtr);\r
+int __stdcall piSetRelayStates(int RelayStates, void * devicePtr);  // Bit 0 = relay 1, Bit 1 = relay 2...etc.\r
+int __stdcall piGetRelayStates(int * ReportedStates, void * devicePtr);\r
+\r
+// Laser Functions\r
+void * __stdcall piConnectLaser(int * ErrorNumber, int SerialNum);\r
+void __stdcall piDisconnectLaser(void * devicePtr);\r
+int __stdcall piSetLaserStates(int LaserStates, void * devicePtr);  // Bit 3 controls laser\r
+int __stdcall piGetLaserStates(int * ReportedStates, void * devicePtr);\r
+\r
+// Rotator Functions\r
+void * __stdcall piConnectRotator(int * ErrorNumber, int SerialNum);\r
+void __stdcall piDisconnectRotator(void * devicePtr);\r
+int __stdcall piSetRotatorPosition(int Position, void * devicePtr);\r
+int __stdcall piGetRotatorPosition(int * ReportedPosition, void * devicePtr);\r
+\r
+// Valve Functions\r
+void * __stdcall piConnectValve(int * ErrorNumber, int SerialNum);\r
+void __stdcall piDisconnectValve(void * devicePtr);\r
+int __stdcall piSetValveStates(int ValveStates, void * devicePtr);  // Bit 0 = valve 1, Bit 1 = valve 2\r
+int __stdcall piGetValveStates(int * ReportedStates, void * devicePtr);\r
+int __stdcall piGetValveSensor(int * SensorValue, int SensorNumber, void * devicePtr); // Sensor number = 0 or 1\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
+#endif // PIUSB_H\r
+\r
diff --git a/Picard/20150428/4D-Stage DLL and Docs/PiUsb.lib b/Picard/20150428/4D-Stage DLL and Docs/PiUsb.lib
new file mode 100644 (file)
index 0000000..1b10879
Binary files /dev/null and b/Picard/20150428/4D-Stage DLL and Docs/PiUsb.lib differ
diff --git a/Picard/20150428/4D-Stage DLL and Docs/Win32/PiUsb.dll b/Picard/20150428/4D-Stage DLL and Docs/Win32/PiUsb.dll
new file mode 100644 (file)
index 0000000..9bb7c65
Binary files /dev/null and b/Picard/20150428/4D-Stage DLL and Docs/Win32/PiUsb.dll differ
diff --git a/Picard/20150428/4D-Stage DLL and Docs/Win32/PiUsb.lib b/Picard/20150428/4D-Stage DLL and Docs/Win32/PiUsb.lib
new file mode 100644 (file)
index 0000000..3a83669
Binary files /dev/null and b/Picard/20150428/4D-Stage DLL and Docs/Win32/PiUsb.lib differ
diff --git a/Picard/20150428/4D-Stage DLL and Docs/x64/PiUsb.dll b/Picard/20150428/4D-Stage DLL and Docs/x64/PiUsb.dll
new file mode 100644 (file)
index 0000000..6f1d008
Binary files /dev/null and b/Picard/20150428/4D-Stage DLL and Docs/x64/PiUsb.dll differ
diff --git a/Picard/20150428/4D-Stage DLL and Docs/x64/PiUsb.lib b/Picard/20150428/4D-Stage DLL and Docs/x64/PiUsb.lib
new file mode 100644 (file)
index 0000000..7ce7e18
Binary files /dev/null and b/Picard/20150428/4D-Stage DLL and Docs/x64/PiUsb.lib differ