SLAU533D September 2013 – April 2017
The MSC interface also must be initialized. First, initMscIntf() obtains from the USB API a pointer to a structure that will later be used to exchange information about SCSI READ and WRITE commands. It also registers with the API the location of a RAM buffer that the application has allocated for the exchange of block data during READ and WRITE commands.
The application must also tell the USB API about the mass storage volume's media; for example, how big it is, if it is write protected, and if it is been changed recently (if removable). It does this with USBMSC_updateMediaInfo().