Commit Graph
40 Commits
Author SHA1 Message Date
wangcoolcandBaozhu Zuo ed18dd50ad Modified separate 2515 code, provide public interface 2020-12-10 17:10:14 +08:00
Baozhu Zuo 7d30ccccc8 Pretty printed the Arduino code with astyle 2020-02-03 15:00:22 +08:00
kaixxx 19203a365d Add sleep and gpio support + examples
Added sleep support for MCP2515 + MCP2551. This way, you can reduce the power consumption of a complete node down to around 240uA!
Changes:
- Reintroduced gpio support from commits 43521de/bac66d1 (adlerweb, 15/01/2018) and corrected the errors
- Introduced advanced sleep support based on https://github.com/coryjfowler/MCP_CAN_lib/pull/10/files
- added example code (receive_sleep and send_sleep)
- tested everything
2019-01-07 15:37:30 +01:00
Longan-Labs 54510776ff roll back to a working version 2018-01-29 18:21:12 +08:00
Florian Knodt e7715515d0 Merge remote-tracking branch 'upstream/master' into readme-pr 2018-01-15 11:28:21 +01:00
Florian Knodt 4eb5fdd3e1 Reformat and extend comments 2018-01-14 00:56:44 +01:00
Florian Knodt 15c6bfb80a Allow to use status pins as regular GPIO 2018-01-14 00:41:57 +01:00
Florian Knodt 0450568699 keep custom controller mode after configuration 2018-01-14 00:35:32 +01:00
ttlappalainen 93a7d3b589 Applied changes to base on latest Seeed version
- Backward compatibility should be OK.
- mcp2515_write_canMsg and mcp2515_read_canMsg does transfer now with
single SPI session by using SPI READ RX BUFFER and LOAD TX BUFFER
- mcp2515_start_transmit uses directly SPI instruction RTS
- removed internal data buffer. Read and write uses directly provided
buffer
- works with 8Mhz clock
- Possible to set SPI. Some boards has 2 SPI.
- Works with NMEA2000 library
- New functions for better interrupt handling
2017-09-13 17:29:04 +03:00
ttlappalainen d0575d1763 Applied changes to base on latest Seeed version
- Backward compatibility should be OK.
- mcp2515_write_canMsg and mcp2515_read_canMsg does transfer now with
single SPI session by using SPI READ RX BUFFER and LOAD TX BUFFER
- mcp2515_start_transmit uses directly SPI instruction RTS
- removed internal data buffer. Read and write uses directly provided
buffer
- works with 8Mhz clock
- Possible to set SPI. Some boards has 2 SPI.
- Works with NMEA2000 library
- New functions for better interrupt handling
2017-09-13 17:25:12 +03:00
loovee 4345845bb0 fix something in readMsgBufID 2017-06-27 17:24:43 +08:00
Gage Coprivnicar 916bfb49bf more edits to the lib 2017-06-26 16:12:33 -06:00
Gage Coprivnicar 6be2ba4b1d removed unecessary lines 2017-06-22 13:41:16 -06:00
Gage Coprivnicar 411eadba05 forgot to comment out some lines 2017-06-22 13:33:48 -06:00
loovee 84329c2601 support LinkIt ONE 2017-06-09 11:19:29 +08:00
loovee 1a6be4c121 rename some varibale and the format. 2017-02-27 16:50:41 +08:00
loovee e960b8a5d8 roll back 2016-01-20 10:07:52 +08:00
Dmitry ad4c963c9e Drop obsolete constant CAN_MAX_CHAR_IN_MESSAGE 2016-01-06 20:54:45 +03:00
Dmitry e6653b01fd Extract "send to buffer X" method 2016-01-06 19:27:03 +03:00
Dmitry a250acba70 Linux like CAN frame struct 2016-01-06 19:11:40 +03:00
Dmitry a9cbfcbf66 drop mcp_can_dfs.h 2016-01-06 18:47:52 +03:00
Dmitry 3fb00a093e rename methods, drop obsolete function 2016-01-06 16:14:38 +03:00
Dmitry adf07dc127 minor changes 2016-01-06 04:55:14 +03:00
Dmitry 42b083be63 enum RXF, consts 2016-01-06 04:27:36 +03:00
Dmitry aba5fb9225 Refactoring C -> C++ 2016-01-06 04:08:44 +03:00
Dmitry de232fcbbe Remove wait for CAN TX 2016-01-04 20:25:24 +03:00
Dmitry 75a299f28f Totally simplify 2016-01-04 19:53:06 +03:00
Dmitry 15a56d90e0 Add "mode" parameter to constructor 2015-12-26 14:49:53 +03:00
Dmitry 2d1d4f219e Add "const" to pData
Add "const" to pData to prevent compile errors in some situations
2015-12-25 01:14:22 +03:00
latonita 79b3823cf2 isExtFrame function renamed 2015-04-07 17:00:04 +03:00
latonita c4d4d05702 83.3kbps baud rate support + extended flag getter
Quite commonly used 83.3kbps added. (Chrysler, Jeep, MB, etc..)
Added ability to check type of received frame.
2015-04-07 00:55:49 +03:00
reeedstudio 0c869d8ae3 fix some bug 2014-09-17 09:07:32 +08:00
Lowaichung 27ac208404 Merge pull request #8 from ipeukes/master
Possibility to handle frames with request bit set
2014-09-12 14:08:11 +08:00
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
Ingo Peukes bc42abf219 Bugfix: When receiving a frame with remote request bit set
not clearing m_nRtr until next data frame without request bit is
received. This lead to sending out all frames in between with
request bit set aswell. Fixed by extending sendMsgBuf to
INT8U sendMsgBuf(INT32U id, INT8U ext, INT8U rtr, INT8U len, INT8U *buf)
and setMsg to
INT8U setMsg(INT32U id, INT8U ext, INT8U len, INT8U rtr, INT8U *pData)
giving the possibillity to specify if request bit is set or not when
sending a message.

Feature: New function INT8U MCP_CAN::isRemoteRequest(void) added
to make it possible to check if the remote request bit was set on
the last received message.
2014-09-03 18:47:27 +02:00
BykeBlast ae89c09b56 Update mcp_can.h
- Added definition of readMsgBufID
2014-09-01 13:41:07 +02:00
reeedstudio 64ca6c9c32 add set mask and filter example 2014-07-08 20:11:32 +08:00
loovee 925f97c2c9 version 1.2 2014-07-08 13:55:49 +08:00
reeedstudio 94edfca904 update 2014-01-02 11:50:38 +08:00