diff options
Diffstat (limited to 'embassy-usb')
| -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>, |
