The function usbh_msc_write writes data to a mass storage device. The argument ctrl is the index of USB Host Controller. The argument dev_idx is the index of device instance. The argument blk_adr is the address of staring block to be written. The argument ptr_data is a pointer indicating the location of data to be written. The argument blk_num is a value indicating the number of blocks to be written. The usbh_msc_write function is part of the RL-USB Host Class Driver software layer. |