fn usb_write(&self, data: &[u8]) -> Result<(), Error> {
        self.send_usb_request(AW_USB_WRITE, data.len() as u32)
            .context("unable to send AW_USB_WRITE USB request")?;
        UsbHandle::usb_bulk_send(&self.device_handle, self.endpoint_out, data)
            .context("unable to send data in bulk to USB after AW_USB_WRITE USB request")?;
        self.read_usb_response()
            .context("unable to read response from USB")?;
        Ok(())
    }
/// Writes the given data to the USB.
Writes the given data to the USB.
Writes the given data to the USB .
fn usb_write(&self, data: &[u8]) -> Result<(), Error> {
        self.send_usb_request(AW_USB_WRITE, data.len() as u32)
            .context("unable to send AW_USB_WRITE USB request")?;
        UsbHandle::usb_bulk_send(&self.device_handle, self.endpoint_out, data)
            .context("unable to send data in bulk to USB after AW_USB_WRITE USB request")?;
        self.read_usb_response()
            .context("unable to read response from USB")?;
        Ok(())
    }
fn usb_write ( & self , data : & [ u8 ] ) -> Result < ( ) , Error > { self . send_usb_request ( AW_USB_WRITE , data . len ( ) as u32 ) . context ( " " ) ? ; UsbHandle :: usb_bulk_send ( & self . device_handle , self . endpoint_out , data ) . context ( " " ) ? ; self . read_usb_response ( ) . context ( " " ) ? ; Ok ( ( ) ) }
Writes the given data to the USB.
Writes the given data to the USB .
&self
data
&[u8]
&self
data
&[u8]