The function usbd_msc_write_sect writes data received from the USB Host. The argument block specifies the starting block to where data should be written. The argument buf is a pointer to the buffer that holds the data that should be written. The argument num_of_blocks specifies the number of blocks that should be written. The function usbd_msc_write_sect is part of the USB Device Function Driver layer of the RL-USB Device Software Stack. Modifying this function to the application needs. |