/*!
 * @file        usbd_descriptor.h
 *
 * @brief       usb device descriptor
 *
 * @version     V1.0.0
 *
 * @date        2025-07-04
 *
 * @attention
 *
 *  Copyright (C) 2025 Geehy Semiconductor
 *
 *  You may not use this file except in compliance with the
 *  GEEHY COPYRIGHT NOTICE (GEEHY SOFTWARE PACKAGE LICENSE).
 *
 *  The program is only for reference, which is distributed in the hope
 *  that it will be useful and instructional for customers to develop
 *  their software. Unless required by applicable law or agreed to in
 *  writing, the program is distributed on an "AS IS" BASIS, WITHOUT
 *  ANY WARRANTY OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the GEEHY SOFTWARE PACKAGE LICENSE for the governing permissions
 *  and limitations under the License.
 */

/* Define to prevent recursive inclusion */
#ifndef _USBD_DESCRIPTOR_H_
#define _USBD_DESCRIPTOR_H_

/* Includes */
#include "usbd_core.h"

/** @addtogroup Examples
  * @brief USBD WINUSB examples
  @{
  */

/** @addtogroup USBD_WINUSB
  @{
  */

/** @defgroup USBD_WINUSB_Macros Macros
  @{
*/

#define USBD_WINUSB_OS_STRING_SIZE              0x12

#define USBD_CONFIG_DESCRIPTOR_SIZE             32
#define USBD_DEVICE_DESCRIPTOR_SIZE             18
#define USBD_SERIAL_STRING_SIZE                 26
#define USBD_LANGID_STRING_SIZE                 4
#define USBD_DEVICE_QUALIFIER_DESCRIPTOR_SIZE   10
#define USBD_BOS_DESCRIPTOR_SIZE                12

#define USBD_DEVICE_CAPABILITY_TYPE             0x10
#define USBD_20_EXTENSION_TYPE                  0x02

#define USBD_WINUSB_DATA_ITF_CLASS_ID           0xFF

/**@} end of group USBD_WINUSB_Macros*/

/** @defgroup USBD_WINUSB_Variables Variables
  @{
  */

extern USBD_DESC_T USBD_DESC_FS;

/**@} end of group USBD_WINUSB_Variables*/

/** @defgroup USBD_WINUSB_Functions Functions
  @{
  */

/**@} end of group USBD_WINUSB_Functions */
/**@} end of group USBD_WINUSB */
/**@} end of group Examples */

#endif
