You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
- Added a number of netlink commands to modify the CAN interface parameters. including: setting the bitrate and (for FD) setting the data bitrate, setting control modes, manually restarting the interface, and setting the automatic restart delay time.
Copy file name to clipboardExpand all lines: README.md
+10-20Lines changed: 10 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -10,25 +10,26 @@ Please see the [documentation](https://docs.rs/socketcan) for details about the
10
10
11
11
##Latest News
12
12
13
-
###Work has started on v3.1
14
-
15
-
This will primarily add support for increased Netlink functionality to do things like set the bitrate on the interface, set control modes, restart the inteface, etc.
16
-
17
-
###Version 3.x adds integrated async/await!
13
+
###Version 3.x adds integrated async/await and more!
18
14
19
15
Version 3.0 adds integrated support for async/await, with the most popular runtimes,_tokio, async-std_, and_smol_. To get started we have already merged the[tokio-socketcan](https://github.com/oefd/tokio-socketcan) crate into this one and implemented`async-io`.
20
16
21
17
Unfortunaly this required a minor breaking change to the existing API, so we bumped the version to 3.0.
22
18
23
19
The async support is optional, and can be enabled with a feature for the target runtime:`tokio`,`async-std`, or`smol`.
24
20
25
-
###Unreleased Features in This Branch (for v3.1)
21
+
Additional implementation of the netlink control of the CAN interface was added in v3.1 allws an application to do things like set the bitrate on the interface, set control modes, restart the inteface, etc.
22
+
23
+
###What's New in Version 3.1
26
24
27
25
- Added netlink functionality:
28
-
- Set the bitrate
26
+
- Set the bitrate[PR#50](https://github.com/socketcan-rs/socketcan-rs/pull/50), and the FD data bitrate
29
27
- Set the control modes (Loopback, Listen-Only, etc)
-[PR#43](https://github.com/socketcan-rs/socketcan-rs/pull/43) Implement AsPtr for CanAnyFrame
32
33
33
34
###What's New in Version 3.0
34
35
@@ -39,23 +40,12 @@ The async support is optional, and can be enabled with a feature for the target
39
40
- Added cargo build features for`tokio` or`async-io`.
40
41
- Also created specific build features for`async-std` and`smol` which just bring in the`async-io` module and alias the module name to`async-std` or`smol`, respectively, and build examples for each.
41
42
42
-
###What's New in Version 2.1
43
-
44
-
- Made`CanAddr` pulic and added functions to help interact with low-level sockaddr types. Sockets can now be opened with an address.
45
-
- Can create an`Error` directly from a`CanErrorFrame` or`std::io::ErrorKind`.
46
-
-[#46](https://github.com/socketcan-rs/socketcan-rs/issues/46) Applications can create error frames:
47
-
-`CanErrorFrame::new()` now works.
48
-
-`CanErrorFrame::new_error()` is similar but more intuitive using a raw ID word.
49
-
-`From<CanError> for CanErrorFrame` to create an error frame from a`CanError`.
- Issue[#32](https://github.com/socketcan-rs/socketcan-rs/issues/32)A number ofimportant netlink commands were added in v3.1, particularly the abilitytoset bitrates, resettheinterface, and set control modes. But the implementation is still incomplete, particularly in regard t
59
49
- Better documentation. This README will be expanded with basic usage information, along with better doc comments, and perhaps creation of the wiki