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.
spiMasterProtocol.h
- Committer:
- ggudgel
- Date:
- 2014-10-31
- Revision:
- 0:855b6e84e744
File content as of revision 0:855b6e84e744:
#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