USBD.h
Default mainpageat91libusbdevicecoreUSBD.h
Description Overview
Methods Brief description
 USBD_ConfigureEndpoint Configures an endpoint according to its Endpoint Descriptor.
 USBD_Connect Connects the pull-up on the D+ line of the USB.
 USBD_Disconnect Disconnects the pull-up from the D+ line of the USB.
 USBD_GetState Returns the current state of the USB device.
 USBD_Halt Sets the HALT feature on the given endpoint (if not already in this state).
 USBD_Init Initializes the USB driver.
 USBD_InterruptHandler USB interrupt handler Manages device resume, suspend, end of bus reset.
 USBD_IsHalted Returns the current Halt status of an endpoint.
 USBD_IsHighSpeed Indicates if the device is running in high or full-speed.
 USBD_Read Reads incoming data on an USB endpoint This methods sets the transfer descriptor and activate the endpoint interrupt.
 USBD_RemoteWakeUp Starts a remote wake-up procedure.
 USBD_SetAddress Sets the device address to the given value.
 USBD_SetConfiguration Sets the current device configuration.
 USBD_Stall Causes the given endpoint to acknowledge the next packet it receives with a STALL handshake.
 USBD_Unhalt Clears the Halt feature on the given endpoint.
 USBD_Write Sends data through a USB endpoint.
Defines  
 USBD_LEDOTHER LED for custom usage.
 USBD_LEDPOWER LED for indicating that the device is powered.
 USBD_LEDUSB LED for indicating USB activity.
 USBD_STATE_ADDRESS The device has been given an address on the bus.
 USBD_STATE_ATTACHED USB cable is plugged into the device.
 USBD_STATE_CONFIGURED A valid configuration has been selected.
 USBD_STATE_DEFAULT Device has been reset.
 USBD_STATE_POWERED Host is providing +5V through the USB cable.
 USBD_STATE_SUSPENDED The device is currently suspended.
 USBD_STATUS_ABORTED Operation has been aborted.
 USBD_STATUS_LOCKED Endpoint/device is already busy.
 USBD_STATUS_RESET Operation has been aborted because the device has been reset.
 USBD_STATUS_SUCCESS Indicates the operation was successful.
Types  
 TransferCallback Callback used by transfer functions (USBD_Read & USBD_Write) to notify that a transaction is complete.