APM:Libraries
usb_dcd_int.h
Go to the documentation of this file.
1 
28 /* Define to prevent recursive inclusion -------------------------------------*/
29 #ifndef USB_DCD_INT_H__
30 #define USB_DCD_INT_H__
31 
32 /* Includes ------------------------------------------------------------------*/
33 #include "usb_dcd.h"
34 
35 
36 
51 typedef struct _USBD_DCD_INT
52 {
53  uint8_t (* DataOutStage) (USB_OTG_CORE_HANDLE *pdev , uint8_t epnum);
54  uint8_t (* DataInStage) (USB_OTG_CORE_HANDLE *pdev , uint8_t epnum);
55  uint8_t (* SetupStage) (USB_OTG_CORE_HANDLE *pdev);
56  uint8_t (* SOF) (USB_OTG_CORE_HANDLE *pdev);
57  uint8_t (* Reset) (USB_OTG_CORE_HANDLE *pdev);
58  uint8_t (* Suspend) (USB_OTG_CORE_HANDLE *pdev);
59  uint8_t (* Resume) (USB_OTG_CORE_HANDLE *pdev);
60  uint8_t (* IsoINIncomplete) (USB_OTG_CORE_HANDLE *pdev);
61  uint8_t (* IsoOUTIncomplete) (USB_OTG_CORE_HANDLE *pdev);
62 
63  uint8_t (* DevConnected) (USB_OTG_CORE_HANDLE *pdev);
64  uint8_t (* DevDisconnected) (USB_OTG_CORE_HANDLE *pdev);
65 
67 
85 #define CLEAR_IN_EP_INTR(epnum,intr) \
86  diepint.d32=0; \
87  diepint.b.intr = 1; \
88  USB_OTG_WRITE_REG32(&pdev->regs.INEP_REGS[epnum]->DIEPINT,diepint.d32);
89 
90 #define CLEAR_OUT_EP_INTR(epnum,intr) \
91  doepint.d32=0; \
92  doepint.b.intr = 1; \
93  USB_OTG_WRITE_REG32(&pdev->regs.OUTEP_REGS[epnum]->DOEPINT,doepint.d32);
94 
111 
117 #endif // USB_DCD_INT_H__
118 
126 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
127 
uint8_t(* IsoOUTIncomplete)(USB_OTG_CORE_HANDLE *pdev)
Definition: usb_dcd_int.h:61
uint32_t USBD_OTG_ISR_Handler(USB_OTG_CORE_HANDLE *pdev)
STM32_USBF_OTG_ISR_Handler handles all USB Interrupts.
Definition: usb_dcd_int.c:211
USBD_DCD_INT_cb_TypeDef * USBD_DCD_INT_fops
Definition: usbd_core.c:116
uint8_t(* Reset)(USB_OTG_CORE_HANDLE *pdev)
Definition: usb_dcd_int.h:57
uint8_t(* DevConnected)(USB_OTG_CORE_HANDLE *pdev)
Definition: usb_dcd_int.h:63
uint8_t(* IsoINIncomplete)(USB_OTG_CORE_HANDLE *pdev)
Definition: usb_dcd_int.h:60
struct _USBD_DCD_INT USBD_DCD_INT_cb_TypeDef
uint8_t(* DataInStage)(USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
Definition: usb_dcd_int.h:54
uint8_t(* DevDisconnected)(USB_OTG_CORE_HANDLE *pdev)
Definition: usb_dcd_int.h:64
uint8_t(* DataOutStage)(USB_OTG_CORE_HANDLE *pdev, uint8_t epnum)
Definition: usb_dcd_int.h:53
uint8_t(* SOF)(USB_OTG_CORE_HANDLE *pdev)
Definition: usb_dcd_int.h:56
uint8_t(* Suspend)(USB_OTG_CORE_HANDLE *pdev)
Definition: usb_dcd_int.h:58
uint8_t(* SetupStage)(USB_OTG_CORE_HANDLE *pdev)
Definition: usb_dcd_int.h:55
Peripheral Driver Header file.
uint8_t(* Resume)(USB_OTG_CORE_HANDLE *pdev)
Definition: usb_dcd_int.h:59