Information Technology Reference
In-Depth Information
case REQUEST_SENSE:
MSDRequestSenseHandler();
break;
case MODE_SENSE:
MSDModeSenseHandler();
break;
case TEST_UNIT_READY:
MSDTestUnitReadyHandler();
break;
case VERIFY:
MSDVerifyHandler();
break;
case STOP_START:
MSDStopStartHandler();
break;
default:
// Use for all unsupported commands.
ResetSenseData();
gblSenseData.SenseKey=S_ILLEGAL_REQUEST;
gblSenseData.ASC=ASC_INVALID_COMMAND_OPCODE;
gblSenseData.ASCQ=ASCQ_INVALID_COMMAND_OPCODE;
msd_csw.bCSWStatus=0x01;
msd_csw.dCSWDataResidue=0x00;
break;
}
// Reset the data pointer to the beginning of the buffer.
ptrNextData=(byte*)&msd_buffer[0];
}
The UNIT ATTENTION Condition
When something changes that the host needs to know about before access-
ing the media, the device should generate a UNIT ATTENTION condi-
tion. Changes that require the UNIT ATTENTION condition include
Search WWH ::




Custom Search