|
EFM32 Giant Gecko Software Documentation
efm32gg-doc-5.1.2
|
USB protocol stack library API for EFM32/EZR32.
(C) Copyright 2014 Silicon Labs, http://www.silabs.com
This file is licensed under the Silabs License Agreement. See the file "Silabs_License_Agreement.txt" for details. Before using this software for any purpose, you must agree to the terms of that agreement.
Definition in file em_usbd.c.
#include "em_device.h"#include "em_usb.h"#include "em_cmu.h"#include "em_core.h"#include "em_system.h"#include "em_usbtypes.h"#include "em_usbhal.h"#include "em_usbd.h"Go to the source code of this file.
Functions | |
| void | USBD_AbortAllTransfers (void) |
| Abort all pending transfers. More... | |
| int | USBD_AbortTransfer (int epAddr) |
| Abort a pending transfer on a specific endpoint. More... | |
| void | USBD_Connect (void) |
| Start USB device operation. More... | |
| void | USBD_Disconnect (void) |
| Stop USB device operation. More... | |
| bool | USBD_EpIsBusy (int epAddr) |
| Check if an endpoint is busy doing a transfer. More... | |
| USBD_State_TypeDef | USBD_GetUsbState (void) |
| Get current USB device state. More... | |
| const char * | USBD_GetUsbStateName (USBD_State_TypeDef state) |
| Get a string naming a device USB state. More... | |
| int | USBD_Init (const USBD_Init_TypeDef *p) |
| Initializes USB device hardware and internal protocol stack data structures, then connects the data-line (D+ or D-) pullup resistor to signal host that enumeration can begin. More... | |
| int | USBD_Read (int epAddr, void *data, int byteCount, USB_XferCompleteCb_TypeDef callback) |
| Start a read (OUT) transfer on an endpoint. More... | |
| int | USBD_RemoteWakeup (void) |
| Perform a remote wakeup signalling sequence. More... | |
| bool | USBD_SafeToEnterEM2 (void) |
| Check if it is ok to enter energy mode EM2. More... | |
| int | USBD_StallEp (int epAddr) |
| Set an endpoint in the stalled (halted) state. More... | |
| void | USBD_Stop (void) |
| Stop USB device stack operation. More... | |
| int | USBD_UnStallEp (int epAddr) |
| Reset stall state on a stalled (halted) endpoint. More... | |
| int | USBD_Write (int epAddr, void *data, int byteCount, USB_XferCompleteCb_TypeDef callback) |
| Start a write (IN) transfer on an endpoint. More... | |