Struct aw_fel::UsbHandle
[−]
[src]
pub struct UsbHandle<'h> { /* fields omitted */ }
USB device handle.
Methods
impl<'h> UsbHandle<'h>
[src]
fn fel_fill(&self, offset: u32, num_bytes: u32, byte: u8) -> Result<()>
Fill memory at the given offset.
It will fill num_size
bytes with the given byte.
fn fel_read(&self, offset: u32, buf: &mut [u8]) -> Result<()>
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.
fn fel_write(&self, offset: u32, buf: &[u8]) -> Result<()>
Writes to the FEL device memory at the given offset.
It will panic if the buffer overflows total memory address space.
fn fel_execute(&self, offset: u32) -> Result<()>
Makes the FEL device execute the code at the given address.