/** ****************************************************************************** * @file usbd_msc_bot.h * @author MCD Application Team * @brief Header for the usbd_msc_bot.c file ****************************************************************************** * @attention * * Copyright (c) 2015 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... *//* Define to prevent recursive inclusion -------------------------------------*/#ifndef__USBD_MSC_BOT_H#define__USBD_MSC_BOT_H#ifdef__cplusplusextern"C"{#endif/* Includes ------------------------------------------------------------------*/#include"usbd_core.h"/** @addtogroup STM32_USB_DEVICE_LIBRARY * @{ *//* ... *//** @defgroup MSC_BOT * @brief This file is the Header file for usbd_msc_bot.c * @{ *//* ... *//** @defgroup USBD_CORE_Exported_Defines * @{ *//* ... */#defineUSBD_BOT_IDLE0U/* Idle state */#defineUSBD_BOT_DATA_OUT1U/* Data Out state */#defineUSBD_BOT_DATA_IN2U/* Data In state */#defineUSBD_BOT_LAST_DATA_IN3U/* Last Data In Last */#defineUSBD_BOT_SEND_DATA4U/* Send Immediate data */#defineUSBD_BOT_NO_DATA5U/* No data Stage */#defineUSBD_BOT_CBW_SIGNATURE0x43425355U#defineUSBD_BOT_CSW_SIGNATURE0x53425355U#defineUSBD_BOT_CBW_LENGTH31U#defineUSBD_BOT_CSW_LENGTH13U#defineUSBD_BOT_MAX_DATA256U/* CSW Status Definitions */#defineUSBD_CSW_CMD_PASSED0x00U#defineUSBD_CSW_CMD_FAILED0x01U#defineUSBD_CSW_PHASE_ERROR0x02U/* BOT Status */#defineUSBD_BOT_STATUS_NORMAL0U#defineUSBD_BOT_STATUS_RECOVERY1U#defineUSBD_BOT_STATUS_ERROR2U#defineUSBD_DIR_IN0U#defineUSBD_DIR_OUT1U#defineUSBD_BOTH_DIR2U20 defines/** * @} *//* ... *//** @defgroup MSC_CORE_Private_TypesDefinitions * @{ *//* ... */typedefstruct{uint32_tdSignature;uint32_tdTag;uint32_tdDataLength;uint8_tbmFlags;uint8_tbLUN;uint8_tbCBLength;uint8_tCB[16];uint8_tReservedForAlign;...}USBD_MSC_BOT_CBWTypeDef;typedefstruct{uint32_tdSignature;uint32_tdTag;uint32_tdDataResidue;uint8_tbStatus;uint8_tReservedForAlign[3];...}USBD_MSC_BOT_CSWTypeDef;/** * @} *//* ... *//** @defgroup USBD_CORE_Exported_Types * @{ *//* ... *//** * @} *//* ... *//** @defgroup USBD_CORE_Exported_FunctionsPrototypes * @{ *//* ... */voidMSC_BOT_Init(USBD_HandleTypeDef*pdev);voidMSC_BOT_Reset(USBD_HandleTypeDef*pdev);voidMSC_BOT_DeInit(USBD_HandleTypeDef*pdev);voidMSC_BOT_DataIn(USBD_HandleTypeDef*pdev,uint8_tepnum);voidMSC_BOT_DataOut(USBD_HandleTypeDef*pdev,uint8_tepnum);voidMSC_BOT_SendCSW(USBD_HandleTypeDef*pdev,uint8_tCSW_Status);voidMSC_BOT_CplClrFeature(USBD_HandleTypeDef*pdev,uint8_tepnum);/** * @} *//* ... */#ifdef__cplusplus}extern "C" { ... }#endif/* ... */#endif/* __USBD_MSC_BOT_H *//** * @} *//* ... *//** * @} *//* ... */
Details
Show: from
Types: Columns:
All items filtered out
All items filtered out
This file uses the notable symbols shown below. Click anywhere in the file to view more details.