| NUC472_NUC442_BSP V3.04.000 The Board Support Package for NUC472/NUC442

Data Structures | Macros | Typedefs | Functions
usbd.h File Reference

NUC472/NUC442 USBD driver header file. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures
struct | USBD_CMD_STRUCT
struct | s_usbd_info

## Macros
#define | USB_CEPCTL_NAKCLR
#define | USB_CEPCTL_STALL
#define | USB_CEPCTL_ZEROLEN
#define | USB_CEPCTL_FLUSH
#define | USB_EP_RSPCTL_FLUSH
#define | USB_EP_RSPCTL_MODE_AUTO
#define | USB_EP_RSPCTL_MODE_MANUAL
#define | USB_EP_RSPCTL_MODE_FLY
#define | USB_EP_RSPCTL_MODE_MASK
#define | USB_EP_RSPCTL_TOGGLE
#define | USB_EP_RSPCTL_HALT
#define | USB_EP_RSPCTL_ZEROLEN
#define | USB_EP_RSPCTL_SHORTTXEN
#define | USB_EP_RSPCTL_DISBUF
#define | USB_EP_CFG_VALID
#define | USB_EP_CFG_TYPE_BULK
#define | USB_EP_CFG_TYPE_INT
#define | USB_EP_CFG_TYPE_ISO
#define | USB_EP_CFG_TYPE_MASK
#define | USB_EP_CFG_DIR_OUT
#define | USB_EP_CFG_DIR_IN
#define | USBD_ENABLE_USB()
#define | USBD_DISABLE_USB()
#define | USBD_ENABLE_PHY()
#define | USBD_DISABLE_PHY()
#define | USBD_SET_SE0()
#define | USBD_CLR_SE0()
#define | USBD_SET_ADDR(addr)
#define | USBD_GET_ADDR()
#define | USBD_ENABLE_USB_INT(intr)
#define | USBD_ENABLE_BUS_INT(intr)
#define | USBD_GET_BUS_INT_FLAG()
#define | USBD_CLR_BUS_INT_FLAG(flag)
#define | USBD_ENABLE_CEP_INT(intr)
#define | USBD_CLR_CEP_INT_FLAG(flag)
#define | USBD_SET_CEP_STATE(flag)
#define | USBD_START_CEP_IN(size)
#define | USBD_SET_MAX_PAYLOAD(ep, size)
#define | USBD_ENABLE_EP_INT(ep, intr)
#define | USBD_GET_EP_INT_FLAG(ep)
#define | USBD_CLR_EP_INT_FLAG(ep, flag)
#define | USBD_SET_DMA_LEN(len)
#define | USBD_SET_DMA_ADDR(addr)
#define | USBD_SET_DMA_READ(epnum)
#define | USBD_SET_DMA_WRITE(epnum)
#define | USBD_ENABLE_DMA()
#define | USBD_IS_ATTACHED()

## Typedefs
typedef struct USBD_CMD_STRUCT | S_USBD_CMD_T
typedef struct s_usbd_info | S_USBD_INFO_T
typedef void(* | VENDOR_REQ) (void)
typedef void(* | CLASS_REQ) (void)
typedef void(* | SET_INTERFACE_REQ) (uint32_t u32AltInterface)

## Functions
static __INLINE void | USBD_MemCopy (uint8_t *u8Dst, uint8_t *u8Src, int32_t i32Size)
| USBD_memcpy, Copy bytes hardware limitation. More...
static __INLINE void | USBD_ResetDMA (void)
| USBD_ResetDMA. More...
static __INLINE void | USBD_SetEpBufAddr (uint32_t u32Ep, uint32_t u32Base, uint32_t u32Len)
| USBD_SetEpBufAddr, Set Endpoint buffer address. More...
static __INLINE void | USBD_ConfigEp (uint32_t u32Ep, uint32_t u32EpNum, uint32_t u32EpType, uint32_t u32EpDir)
| USBD_ConfigEp, Config Endpoint. More...
static __INLINE void | USBD_SetEpStall (uint32_t u32Ep)
| Set USB endpoint stall state. More...
static __INLINE void | USBD_SetStall (uint32_t u32EpNum)
| Set USB endpoint stall state. More...
static __INLINE void | USBD_ClearEpStall (uint32_t u32Ep)
| Clear USB endpoint stall state. More...
static __INLINE void | USBD_ClearStall (uint32_t u32EpNum)
| Clear USB endpoint stall state. More...
static __INLINE uint32_t | USBD_GetEpStall (uint32_t u32Ep)
| Get USB endpoint stall state. More...
static __INLINE uint32_t | USBD_GetStall (uint32_t u32EpNum)
| Get USB endpoint stall state. More...
void | USBD_Open (S_USBD_INFO_T *param, CLASS_REQ pfnClassReq, SET_INTERFACE_REQ pfnSetInterface)
| USBD Initial. More...
void | USBD_Start (void)
| USBD Start. More...
void | USBD_ProcessSetupPacket (void)
| Process Setup Packet. More...
void | USBD_StandardRequest (void)
| Process USB standard request. More...
void | USBD_UpdateDeviceState (void)
| Update Device State. More...
void | USBD_PrepareCtrlIn (uint8_t *pu8Buf, uint32_t u32Size)
| Prepare Control IN transaction. More...
void | USBD_CtrlIn (void)
| Start Control IN transfer. More...
void | USBD_CtrlOut (uint8_t *pu8Buf, uint32_t u32Size)
| Start Control OUT transaction. More...
void | USBD_SwReset (void)
| Clear all software flags. More...
void | USBD_SetVendorRequest (VENDOR_REQ pfnVendorReq)
| USBD Set Vendor Request. More...

## Detailed Description

NUC472/NUC442 USBD driver header file.

Version
  V1.00

Revision
  24

Date
  15/12/01 10:14a

Note
  SPDX-License-Identifier: Apache-2.0 Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.

Definition in file usbd.h.