Library for the MAX11300

Dependents:   MAX_IOT_KIT MAX_IOT_KIT

Fork of MAX11300 by Maxim Integrated

The MAX11300/01/11/12 are configurable mixed signal integrated circuits. The MAX11300/11 offer a SPI interface while the MAX11301/12 offer an I2C interface. The MAX11300/01 are 20 port devices while the MAX11311/12 are 12 port devices.

This library supports the family of parts by providing member functions that can manipulate the GPIO, ADC, DAC, and analog switches of the device, after it has been configured. For configuration of the device, this library requires a header file that can be generated by the MAX11300/01/11/12 Configuration Software. The configuration software can be found at the following link.

https://www.maximintegrated.com/en/products/analog/data-converters/analog-to-digital-converters/MAX11300.html/tb_tab2

Include the generated MAX113XXHex.h file into your project and update the #include in MAX113XX_Pixi.h.

Revision:
10:6efe114ef882
Parent:
9:094df3de3616
Child:
12:8054ee101bad
--- a/MAX113XX_Pixi.h	Sat May 06 00:22:47 2017 +0000
+++ b/MAX113XX_Pixi.h	Mon May 08 17:49:57 2017 +0000
@@ -36,7 +36,7 @@
 
 
 #include "mbed.h"
-#include "MAX11311Hex.h"
+#include "MAX11301Hex.h"
 
 
 /**
@@ -62,6 +62,7 @@
 {
     public:
     
+    ///Pixi devices
     enum Device_e
     {
         MAX11300 = 0,
@@ -126,6 +127,7 @@
         MODE_12
     };
     
+    ///Command results
     enum CmdResult_e
     {
         ///Failed operation
@@ -160,6 +162,10 @@
     ///@return Result of operation
     CmdResult_e singleEndedDACWrite(Ports_e port, const uint16_t data);
     
+    ///@brief Dumps pixi memory to provided Serial object
+    ///@param[in] ser - output device
+    ///@param[in] pixi - pixi device 
+    ///@return None
     void dumpPixiMemory(Serial &ser, MAX113XX_Pixi &pixi);
 
 protected:
@@ -207,6 +213,7 @@
     ///@brief MAX113XX_SPI Constructor
     ///@param[in] spiBus - reference to SPI bus for this device
     ///@param[in] cs - pin to be used for chip select
+    ///@param[in] device - pixi device; MAX11300, MAX11301,...
     ///@param[in] cnvrt - pin to be used for convert
     MAX113XX_SPI(SPI & spiBus, PinName cs, MAX113XX_Pixi::Device_e device, 
                  PinName cnvt);
@@ -240,6 +247,7 @@
 
     ///@brief MAX113XX_I2C Constructor
     ///@param[in] i2cBus - reference to I2C bus for this device
+    ///@param[in] device - pixi device; MAX11300, MAX11301,...
     ///@param[in] cnvrt - pin to be used for convert
     MAX113XX_I2C(I2C &i2cBus, MAX113XX_Pixi::Device_e device, PinName cnvt);