33 USB_SETUP_PACKET SetupPacket;
37 uint8_t Configuration;
40 uint8_t OldDeviceState;
43 extern const uint8_t UsbdMaxPacketSize0;
47 USBD_CONTROL_STAGE_STALL,
48 USBD_CONTROL_STAGE_IN_DATA,
49 USBD_CONTROL_STAGE_OUT_DATA,
50 USBD_CONTROL_STAGE_STATUS
55 #define USB_DEVICE_STATE_UNCONNECTED 0 56 #define USB_DEVICE_STATE_ATTACHED 1 57 #define USB_DEVICE_STATE_POWERED 2 58 #define USB_DEVICE_STATE_SUSPENDED 3 59 #define USB_DEVICE_STATE_ADDRESSED 4 60 #define USB_DEVICE_STATE_CONFIGURED 5
void USBD_Init(void)
Initializes the USB device library.
Definition: usbd_core.c:38
void USBD_Connect(void)
Connects the device to the USB host.
Definition: usbd_core.c:58
void USBD_DeInit(void)
Deinitializes the USB device library.
Definition: usbd_core.c:49
void USBD_Disconnect(void)
Disconnects the device from the USB host.
Definition: usbd_core.c:67
UsbdControlStage USBD_EndPoint0_Setup_StdReq(void)
Handle Standard Device Requests.
Definition: usbd_core.c:319
void USBD_Core_Resume(void)
Handle resume event.
Definition: usbd_core.c:104
void USBD_Core_Suspend(void)
Handle suspend event.
Definition: usbd_core.c:90
Definition: usbd_core.h:32
void Handle_USBD_INT(uint8_t IntrUSB, uint8_t IntrIn, uint8_t IntrOut)
Handle USBD Interrupts.
Definition: usbd_intr.c:45
void USBD_Core_Reset(void)
Handle reset event.
Definition: usbd_core.c:77