From 59d9e46b9298ef9b3a7d141ded8830c791470b46 Mon Sep 17 00:00:00 2001 From: nilclass Date: Sun, 6 Aug 2023 11:07:24 +0000 Subject: [PATCH] deploy: 05bb8eee1a92154362af5314a24fe8add6f4f55f --- doc/src/usbh/lib.rs.html | 8 ++++++++ doc/usbh/index.html | 2 +- doc/usbh/struct.UsbHost.html | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) 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.