Microchip MCP342x ADC library

Revision:
4:9480edf3926d
Parent:
2:639a5612903f
Child:
5:0ca445d2d2bc
--- a/mcp342x.h	Tue Jul 18 09:43:27 2017 +0000
+++ b/mcp342x.h	Mon Sep 10 17:02:22 2018 +0000
@@ -190,7 +190,7 @@
     * @param device_address Address for this sensor
     */
     MCP342x(I2C *i2c, uint8_t device_address = 0b000);
-
+    
     /**
     * Set channel to read from.
     *
@@ -216,6 +216,8 @@
     */
     void set_resolution(mcp342x_resolution_t resolution);
 
+    uint8_t read_configuration();
+    
     /**
     * Set programable gain amplifier. Options are
     * MCP342x::PGA_1, MCP342x::PGA_2, MCP342x::PGA_4, or MCP342x::PGA_8.
@@ -253,6 +255,7 @@
     uint8_t _configuration;
     static const uint8_t _device_code = 0b1101; // Hardcoded in factory
     void _write_configuration();
+    void _startRead();
 
     // Variables needed for converting digital output codes to real
     // values (i.e. voltage).