Struct aw_fel::UsbHandle [−][src]
pub struct UsbHandle<'h> { /* fields omitted */ }
USB device handle.
Methods
impl<'h> UsbHandle<'h>
[src]
impl<'h> UsbHandle<'h>
pub fn fel_fill(
&self,
offset: u32,
num_bytes: u32,
byte: u8
) -> Result<(), Error>
[src]
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.
pub fn fel_read(&self, offset: u32, buf: &mut [u8]) -> Result<(), Error>
[src]
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.
pub fn fel_write(&self, offset: u32, buf: &[u8]) -> Result<(), Error>
[src]
pub fn fel_write(&self, offset: u32, buf: &[u8]) -> Result<(), Error>
Writes to the FEL device memory at the given offset.
It will panic if the buffer overflows total memory address space.
pub fn fel_execute(&self, offset: u32) -> Result<(), Error>
[src]
pub fn fel_execute(&self, offset: u32) -> Result<(), Error>
Makes the FEL device execute the code at the given address.
Trait Implementations
impl<'h> Debug for UsbHandle<'h>
[src]
impl<'h> Debug for UsbHandle<'h>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'h> Drop for UsbHandle<'h>
[src]
impl<'h> Drop for UsbHandle<'h>