Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/device_handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ impl<'a> DeviceHandle<'a> {
Ok(())
}


/// Clear stall/halt state of the endpoint
pub fn clear_halt(&self, endpoint: u8) -> ::Result<()> {
try_unsafe!(libusb_clear_halt(self.handle, endpoint as c_uchar));
Ok(())
}

/// Indicates whether the device has an attached kernel driver.
///
/// This method is not supported on all platforms.
Expand Down