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. Slave unit.

Dependencies:   mbed-rtos mbed

spiSlaveProtocol.h

Committer:
ggudgel
Date:
2014-10-31
Revision:
0:a46303f3277c

File content as of revision 0:a46303f3277c:

#ifndef _spiSlave_included_
#define _spiSlave_included_
#include "mbed.h"

class spiSlaveProtocol
{
    public:
        spiSlaveProtocol(Serial*);
        void run(void);
    
    private:
        SPISlave* spiLine;
        int state;
        int commandBytes;
        Serial* pc;
        Timer* timout;
        
};
#endif