diff --git a/doc/src/usbh/lib.rs.html b/doc/src/usbh/lib.rs.html index 840e1ba..42f1236 100644 --- a/doc/src/usbh/lib.rs.html +++ b/doc/src/usbh/lib.rs.html @@ -757,6 +757,10 @@ 757 758 759 +760 +761 +762 +763
//! Experimental host-side USB stack for embedded devices.
 //!
 //! `usbh` aims to abstract between two things:
@@ -1514,6 +1518,10 @@
                 _ => {}
             }
         }
+
+        if self.active_transfer.is_some() {
+            self.active_transfer.take();
+        }
     }
 }
 
\ No newline at end of file diff --git a/doc/usbh/index.html b/doc/usbh/index.html index 33f3819..639bf94 100644 --- a/doc/usbh/index.html +++ b/doc/usbh/index.html @@ -1,4 +1,4 @@ -usbh - Rust

Crate usbh

source ·
Expand description

Experimental host-side USB stack for embedded devices.

+usbh - Rust

Crate usbh

source ·
Expand description

Experimental host-side USB stack for embedded devices.

usbh aims to abstract between two things:

  • embedded USB host controllers on one side
  • diff --git a/doc/usbh/struct.UsbHost.html b/doc/usbh/struct.UsbHost.html index 6d53e9b..23ec27d 100644 --- a/doc/usbh/struct.UsbHost.html +++ b/doc/usbh/struct.UsbHost.html @@ -17,7 +17,7 @@

    Host stack phases

    For a more detailed description of these phases, check out the documentation for the Driver interface.

    -

Implementations§

source§

impl<B: HostBus> UsbHost<B>

source

pub fn new(bus: B) -> Self

Initialize the USB host stack

+

Implementations§

source§

impl<B: HostBus> UsbHost<B>

source

pub fn new(bus: B) -> Self

Initialize the USB host stack

Resets the HostBus controller using reset_controller.

source

pub fn poll(&mut self, drivers: &mut [&mut dyn Driver<B>]) -> PollResult

Poll the USB host. This must be called reasonably often.

If the host implementation has an interrupt that fires on USB activity, then calling it once in that interrupt handler is enough.