CMSIS Driver  Version 1.10 - Preliminary
Middleware Driver API for microcontroller peripherals
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Driver_USBD.c File Reference

Functions

ARM_DRV_VERSION ARM_USBD_GetVersion (void)
 Get driver version.
 
ARM_USBD_CAPABILITIES ARM_USBD_GetCapabilities (void)
 Get driver capabilities.
 
ARM_USBD_STATUS ARM_USBD_Initialize (ARM_USBD_SignalDeviceEvent_t cb_device_event, ARM_USBD_SignalEndpointEvent_t cb_endpoint_event)
 Initialize USB Device Interface.
 
ARM_USBD_STATUS ARM_USBD_Uninitialize (void)
 De-initialize USB Device Interface.
 
ARM_USBD_STATUS ARM_USBD_PowerControl (ARM_POWER_STATE state)
 Control USB Device Interface Power.
 
ARM_USBD_STATUS ARM_USBD_DeviceConnect (void)
 Connect USB Device.
 
ARM_USBD_STATUS ARM_USBD_DeviceDisconnect (void)
 Disconnect USB Device.
 
ARM_USBD_STATE ARM_USBD_DeviceGetState (void)
 Get current USB Device State.
 
ARM_USBD_STATUS ARM_USBD_DeviceRemoteWakeup (void)
 Trigger USB Remote Wakeup.
 
ARM_USBD_STATUS ARM_USBD_DeviceSetAddress (uint8_t dev_addr, ARM_USBD_SET_ADDRESS_STAGE stage)
 Set USB Device Address.
 
ARM_USBD_STATUS ARM_USBD_DeviceConfigure (bool configure)
 Configure/unconfigure USB Device.
 
ARM_USBD_STATUS ARM_USBD_EndpointConfigure (uint8_t ep_addr, ARM_USB_ENDPOINT_TYPE ep_type, uint16_t ep_max_packet_size)
 Configure USB Endpoint.
 
ARM_USBD_STATUS ARM_USBD_EndpointUnconfigure (uint8_t ep_addr)
 Unconfigure USB Endpoint.
 
ARM_USBD_STATUS ARM_USBD_EndpointStall (uint8_t ep_addr, bool stall)
 Set/Clear Stall for USB Endpoint.
 
ARM_USBD_STATUS ARM_USBD_EndpointReadStart (uint8_t ep_addr, uint8_t *buf, uint32_t len)
 Start USB Endpoint Read operation.
 
int32_t ARM_USBD_EndpointRead (uint8_t ep_addr, uint8_t *buf, uint32_t len)
 Read data from USB Endpoint.
 
int32_t ARM_USBD_EndpointWrite (uint8_t ep_addr, const uint8_t *buf, uint32_t len)
 Write data to USB Endpoint.
 
ARM_USBD_STATUS ARM_USBD_EndpointAbort (uint8_t ep_addr)
 Abort current USB Endpoint transfer.
 
uint16_t ARM_USBD_GetFrameNumber (void)
 Get current USB Frame Number.
 
void ARM_USBD_SignalDeviceEvent (ARM_USBD_EVENT event)
 Signal USB Device Event.
 
void ARM_USBD_SignalEndpointEvent (uint8_t ep_addr, ARM_USBD_EP_EVENT ep_event)
 Signal USB Endpoint Event. Occurs when Endpoint Read/Write completes.