Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MCP342x by
Diff: mcp342x.h
- 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;
/**
