This library for Seeed Studio's CAN-BUS Shield has a similar API to mbed's LPC1768 CAN library making it easy to add CAN functionality to mbed systems that support Arduino type 'Shields. This Beta release of my CAN-BUS Library is largely working but lacks interrupt 'attach' functions.
Dependents: Seeed_CAN_Hello_World ws-canrecv-1 CAN_SPI_modulo
Fork of SEEED_CAN by
Diff: seeed_can_spi.h
- Revision:
- 1:ad71faa09868
- Parent:
- 0:f5d099885d3d
- Child:
- 2:fd026fcfde94
--- a/seeed_can_spi.h Tue Nov 05 22:37:35 2013 +0000 +++ b/seeed_can_spi.h Wed Nov 06 20:16:11 2013 +0000 @@ -24,7 +24,8 @@ /** CAN driver typedefs */ - struct Seeed_MCP_CAN_Shield { + /// Type definition to hold a Seeed Studios CAN-BUS Shield connections and resources structure + struct Seeed_MCP_CAN_Shield { SPI spi; DigitalOut ncs; InterruptIn irq;