-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from de-vri-es/refactor
Refactor CanFrame API and some more things.
- Loading branch information
Showing
63 changed files
with
1,340 additions
and
873 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
CAN socket | ||
|
||
This library exposes a [`CanSocket`] and related types, | ||
allowing you to communicate over a Controller Area Network (CAN) bus. | ||
|
||
The is a standard blocking or non-blocking [`CanSocket`], | ||
and an asynchronous [`tokio::CanSocket`]. | ||
|
||
This library uses the `SocketCAN` interface and only works on Linux. | ||
|
||
Supported features: | ||
* Bind sockets to specific interfaces by name or index. | ||
* Bind sockets to *all* CAN interfaces at the same time. | ||
* Send and receive data frames and RTR frames. | ||
* Send and receive standard frames and extended frames. | ||
* Setting per-socket filters. | ||
* Control over the `loopback` and `recv_own_msgs` options. | ||
* Constructing compile-time checked CAN IDs. | ||
|
||
[`CanSocket`]: https://docs.rs/can-socket/latest/can_socket/struct.CanSocket.html | ||
[`tokio::CanSocket`]: https://docs.rs/can-socket/latest/can_socket/tokio/struct.CanSocket.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{{readme}} | ||
|
||
[`CanSocket`]: https://docs.rs/can-socket/latest/can_socket/struct.CanSocket.html | ||
[`tokio::CanSocket`]: https://docs.rs/can-socket/latest/can_socket/tokio/struct.CanSocket.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.