27#if (HAL_USE_USB == TRUE) || defined(__DOXYGEN__)
40#if (PLATFORM_USB_USE_USB1 == TRUE) || defined(__DOXYGEN__)
101#if PLATFORM_USB_USE_USB1 == TRUE
118#if PLATFORM_USB_USE_USB1 == TRUE
119 if (&
USBD1 == usbp) {
141#if PLATFORM_USB_USE_USB1 == TRUE
142 if (&
USBD1 == usbp) {
void usb_lld_stop(USBDriver *usbp)
Deactivates the USB peripheral.
void usb_lld_set_address(USBDriver *usbp)
Sets the USB address.
uint8_t usbep_t
Type of an endpoint identifier.
void usb_lld_clear_in(USBDriver *usbp, usbep_t ep)
Brings an IN endpoint in the active state.
usbepstatus_t
Type of an endpoint status.
void usb_lld_init(void)
Low level USB driver initialization.
USBOutEndpointState out
OUT EP0 state.
void usb_lld_init_endpoint(USBDriver *usbp, usbep_t ep)
Enables an endpoint.
usbepstatus_t usb_lld_get_status_out(USBDriver *usbp, usbep_t ep)
Returns the status of an OUT endpoint.
void _usb_ep0setup(USBDriver *usbp, usbep_t ep)
Default EP0 SETUP callback.
void usb_lld_prepare_transmit(USBDriver *usbp, usbep_t ep)
Prepares for a transmit operation.
USBInEndpointState in
IN EP0 state.
void usb_lld_reset(USBDriver *usbp)
USB low level reset routine.
usbepstatus_t usb_lld_get_status_in(USBDriver *usbp, usbep_t ep)
Returns the status of an IN endpoint.
void usb_lld_disable_endpoints(USBDriver *usbp)
Disables all the active endpoints except the endpoint zero.
void usb_lld_start_out(USBDriver *usbp, usbep_t ep)
Starts a receive operation on an OUT endpoint.
#define USB_EP_MODE_TYPE_CTRL
static const USBEndpointConfig ep0config
EP0 initialization structure.
void usb_lld_start(USBDriver *usbp)
Configures and activates the USB peripheral.
void usb_lld_start_in(USBDriver *usbp, usbep_t ep)
Starts a transmit operation on an IN endpoint.
void usb_lld_read_setup(USBDriver *usbp, usbep_t ep, uint8_t *buf)
Reads a setup packet from the dedicated packet buffer.
void _usb_ep0in(USBDriver *usbp, usbep_t ep)
Default EP0 IN callback.
USBDriver USBD1
USB1 driver identifier.
void usb_lld_clear_out(USBDriver *usbp, usbep_t ep)
Brings an OUT endpoint in the active state.
void usb_lld_stall_out(USBDriver *usbp, usbep_t ep)
Brings an OUT endpoint in the stalled state.
void usb_lld_stall_in(USBDriver *usbp, usbep_t ep)
Brings an IN endpoint in the stalled state.
void usbObjectInit(USBDriver *usbp)
Initializes the standard part of a USBDriver structure.
void usb_lld_prepare_receive(USBDriver *usbp, usbep_t ep)
Prepares for a receive operation.
static union @235206122270051152302000074257205070254344304236 ep0_state
EP0 state.
void _usb_ep0out(USBDriver *usbp, usbep_t ep)
Default EP0 OUT callback.
Structure representing an USB driver.
const USBEndpointConfig * epc[USB_MAX_ENDPOINTS+1]
Active endpoints configurations.
usbstate_t state
Driver state.
Type of an USB endpoint configuration structure.
Type of an IN endpoint state structure.
Type of an OUT endpoint state structure.