LabRobocon / Mbed 2 deprecated LabRobocon_2017

Dependencies:   mbed

Revision:
0:fb4269aa5fb4
diff -r 000000000000 -r fb4269aa5fb4 mylib/devices/inc/MCP3208.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mylib/devices/inc/MCP3208.h	Fri May 26 03:51:19 2017 +0000
@@ -0,0 +1,21 @@
+#ifndef __mcp3208_H
+#define __mcp3208_H
+
+#include "spi.h"
+
+/*These values include the start bit*/
+#define MCP3208_MODE_DIFF   0x04
+#define MCP3208_MODE_SINGLE 0x06
+
+typedef struct{
+    
+    int32_t adres[8];
+    
+    } adc_t;
+    
+extern adc_t mcp3208;
+
+void MCP3208_Init();
+void MCP3208_Read(uint8_t);
+
+#endif
\ No newline at end of file