Driver for the Microchip MCP432x series of ADCs.

Dependents:   AKDP-RevD7_014

Fork of MCP342x by Osamu Koizumi

Revision:
8:6e88da4abc41
Parent:
7:356650b8b01e
Child:
10:9e1bb1e16e68
--- a/mcp342x.h	Tue Dec 05 23:30:17 2017 +0000
+++ b/mcp342x.h	Wed May 02 20:01:57 2018 +0000
@@ -154,7 +154,7 @@
      */
     typedef struct {
         DataStatus st;
-        int16_t value;  /**< ADC value. The value takes from -2^11 to (2^11 - 1) when 12 bit sample mode, from -2^13 to (2^13 - 1) when 14 bit sample mode, from -2^15 to (2^15 - 1) when 16bit sample mode. */
+        int16_t value;  /**< ADC value. The value takes from -2^(N-1) to 2^(N-1) - 1 for N-bit sampling. */
     } Data;
     
     /**