sources/common/libs/STM32Cube_F4/Middlewares/ST/STM32_USB_Device_Library/Class/MSC/Src/usbd_msc_scsi.c
/**
  * @brief  SCSI_ModeSense10
  *         Process Mode Sense10 command
  * @param  lun: Logical unit number
  * @param  params: Command parameters
  * @retval status
  */
@brief  SCSI_ModeSense10
Process Mode Sense10 command
@param  lun: Logical unit number
@param  params: Command parameters
@retval status
@brief SCSI_ModeSense10 Process Mode Sense10 command @param lun : Logical unit number @param params : Command parameters @retval status
static int8_t SCSI_ModeSense10(USBD_HandleTypeDef *pdev, uint8_t lun, uint8_t *params)
{
  UNUSED(lun);
  USBD_MSC_BOT_HandleTypeDef *hmsc = (USBD_MSC_BOT_HandleTypeDef *)pdev->pClassDataCmsit[pdev->classId];
  uint16_t len = MODE_SENSE10_LEN;
  if (hmsc == NULL)
  {
    return -1;
  }
  if (params[8] <= len)
  {
    len = params[8];
  }
  (void)SCSI_UpdateBotData(hmsc, MSC_Mode_Sense10_data, len);
  return 0;
}
static int8_t SCSI_ModeSense10 ( USBD_HandleTypeDef * pdev , uint8_t lun , uint8_t * params ) { UNUSED ( lun ) ; USBD_MSC_BOT_HandleTypeDef * hmsc = ( USBD_MSC_BOT_HandleTypeDef * ) pdev -> pClassDataCmsit [ pdev -> classId ] ; uint16_t len = MODE_SENSE10_LEN ; if ( hmsc == NULL ) { return -1 ; } if ( params [ 8 ] <= len ) { len = params [ 8 ] ; } ( void ) SCSI_UpdateBotData ( hmsc , MSC_Mode_Sense10_data , len ) ; return 0 ; }
@brief  SCSI_ModeSense10
         Process Mode Sense10 command
 @param  lun: Logical unit number
 @param  params: Command parameters
 @retval status
@brief SCSI_ModeSense10 Process Mode Sense10 command @param lun : Logical unit number @param params : Command parameters @retval status