pub struct UsbHandle<'h> { /* private fields */ }
Expand description
USB device handle.
Implementations
sourceimpl<'h> UsbHandle<'h>
impl<'h> UsbHandle<'h>
sourcepub fn fel_fill(&self, offset: u32, num_bytes: u32, byte: u8) -> Result<(), Error>
pub fn fel_fill(&self, offset: u32, num_bytes: u32, byte: u8) -> Result<(), Error>
Fill memory at the given offset.
It will fill num_size
bytes with the given byte.
sourcepub fn fel_read(&self, offset: u32, buf: &mut [u8]) -> Result<(), Error>
pub fn fel_read(&self, offset: u32, buf: &mut [u8]) -> Result<(), Error>
Reads from the FEL device memory at the given offset.
It will fill all the given buffer, but it will panic if the buffer overflows total memory address space.
Trait Implementations
Auto Trait Implementations
impl<'h> RefUnwindSafe for UsbHandle<'h>
impl<'h> Send for UsbHandle<'h>
impl<'h> Sync for UsbHandle<'h>
impl<'h> Unpin for UsbHandle<'h>
impl<'h> UnwindSafe for UsbHandle<'h>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more