Neil Bajorin
7a35c12770
incorporate @horace3 changes to fix ext and rtr #58
2018-05-26 14:15:36 -04: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
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
Gage Coprivnicar
95e3d85046
fixed rtr bit issue
...
should be good to go
2017-06-22 13:25:01 -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
Martin
c6c192df37
Update mcp_can.cpp
2016-06-03 14:04:57 +02:00
Martin
a52c58bcd2
Update mcp_can.cpp
2016-06-03 11:37:19 +02:00
Martin
37dc162c2c
Update mcp_can.cpp
2016-06-03 11:35:09 +02:00
Martin
f9423ab450
Update mcp_can.cpp
2016-06-03 11:27:31 +02:00
Martin
f5dcdfbae8
Add SPI begin transfer and end transfer
...
The SPISettings object is used to configure the SPI port for your SPI device. All 3 parameters are combined to a single SPISettings object, which is given to SPI.beginTransaction().
Syntax
SPI_BEGIN() --> SPI.beginTransaction(SPISettings(10000000, MSBFIRST, SPI_MODE0))
Stop using the SPI bus. Normally this is called after de-asserting the chip select, to allow other libraries to use the SPI bus.
Syntax
SPI_END() --> SPI.endTransaction()
2016-06-01 20:45:24 +02:00
Lowaichung
4e329a9c0c
Update mcp_can.cpp
...
add 666kbps baudrate
2016-03-10 09:29:28 +08:00
Jan Kirchner
6ca267c14a
Sloučení Seed změn do mých
...
Conflicts:
examples/receive_Blink/receive_Blink.ino
examples/receive_check/receive_check.ino
2016-01-31 11:38:58 +01:00
Jan Kirchner
7f64e05402
Comments correction
2016-01-31 09:58:23 +01:00
loovee
4209ffd693
add 25K baudrate
2016-01-27 14:04:38 +08:00
loovee
eecab748af
format
2016-01-20 10:15:13 +08:00
Lowaichung
be30db8994
Merge pull request #23 from igough/master
...
Cleanup on setMsg
2016-01-20 10:09:39 +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
igough
20bdfae8ee
Return value from setMsg
2016-01-01 08:29:31 -05:00
igough
d682900ae0
Force setMsg to clear RTR so it does not use the previous value. Have setMsg copy only as many bytes as necessary. Limit DLC to 8.
2015-12-31 18:23:04 -05: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
btetz
cf0a689dd9
Added an offset to the txbuf_n pointer so that the actual ctrl reg value is read.
...
The original code reads address 0x31, 0x41, or 0x51 "TXBnSIDH – TRANSMIT
BUFFER n STANDARD IDENTIFIER HIGH". Because that location points to a
constant value, some of the msg ids cause the program to loop 50 times
and then report a timeout error. After changing the address to point to
0x30, 0x40, or 0x50 "TXBnCTRL – TRANSMIT BUFFER n CONTROL REGISTER", all
of the messages send out properally with no timeout errors.
2015-08-25 14:15:59 +09: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
Lowaichung
9a5ea4b50f
Merge pull request #12 from BlueAndi/patch-1
...
Missing return statements added
2015-03-20 09:30:53 +08:00
Tsipizidis Charalampos
db5e77992d
Add GMLAN Baudrates support
2015-03-10 10:05:44 +02:00
Andreas Merkle
b8803af39d
Missing return statements added
2015-03-07 14:48:34 +01: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