Arnaud VALLEY / Mbed 2 deprecated Pinscape_Controller_V2_arnoz

Dependencies:   mbed FastIO FastPWM USBDevice

Revision:
48:058ace2aed1d
Parent:
47:df7a88cd249c
Child:
52:8298b2a73eb2
--- a/USBJoystick/USBJoystick.h	Thu Feb 18 07:32:20 2016 +0000
+++ b/USBJoystick/USBJoystick.h	Fri Feb 26 18:42:03 2016 +0000
@@ -225,6 +225,17 @@
          bool updateExposure(int &idx, int npix, const uint8_t *pix);
          
          /**
+         * Write the special extended exposure report with additional data about the 
+         * scan.
+         *
+         * @param edgePos the pixel position of the detected edge in this image, or -1 if none detected
+         * @param dir detected sensor orientation: 1 for standard, -1 for reversed, 0 for unknown
+         * @param avgScanTime average sensor scan time in microseconds
+         * @param processingTime time in microseconds to process the current frame
+         */
+         bool updateExposureExt(int edgePos, int dir, uint32_t avgScanTime, uint32_t processingTime);
+         
+         /**
          * Write a configuration report.
          *
          * @param numOutputs the number of configured output channels
@@ -272,13 +283,13 @@
          bool buttons(uint32_t buttons);
 
          /* USB descriptor overrides */
-         virtual uint8_t * configurationDesc();
-         virtual uint8_t * reportDescN(int n);
+         virtual const uint8_t *configurationDesc();
+         virtual const uint8_t *reportDescN(int n);
  
          /* USB descriptor string overrides */
-         virtual uint8_t *stringImanufacturerDesc();
-         virtual uint8_t *stringIserialDesc();
-         virtual uint8_t *stringIproductDesc();
+         virtual const uint8_t *stringImanufacturerDesc();
+         virtual const uint8_t *stringIserialDesc();
+         virtual const uint8_t *stringIproductDesc();
          
          /* set/get idle time */
          virtual void setIdleTime(int ifc, int rptid, int t)