/* Sends the CBW packet of the scsi MODE SENSE 6 command This function returns the write-protected mode. Field optional provided only by the LUN with a write protection feature.  */
static void uhi_msc_scsi_mode_sense6(uhi_msc_scsi_callback_t callback)
/* Sends the CBW packet of the scsi MODE SENSE 6 command This function returns the write-protected mode. Field optional provided only by the LUN with a write protection feature.  */
static void uhi_msc_scsi_mode_sense6(uhi_msc_scsi_callback_t callback)
{
	uhi_msc_scsi_callback = callback;
	uhi_msc_cbw.dCBWDataTransferLength = sizeof(uhi_msc_sense6);
	uhi_msc_cbw.bmCBWFlags = USB_CBW_DIRECTION_IN;
	uhi_msc_cbw.bCBWCBLength = 6;
	memset(uhi_msc_cbw.CDB, 0, sizeof(uhi_msc_cbw.CDB));
	uhi_msc_cbw.CDB[0] = SPC_MODE_SENSE6;
	uhi_msc_cbw.CDB[2] = SCSI_MS_MODE_INFEXP;
	uhi_msc_cbw.CDB[4] = sizeof(uhi_msc_sense6);
	uhi_msc_scsi(uhi_msc_scsi_mode_sense6_done,
			(uint8_t *) & uhi_msc_sense6);
}