pub fn download_request(&self, block_num: u16, data: &[u8]) -> Result<usize> {
        let transfer_size = self.handle()?.write_control(
            requests::DFU_DNLOAD.0,
            requests::DFU_DNLOAD.1,
            block_num,
            0,
            data,
            TIMEOUT,
        )?;

        Ok(transfer_size)
    }
/// Send a DFU_DNLOAD request
///
/// A buffer containing data is written to the device and the number
/// of transferred bytes is returned
Send a DFU_DNLOAD request
A buffer containing data is written to the device and the number
of transferred bytes is returned
Send a DFU_DNLOAD request A buffer containing data is written to the device and the number of transferred bytes is returned
pub fn download_request(&self, block_num: u16, data: &[u8]) -> Result<usize> {
        let transfer_size = self.handle()?.write_control(
            requests::DFU_DNLOAD.0,
            requests::DFU_DNLOAD.1,
            block_num,
            0,
            data,
            TIMEOUT,
        )?;
        Ok(transfer_size)
    }
pub fn download_request ( & self , block_num : u16 , data : & [ u8 ] ) -> Result < usize > { let transfer_size = self . handle ( ) ? . write_control ( requests :: DFU_DNLOAD . 0 , requests :: DFU_DNLOAD . 1 , block_num , 0 , data , TIMEOUT , ) ? ; Ok ( transfer_size ) }
Send a DFU_DNLOAD request
A buffer containing data is written to the device and the number
of transferred bytes is returned
Send a DFU_DNLOAD request A buffer containing data is written to the device and the number of transferred bytes is returned
&self
block_num
u16
data
&[u8]