VOC, Programmer with 4MHz (posible)
[owSlave2.git] / DS18B20_VOC_DS2438_SHT / MAX1164x.h
diff --git a/DS18B20_VOC_DS2438_SHT/MAX1164x.h b/DS18B20_VOC_DS2438_SHT/MAX1164x.h
new file mode 100644 (file)
index 0000000..cf8977c
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef MAX1164x_H
+#define MAX1164x_H
+#define MAX1164x_S_SEL2 0x40
+#define MAX1164x_S_SEL1 0x20
+#define MAX1164x_S_SEL0 0x10
+#define MAX1164x_S_ECLK 0x08
+#define MAX1164x_S_BIP 0x04
+#define MAX1164_S_RESET 0x02
+
+#define MAX1164x_C_SCAN1 0x40
+#define MAX1164x_C_SCAN0 0x20
+#define MAX1164x_C_CS0  0x02
+#define MAX1164x_C_SGL 0x01
+
+
+
+void MAX1164x_init();
+void MAX1164x_config(uint8_t setup,uint8_t config);
+int16_t MAX1164x_read();
+
+
+#endif
\ No newline at end of file