#driver #networking #background-task #async #stack #embassy-net

no-std embassy-net-driver

Driver trait for the embassy-net async TCP/IP network stack

3 releases (breaking)

0.2.0 Oct 18, 2023
0.1.0 Jun 29, 2023
0.0.0 Jan 3, 2023

#2239 in Embedded development

Download history 3345/week @ 2024-09-18 2427/week @ 2024-09-25 1950/week @ 2024-10-02 2145/week @ 2024-10-09 2501/week @ 2024-10-16 2056/week @ 2024-10-23 3079/week @ 2024-10-30 3539/week @ 2024-11-06 4121/week @ 2024-11-13 5450/week @ 2024-11-20 3612/week @ 2024-11-27 3288/week @ 2024-12-04 3286/week @ 2024-12-11 4374/week @ 2024-12-18 2238/week @ 2024-12-25 4498/week @ 2025-01-01

15,074 downloads per month
Used in 46 crates (7 directly)

MIT/Apache

12KB
95 lines

embassy-net-driver

This crate contains the driver trait necessary for adding embassy-net support for a new hardware platform.

If you want to use embassy-net with already made drivers, you should depend on the main embassy-net crate, not on this crate.

If you are writing a driver, you should depend only on this crate, not on the main embassy-net crate. This will allow your driver to continue working for newer embassy-net major versions, without needing an update, if the driver trait has not had breaking changes.

See also embassy-net-driver-channel, which provides a higer-level API to construct a driver that processes packets in its own background task and communicates with the embassy-net task via packet queues for RX and TX.

Interoperability

This crate can run on any executor.

License

This work is licensed under either of

at your option.

Dependencies

~155KB