From 8f3c91e91b634adaca77dac6cf314445cceefc78 Mon Sep 17 00:00:00 2001 From: Jonathan McCrohan Date: Fri, 19 Oct 2012 19:38:06 +0100 Subject: Imported Upstream version 2.1.8.20120912 --- cphidget.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) (limited to 'cphidget.h') diff --git a/cphidget.h b/cphidget.h index 3ad3770..4490e38 100644 --- a/cphidget.h +++ b/cphidget.h @@ -2,7 +2,7 @@ #define __CPHIDGET /** \defgroup phidcommon Phidget Common - * Calls common to all Phidgets. See the programming manual for more specific API details, supported functionality, units, etc. + * These calls are common to all Phidgets objects. See the General Phidget Programming page for more in-depth usage instructions and examples. * @{ */ @@ -238,14 +238,6 @@ PHIDGET21_API int CCONV CPhidget_calibrate_gainoffset(CPhidgetHandle phid, int i //Some constants and function for new M3 Phidgets (General Packet Protocol) -PHIDGET21_API int CCONV CPhidgetGPP_reboot_firmwareUpgrade(CPhidgetHandle phid); -PHIDGET21_API int CCONV CPhidgetGPP_reboot_ISP(CPhidgetHandle phid); -PHIDGET21_API int CCONV CPhidgetGPP_setLabel(CPhidgetHandle phid, const char *buffer); -int CCONV CPhidgetGPP_setDeviceSpecificConfigTable(CPhidgetHandle phid, unsigned char *data, int length, int index); -int CCONV CPhidgetGPP_setDeviceWideConfigTable(CPhidgetHandle phid, unsigned char *data, int length, int index); -PHIDGET21_API int CCONV CPhidgetGPP_upgradeFirmware(CPhidgetHandle phid, unsigned char *data, int length); -PHIDGET21_API int CCONV CPhidgetGPP_eraseFirmware(CPhidgetHandle phid); - //Bit 7 (MSB) #define PHID_USB_GENERAL_PACKET_FLAG 0x80 @@ -265,9 +257,21 @@ PHIDGET21_API int CCONV CPhidgetGPP_eraseFirmware(CPhidgetHandle phid); #define PHID_USB_GENERAL_PACKET_SET_DS_TABLE 0x07 #define PHID_USB_GENERAL_PACKET_SET_DW_TABLE 0x08 #define PHID_USB_GENERAL_PACKET_FIRMWARE_UPGRADE_ERASE 0x09 +#define PHID_USB_GENERAL_PACKET_ERASE_CONFIG 0x0A +#endif +#if !defined(EXTERNALPROTO) || defined(DEBUG) +PHIDGET21_API int CCONV CPhidgetGPP_reboot_firmwareUpgrade(CPhidgetHandle phid); +PHIDGET21_API int CCONV CPhidgetGPP_reboot_ISP(CPhidgetHandle phid); +PHIDGET21_API int CCONV CPhidgetGPP_setLabel(CPhidgetHandle phid, const char *buffer); +PHIDGET21_API int CCONV CPhidgetGPP_setDeviceSpecificConfigTable(CPhidgetHandle phid, unsigned char *data, int length, int index); +PHIDGET21_API int CCONV CPhidgetGPP_setDeviceWideConfigTable(CPhidgetHandle phid, unsigned char *data, int length, int index); +PHIDGET21_API int CCONV CPhidgetGPP_upgradeFirmware(CPhidgetHandle phid, unsigned char *data, int length); +PHIDGET21_API int CCONV CPhidgetGPP_eraseFirmware(CPhidgetHandle phid); +PHIDGET21_API int CCONV CPhidgetGPP_eraseConfig(CPhidgetHandle phid); #endif + #include "cphidgetmacros.h" /** -- cgit v1.2.3