Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: mylib/devices/inc/MCP3208.h
- 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