Commit Graph
20 Commits
Author SHA1 Message Date
reeedstudio 5e271cd095 Merge branch 'master' of https://github.com/Seeed-Studio/CAN_BUS_Shield 2014-09-12 11:08:40 +08:00
reeedstudio d26c12cca3 fix the set mask and filter fail bug 2014-09-12 11:08:06 +08:00
Lowaichung a5a1051327 Merge pull request #7 from BykeBlast/patch-2
Update mcp_can.h
2014-09-03 10:14:37 +08:00
Lowaichung 5d8d912ee3 Merge pull request #6 from BykeBlast/patch-1
Update mcp_can.cpp
2014-09-03 10:14:20 +08:00
BykeBlast ae89c09b56 Update mcp_can.h
- Added definition of readMsgBufID
2014-09-01 13:41:07 +02:00
BykeBlast 5c1392db30 Update mcp_can.cpp
- Added: buffer limit in mcp2515_readRegisterS
- Added: return code check in readMsgBuf
- Added: function readMsgBufID to read message and object id in a single phase
2014-09-01 13:36:01 +02:00
reeedstudio 64ca6c9c32 add set mask and filter example 2014-07-08 20:11:32 +08:00
Loovee 84c05a811f Merge pull request #5 from loovee/master
1. set CS when create an object
2. some other improvement
1.20
2014-07-08 13:59:30 +08:00
loovee 925f97c2c9 version 1.2 2014-07-08 13:55:49 +08:00
Loovee f1ea2df395 Update README.md 2014-05-27 14:05:04 +08:00
Loovee fec92a1b18 Merge pull request #2 from woodward1/patch-2
Set SPICS pin to output in begin()
2014-03-08 14:47:58 +08:00
Loovee 6a3db2b6b5 Merge pull request #3 from woodward1/patch-3
fixed corrupted can id bug
2014-03-08 14:47:45 +08:00
Loovee c901ecee18 Merge pull request #1 from woodward1/patch-1
Update receive_check.ino
2014-03-08 14:47:27 +08:00
woodward1 43d936ddf3 fixed corrupted can id bug
There was an error in the bit arithmatic for the can id.

Basically, if the 15th bit of the id was set, then the upper 16bits were 1 less than they should be.
e.g. 0x0001(8-F)XXX -> 0x0000(8-F)XXX
e.g. 0x0000(8-F)XXX -> 0xFFFF(8-F)XXX

The offending operation is (tbufdata[MCP_EID8]<<8). This promotes an unsigned char to a signed int, which results in the corrupted ids. The fix is to cast it to an unsigned int. Note that int's are 16 bit on avr.
2014-03-07 11:43:52 -08:00
woodward1 705f3be317 Set SPICS pin to output in begin()
It took me a while to figure this out, but the SPICS pin is not necessarily initialized to output when the arduino starts. Explicitly making it an output in the begin() method saves the library user from having to set the pin as output in their code (which they may not know they need to do, since it is not in the example code).
2014-02-28 15:57:16 -08:00
woodward1 7c20dc8ef1 Update receive_check.ino
Checking CAN.checkReceive() agains MC_STAT_RXIF_MASK doesn't seem to make sense, it was confusing to me because the code seemed to be using equality with a mask. Since checkReceive() actually returns CAN_MSGAVAIL or CAN_NOMSG, Comparison with CAN_MSGAVAIL seemed more informative than MC_STAT_RXIF_MASK.
2014-02-28 15:41:11 -08:00
Jack Shao ebd2eaebc3 Update README.md 2014-02-13 09:41:13 +08:00
reeedstudio 0db9f14e79 add 1Mb/s baudrate 2014-01-24 17:34:55 +08:00
reeedstudio 94edfca904 update 2014-01-02 11:50:38 +08:00
Loovee a9f2b39f42 Initial commit 2014-01-01 19:49:29 -08:00