diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-06-29 19:51:16 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-06-29 19:55:32 +0200 |
| commit | 6eac49186d5a5da4c310027e59adcd0bf44ae514 (patch) | |
| tree | 3cbd9c15c68c7ee3859a17ec6d6fc7150e569686 /embassy-usb/src/class | |
| parent | 4feabb13bfbda46de74be09566118adc1ba49d5d (diff) | |
Release embassy-net v0.1
Diffstat (limited to 'embassy-usb/src/class')
| -rw-r--r-- | embassy-usb/src/class/cdc_ncm/embassy_net.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/embassy-usb/src/class/cdc_ncm/embassy_net.rs b/embassy-usb/src/class/cdc_ncm/embassy_net.rs index bc79b3671..670709021 100644 --- a/embassy-usb/src/class/cdc_ncm/embassy_net.rs +++ b/embassy-usb/src/class/cdc_ncm/embassy_net.rs | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | //! [`embassy-net`](crates.io/crates/embassy-net) driver for the CDC-NCM class. | 1 | //! [`embassy-net`](https://crates.io/crates/embassy-net) driver for the CDC-NCM class. |
| 2 | |||
| 2 | use embassy_futures::select::{select, Either}; | 3 | use embassy_futures::select::{select, Either}; |
| 3 | use embassy_net_driver_channel as ch; | 4 | use embassy_net_driver_channel as ch; |
| 4 | use embassy_net_driver_channel::driver::LinkState; | 5 | use embassy_net_driver_channel::driver::LinkState; |
| @@ -79,7 +80,7 @@ impl<'d, D: Driver<'d>, const MTU: usize> Runner<'d, D, MTU> { | |||
| 79 | pub type Device<'d, const MTU: usize> = embassy_net_driver_channel::Device<'d, MTU>; | 80 | pub type Device<'d, const MTU: usize> = embassy_net_driver_channel::Device<'d, MTU>; |
| 80 | 81 | ||
| 81 | impl<'d, D: Driver<'d>> CdcNcmClass<'d, D> { | 82 | impl<'d, D: Driver<'d>> CdcNcmClass<'d, D> { |
| 82 | /// Obtain a driver for using the CDC-NCM class with [`embassy-net`](crates.io/crates/embassy-net). | 83 | /// Obtain a driver for using the CDC-NCM class with [`embassy-net`](https://crates.io/crates/embassy-net). |
| 83 | pub fn into_embassy_net_device<const MTU: usize, const N_RX: usize, const N_TX: usize>( | 84 | pub fn into_embassy_net_device<const MTU: usize, const N_RX: usize, const N_TX: usize>( |
| 84 | self, | 85 | self, |
| 85 | state: &'d mut State<MTU, N_RX, N_TX>, | 86 | state: &'d mut State<MTU, N_RX, N_TX>, |
