Each LPC1768 is capable of controlling 2 CAN bus lines. Linking multiple chips together via SPI allows for more bus lines to be monitored simultaneously. Master unit.

Dependencies:   mbed

Revision:
0:855b6e84e744
diff -r 000000000000 -r 855b6e84e744 spiMasterProtocol.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/spiMasterProtocol.h	Fri Oct 31 22:13:47 2014 +0000
@@ -0,0 +1,19 @@
+#ifndef _spiMaster_included_
+#define _spiMaster_included_
+#include "mbed.h"
+
+class spiMasterProtocol
+{
+    public:
+        spiMasterProtocol();
+        int get42(void);
+        int get84(void);
+    
+    private:
+        SPI* spiLine;
+        DigitalOut* chipSelect;
+        
+        int write(int);
+        
+};
+#endif
\ No newline at end of file