keil_examples/USBMem/mscuser.c
/*
 *  MSC SCSI Request Sense Callback
 *    Parameters:      None (global variables)
 *    Return Value:    None
 */
MSC SCSI Request Sense Callback
Parameters:      None (global variables)
Return Value:    None
MSC SCSI Request Sense Callback Parameters : None ( global variables ) Return Value : None
void MSC_RequestSense (void) {
  if (!DataInFormat()) return;
  BulkBuf[ 0] = 0x70;                      
  BulkBuf[ 1] = 0x00;
  BulkBuf[ 2] = 0x02;                      
  BulkBuf[ 3] = 0x00;
  BulkBuf[ 4] = 0x00;
  BulkBuf[ 5] = 0x00;
  BulkBuf[ 6] = 0x00;
  BulkBuf[ 7] = 0x0A;                      
  BulkBuf[ 8] = 0x00;
  BulkBuf[ 9] = 0x00;
  BulkBuf[10] = 0x00;
  BulkBuf[11] = 0x00;
  BulkBuf[12] = 0x30;                      
  BulkBuf[13] = 0x01;                      
  BulkBuf[14] = 0x00;
  BulkBuf[15] = 0x00;
  BulkBuf[16] = 0x00;
  BulkBuf[17] = 0x00;
  BulkLen = 18;
  DataInTransfer();
}
void MSC_RequestSense ( void ) { if ( ! DataInFormat ( ) ) return ; BulkBuf [ 0 ] = 0x70 ; BulkBuf [ 1 ] = 0x00 ; BulkBuf [ 2 ] = 0x02 ; BulkBuf [ 3 ] = 0x00 ; BulkBuf [ 4 ] = 0x00 ; BulkBuf [ 5 ] = 0x00 ; BulkBuf [ 6 ] = 0x00 ; BulkBuf [ 7 ] = 0x0A ; BulkBuf [ 8 ] = 0x00 ; BulkBuf [ 9 ] = 0x00 ; BulkBuf [ 10 ] = 0x00 ; BulkBuf [ 11 ] = 0x00 ; BulkBuf [ 12 ] = 0x30 ; BulkBuf [ 13 ] = 0x01 ; BulkBuf [ 14 ] = 0x00 ; BulkBuf [ 15 ] = 0x00 ; BulkBuf [ 16 ] = 0x00 ; BulkBuf [ 17 ] = 0x00 ; BulkLen = 18 ; DataInTransfer ( ) ; }
MSC SCSI Request Sense Callback
    Parameters:      None (global variables)
    Return Value:    None
MSC SCSI Request Sense Callback Parameters : None ( global variables ) Return Value : None
/* Response Code */ /* Sense Key */ /* Additional Length */ /* ASC */ /* ASCQ */