keil_examples/USBMem/mscuser.c
/*
 *  MSC Bulk In Callback
 *    Parameters:      None (global variables)
 *    Return Value:    None
 */
MSC Bulk In Callback
Parameters:      None (global variables)
Return Value:    None
MSC Bulk In Callback Parameters : None ( global variables ) Return Value : None
void MSC_BulkIn (void) {
  switch (BulkStage) {
    case MSC_BS_DATA_IN:
      switch (CBW.CB[0]) {
        case SCSI_READ10:
        case SCSI_READ12:
          MSC_MemoryRead();
          break;
      }
      break;
    case MSC_BS_DATA_IN_LAST:
      MSC_SetCSW();
      break;
    case MSC_BS_DATA_IN_LAST_STALL:
      MSC_SetStallEP(MSC_EP_IN);
      MSC_SetCSW();
      break;
    case MSC_BS_CSW:
      BulkStage = MSC_BS_CBW;
      break;
  }
}
void MSC_BulkIn ( void ) { switch ( BulkStage ) { case MSC_BS_DATA_IN : switch ( CBW . CB [ 0 ] ) { case SCSI_READ10 : case SCSI_READ12 : MSC_MemoryRead ( ) ; break ; } break ; case MSC_BS_DATA_IN_LAST : MSC_SetCSW ( ) ; break ; case MSC_BS_DATA_IN_LAST_STALL : MSC_SetStallEP ( MSC_EP_IN ) ; MSC_SetCSW ( ) ; break ; case MSC_BS_CSW : BulkStage = MSC_BS_CBW ; break ; } }
MSC Bulk In Callback
    Parameters:      None (global variables)
    Return Value:    None
MSC Bulk In Callback Parameters : None ( global variables ) Return Value : None