/* Sends the CBW packet of the scsi READ CAPACITY command.  */
static void uhi_msc_scsi_read_capacity(uhi_msc_scsi_callback_t callback)
/* Sends the CBW packet of the scsi READ CAPACITY command.  */
static void uhi_msc_scsi_read_capacity(uhi_msc_scsi_callback_t callback)
{
	uhi_msc_scsi_callback = callback;
	uhi_msc_cbw.dCBWDataTransferLength = sizeof(struct sbc_read_capacity10_data);
	uhi_msc_cbw.bmCBWFlags = USB_CBW_DIRECTION_IN;
	uhi_msc_cbw.bCBWCBLength = 10;
	memset(uhi_msc_cbw.CDB, 0, sizeof(uhi_msc_cbw.CDB));
	uhi_msc_cbw.CDB[0] = SBC_READ_CAPACITY10;
	uhi_msc_scsi(uhi_msc_scsi_read_capacity_done, (uint8_t*)&uhi_msc_capacity);
}