[][src]Struct aw_fel::UsbHandle

pub struct UsbHandle<'h> {
    device_handle: DeviceHandle<'h>,
    endpoint_in: u8,
    endpoint_out: u8,
    iface_detached: bool,
}

USB device handle.

Fields

Methods

impl<'h> UsbHandle<'h>
[src]

Creates a USB handle from the given device.

Claim the given device.

Updates the endpoints of the USB handle.

Fill memory at the given offset.

It will fill num_size bytes with the given byte.

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.

Writes to the FEL device memory at the given offset.

It will panic if the buffer overflows total memory address space.

Makes the FEL device execute the code at the given address.

Gets the SoC version information.

Reads the FEL status.

Sends a FEL request.

Reads the given data from the USB.

Writes the given data to the USB.

Sends the request type USB request.

Reads and discards the USB response. It will check if the response is correct.

Sends data to the USB in bulk.

It will divide the data in chunks.

Receives data from the USB in bulk.

It will divide the data in chunks.

Trait Implementations

impl<'h> Drop for UsbHandle<'h>
[src]

Executes the destructor for this type. Read more

impl<'h> Debug for UsbHandle<'h>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'h> Send for UsbHandle<'h>

impl<'h> Sync for UsbHandle<'h>

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more