Library for MAXREFDES72# that supports configuration of shield for different PMOD types and the DS3231 RTC

Dependencies:   ds3231 max14661

Dependents:   ard2pmod_demo max14724_hello_world ALS_Proximity_Demo

Ard2Pmod Shield Component Page

Revision:
16:abb327ca5580
Parent:
15:014ab2d734e0
--- a/ard2pmod.h	Thu Mar 12 19:37:18 2015 +0000
+++ b/ard2pmod.h	Thu Mar 19 21:53:04 2015 +0000
@@ -57,23 +57,6 @@
 
 #define ARD2PMOD_SDA D14
 #define ARD2PMOD_SCL D15
-
-
-/**
-* pmod_type_t - enumerated PMOD types
-*/
-typedef enum
-{
-	PMOD_TYPE_I2C_A,
-	PMOD_TYPE_I2C_B,
-	PMOD_TYPE_I2C_AB,
-	PMOD_TYPE_1_GPIO,
-	PMOD_TYPE_2_SPI,
-	PMOD_TYPE_3_UART,
-	PMOD_TYPE_4_UART,
-	PMOD_TYPE_5_HBRIDGE,
-	PMOD_TYPE_6_HBRIDGE
-}pmod_type_t;
 	
 	
 /******************************************************************//**
@@ -116,6 +99,24 @@
 class Ard2Pmod : public Max14661, public Ds3231
 {
     public:
+        
+        /**
+		* pmod_type_t - enumerated PMOD types
+		*/
+		typedef enum
+		{
+			PMOD_TYPE_I2C_A,
+			PMOD_TYPE_I2C_B,
+			PMOD_TYPE_I2C_AB,
+			PMOD_TYPE_1_GPIO,
+			PMOD_TYPE_2_SPI,
+			PMOD_TYPE_3_UART,
+			PMOD_TYPE_4_UART,
+			PMOD_TYPE_5_HBRIDGE,
+			PMOD_TYPE_6_HBRIDGE
+		}pmod_type_t;
+
+
     	/**************************************************************//**
 	    * Default constructor for Ard2Pmod Class, all mux switches open
 	    * Use with Max14661 member functions for custom mux settings