The function usbd_msc_read_sect reads the data that should be returned to the USB Host that requested it. The argument block specifies the starting block from where the data should be read. The argument buf is a pointer to the buffer where the read data should be stored. The argument num_of_blocks specifies the number of blocks that should be read. The function usbd_msc_read_sect is part of the USB Device Function Driver layer of the RL-USB Device Software Stack. Modifying this function to the application needs. |