keil_examples/USBMem/mscuser.c
/*
 *  MSC SCSI Test Unit Ready Callback
 *    Parameters:      None (global variables)
 *    Return Value:    None
 */
MSC SCSI Test Unit Ready Callback
Parameters:      None (global variables)
Return Value:    None
MSC SCSI Test Unit Ready Callback Parameters : None ( global variables ) Return Value : None
void MSC_TestUnitReady (void) {
  if (CBW.dDataLength != 0) {
    if ((CBW.bmFlags & 0x80) != 0) {
      MSC_SetStallEP(MSC_EP_IN);
    } else {
      MSC_SetStallEP(MSC_EP_OUT);
    }
  }
  CSW.bStatus = CSW_CMD_PASSED;
  MSC_SetCSW();
}
void MSC_TestUnitReady ( void ) { if ( CBW . dDataLength != 0 ) { if ( ( CBW . bmFlags & 0x80 ) != 0 ) { MSC_SetStallEP ( MSC_EP_IN ) ; } else { MSC_SetStallEP ( MSC_EP_OUT ) ; } } CSW . bStatus = CSW_CMD_PASSED ; MSC_SetCSW ( ) ; }
MSC SCSI Test Unit Ready Callback
    Parameters:      None (global variables)
    Return Value:    None
MSC SCSI Test Unit Ready Callback Parameters : None ( global variables ) Return Value : None