/** Event handler for the USB_Disconnect event. This indicates that the device is no longer connected to a host via\r
* the status LEDs and stops the Mass Storage management task.\r
*/\r
/** Event handler for the USB_Disconnect event. This indicates that the device is no longer connected to a host via\r
* the status LEDs and stops the Mass Storage management task.\r
*/\r
{\r
/* Stop running mass storage task */\r
Scheduler_SetTaskMode(USB_MassStorage, TASK_STOP);\r
{\r
/* Stop running mass storage task */\r
Scheduler_SetTaskMode(USB_MassStorage, TASK_STOP);\r
/** Event handler for the USB_ConfigurationChanged event. This is fired when the host set the current configuration\r
* of the USB device after enumeration - the device endpoints are configured and the Mass Storage management task started.\r
*/\r
/** Event handler for the USB_ConfigurationChanged event. This is fired when the host set the current configuration\r
* of the USB device after enumeration - the device endpoints are configured and the Mass Storage management task started.\r
*/\r
{\r
/* Setup Mass Storage In and Out Endpoints */\r
Endpoint_ConfigureEndpoint(MASS_STORAGE_IN_EPNUM, EP_TYPE_BULK,\r
{\r
/* Setup Mass Storage In and Out Endpoints */\r
Endpoint_ConfigureEndpoint(MASS_STORAGE_IN_EPNUM, EP_TYPE_BULK,\r
* control requests that are not handled internally by the USB library (including the Mass Storage class-specific\r
* requests) so that they can be handled appropriately for the application.\r
*/\r
* control requests that are not handled internally by the USB library (including the Mass Storage class-specific\r
* requests) so that they can be handled appropriately for the application.\r
*/\r
\r
/* Read in command block header */\r
Endpoint_Read_Stream_LE(&CommandBlock, (sizeof(CommandBlock) - sizeof(CommandBlock.SCSICommandData)),\r
\r
/* Read in command block header */\r
Endpoint_Read_Stream_LE(&CommandBlock, (sizeof(CommandBlock) - sizeof(CommandBlock.SCSICommandData)),\r
/* Read in command block command data */\r
Endpoint_Read_Stream_LE(&CommandBlock.SCSICommandData,\r
CommandBlock.SCSICommandLength,\r
/* Read in command block command data */\r
Endpoint_Read_Stream_LE(&CommandBlock.SCSICommandData,\r
CommandBlock.SCSICommandLength,\r
\r
/* Write the CSW to the endpoint */\r
Endpoint_Write_Stream_LE(&CommandStatus, sizeof(CommandStatus),\r
\r
/* Write the CSW to the endpoint */\r
Endpoint_Write_Stream_LE(&CommandStatus, sizeof(CommandStatus),\r
/** Stream callback function for the Endpoint stream read and write functions. This callback will abort the current stream transfer\r
* if a Mass Storage Reset request has been issued to the control endpoint.\r
*/\r
/** Stream callback function for the Endpoint stream read and write functions. This callback will abort the current stream transfer\r
* if a Mass Storage Reset request has been issued to the control endpoint.\r
*/\r