mirror of
https://gitlab.com/hyperglitch/jellyfish.git
synced 2025-12-25 23:06:30 +00:00
53 lines
1.5 KiB
C
53 lines
1.5 KiB
C
/**
|
|
******************************************************************************
|
|
* @file usbd_bulk.h
|
|
* @brief Header for the usbd_BULK.c file
|
|
******************************************************************************
|
|
*
|
|
* 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_BULK_H
|
|
#define __USBD_BULK_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "usbd_ioreq.h"
|
|
#include <stdbool.h>
|
|
|
|
#define BULK_MAX_FS_PACKET 0x40U
|
|
#define BULK_MAX_HS_PACKET 0x200U
|
|
|
|
#ifndef BULK_EPIN_ADDR
|
|
#define BULK_EPIN_ADDR 0x83U
|
|
#endif /* BULK_EPIN_ADDR */
|
|
|
|
#ifndef BULK_EPOUT_ADDR
|
|
#define BULK_EPOUT_ADDR 0x03U
|
|
#endif /* BULK_EPOUT_ADDR */
|
|
|
|
/* Structure for BULK process */
|
|
extern USBD_ClassTypeDef USBD_BULK;
|
|
|
|
uint8_t USBD_BULK_RegisterInterface(USBD_HandleTypeDef *pdev,
|
|
USBD_ClassTypeDef *fops);
|
|
|
|
typedef void (*usb_bulk_txcplt_callback_t)(void);
|
|
void USBD_BULK_Register_TxCplt_Callback(usb_bulk_txcplt_callback_t callback);
|
|
bool USBD_BULK_Is_Initialized();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __USBD_BULK_H */
|
|
|