Library for the MAX11300

Dependents:   MAXREFDES130_131_Demo MAXREFDES130_Demo MAX11300_test

Revision:
1:90e0ff21a740
Parent:
0:bfae6930d2ff
Child:
4:feb3df5409d4
--- a/MAX11300.h	Tue Jul 26 00:33:40 2016 +0000
+++ b/MAX11300.h	Wed Jul 27 01:41:08 2016 +0000
@@ -124,6 +124,12 @@
         Success 
     };
     
+    static const uint16_t MODE_BITMASK_PROCESS_1 = 0x047A;
+    
+    static const uint16_t MODE_BITMASK_PROCESS_2 = 0x0380;
+    
+    static const uint16_t MODE_BITMASK_PROCESS_3 = 0x1804;
+    
     ///@brief MAX11300 Constructor
     ///@param[in] spi_bus - reference to SPI bus for this device
     ///@param[in] cs - pin to be used for chip select
@@ -146,11 +152,9 @@
     
     CmdResult gpio_read(MAX11300_Ports port, uint8_t & state);
     
-    CmdResult adc_read(MAX11300_Ports port, uint16_t & data);
+    CmdResult single_ended_adc_read(MAX11300_Ports port, uint16_t & data);
     
-    CmdResult dac_write(MAX11300_Ports port, uint16_t data);
-    
-    CmdResult asw_cntrl(MAX11300_Ports port, uint8_t state);
+    CmdResult single_ended_dac_write(MAX11300_Ports port, uint16_t data);
     
     private:
     
@@ -160,8 +164,8 @@
     DigitalOut m_cnvt;
     
     void init(void);
-    void config_process_1(void);
-    void config_process_2(void);
+    void config_process_1(uint16_t & device_control_local);
+    void config_process_2(uint16_t & device_control_local);
     void config_process_3(void);
 };