2023-02-25 10:47:04 +08:00
|
|
|
/**
|
|
|
|
**************************************************************************
|
|
|
|
* @file usbd_sdr.h
|
|
|
|
* @brief usb standard request header file
|
|
|
|
**************************************************************************
|
|
|
|
* Copyright notice & Disclaimer
|
|
|
|
*
|
|
|
|
* The software Board Support Package (BSP) that is made available to
|
|
|
|
* download from Artery official website is the copyrighted work of Artery.
|
|
|
|
* Artery authorizes customers to use, copy, and distribute the BSP
|
|
|
|
* software and its related documentation for the purpose of design and
|
|
|
|
* development in conjunction with Artery microcontrollers. Use of the
|
|
|
|
* software is governed by this copyright notice and the following disclaimer.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
|
|
|
|
* GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS,
|
|
|
|
* TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR
|
|
|
|
* STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS,
|
|
|
|
* INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
|
|
|
|
*
|
|
|
|
**************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* define to prevent recursive inclusion -------------------------------------*/
|
|
|
|
#ifndef __USBD_SDR_H
|
|
|
|
#define __USBD_SDR_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* includes ------------------------------------------------------------------*/
|
|
|
|
#include "usbd_core.h"
|
|
|
|
|
|
|
|
/** @addtogroup USBD_drivers_standard_request
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @defgroup USBD_sdr_exported_functions
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2023-02-27 14:59:47 +08:00
|
|
|
#ifdef BSP_USING_USBD
|
|
|
|
|
2023-02-25 10:47:04 +08:00
|
|
|
void usbd_setup_request_parse(usb_setup_type *setup, uint8_t *buf);
|
|
|
|
usb_sts_type usbd_device_request(usbd_core_type *udev);
|
|
|
|
usb_sts_type usbd_interface_request(usbd_core_type *udev);
|
|
|
|
usb_sts_type usbd_endpoint_request(usbd_core_type *udev);
|
|
|
|
|
2023-02-27 14:59:47 +08:00
|
|
|
#endif
|
2023-02-25 10:47:04 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|