| M480 BSP V3.05.001 The Board Support Package for M480 Series

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

M480 HSUSBD driver header file. More...

Go to the source code of this file.

## Data Structures
struct | HSUSBD_CMD_STRUCT
struct | s_hsusbd_info

## Macros
#define | HSUSBD_CEPCTL_NAKCLR
#define | HSUSBD_CEPCTL_STALL
#define | HSUSBD_CEPCTL_ZEROLEN
#define | HSUSBD_CEPCTL_FLUSH
#define | HSUSBD_EP_RSPCTL_FLUSH
#define | HSUSBD_EP_RSPCTL_MODE_AUTO
#define | HSUSBD_EP_RSPCTL_MODE_MANUAL
#define | HSUSBD_EP_RSPCTL_MODE_FLY
#define | HSUSBD_EP_RSPCTL_MODE_MASK
#define | HSUSBD_EP_RSPCTL_TOGGLE
#define | HSUSBD_EP_RSPCTL_HALT
#define | HSUSBD_EP_RSPCTL_ZEROLEN
#define | HSUSBD_EP_RSPCTL_SHORTTXEN
#define | HSUSBD_EP_RSPCTL_DISBUF
#define | HSUSBD_EP_CFG_VALID
#define | HSUSBD_EP_CFG_TYPE_BULK
#define | HSUSBD_EP_CFG_TYPE_INT
#define | HSUSBD_EP_CFG_TYPE_ISO
#define | HSUSBD_EP_CFG_TYPE_MASK
#define | HSUSBD_EP_CFG_DIR_OUT
#define | HSUSBD_EP_CFG_DIR_IN
#define | HSUSBD_ENABLE_USB()
#define | HSUSBD_DISABLE_USB()
#define | HSUSBD_ENABLE_PHY()
#define | HSUSBD_DISABLE_PHY()
#define | HSUSBD_SET_SE0()
#define | HSUSBD_CLR_SE0()
#define | HSUSBD_SET_ADDR(addr)
#define | HSUSBD_GET_ADDR()
#define | HSUSBD_ENABLE_USB_INT(intr)
#define | HSUSBD_ENABLE_BUS_INT(intr)
#define | HSUSBD_GET_BUS_INT_FLAG()
#define | HSUSBD_CLR_BUS_INT_FLAG(flag)
#define | HSUSBD_ENABLE_CEP_INT(intr)
#define | HSUSBD_CLR_CEP_INT_FLAG(flag)
#define | HSUSBD_SET_CEP_STATE(flag)
#define | HSUSBD_START_CEP_IN(size)
#define | HSUSBD_SET_MAX_PAYLOAD(ep, size)
#define | HSUSBD_ENABLE_EP_INT(ep, intr)
#define | HSUSBD_GET_EP_INT_FLAG(ep)
#define | HSUSBD_CLR_EP_INT_FLAG(ep, flag)
#define | HSUSBD_SET_DMA_LEN(len)
#define | HSUSBD_SET_DMA_ADDR(addr)
#define | HSUSBD_SET_DMA_READ(epnum)
#define | HSUSBD_SET_DMA_WRITE(epnum)
#define | HSUSBD_ENABLE_DMA()
#define | HSUSBD_IS_ATTACHED()

## Typedefs
typedef struct HSUSBD_CMD_STRUCT | S_HSUSBD_CMD_T
typedef struct s_hsusbd_info | S_HSUSBD_INFO_T
typedef void(* | HSUSBD_VENDOR_REQ) (void)
typedef void(* | HSUSBD_CLASS_REQ) (void)
typedef void(* | HSUSBD_SET_INTERFACE_REQ) (uint32_t u32AltInterface)

## Functions
__STATIC_INLINE void | HSUSBD_MemCopy (uint8_t u8Dst[], uint8_t u8Src[], uint32_t u32Size)
| HSUSBD_memcpy, Copy bytes hardware limitation. More...
__STATIC_INLINE void | HSUSBD_ResetDMA (void)
| HSUSBD_ResetDMA. More...
__STATIC_INLINE void | HSUSBD_SetEpBufAddr (uint32_t u32Ep, uint32_t u32Base, uint32_t u32Len)
| HSUSBD_SetEpBufAddr, Set Endpoint buffer address. More...
__STATIC_INLINE void | HSUSBD_ConfigEp (uint32_t u32Ep, uint32_t u32EpNum, uint32_t u32EpType, uint32_t u32EpDir)
| HSUSBD_ConfigEp, Config Endpoint. More...
__STATIC_INLINE void | HSUSBD_SetEpStall (uint32_t u32Ep)
| Set USB endpoint stall state. More...
__STATIC_INLINE void | HSUSBD_SetStall (uint32_t u32EpNum)
| Set USB endpoint stall state. More...
__STATIC_INLINE void | HSUSBD_ClearEpStall (uint32_t u32Ep)
| Clear USB endpoint stall state. More...
__STATIC_INLINE void | HSUSBD_ClearStall (uint32_t u32EpNum)
| Clear USB endpoint stall state. More...
__STATIC_INLINE uint32_t | HSUSBD_GetEpStall (uint32_t u32Ep)
| Get USB endpoint stall state. More...
__STATIC_INLINE uint32_t | HSUSBD_GetStall (uint32_t u32EpNum)
| Get USB endpoint stall state. More...
void | HSUSBD_Open (S_HSUSBD_INFO_T *param, HSUSBD_CLASS_REQ pfnClassReq, HSUSBD_SET_INTERFACE_REQ pfnSetInterface)
| HSUSBD Initial. More...
void | HSUSBD_Start (void)
| HSUSBD Start. More...
void | HSUSBD_ProcessSetupPacket (void)
| Process Setup Packet. More...
void | HSUSBD_StandardRequest (void)
| Process USB standard request. More...
void | HSUSBD_UpdateDeviceState (void)
| Update Device State. More...
void | HSUSBD_PrepareCtrlIn (uint8_t pu8Buf[], uint32_t u32Size)
| Prepare Control IN transaction. More...
void | HSUSBD_CtrlIn (void)
| Start Control IN transfer. More...
void | HSUSBD_CtrlOut (uint8_t pu8Buf[], uint32_t u32Size)
| Start Control OUT transaction. More...
void | HSUSBD_SwReset (void)
| Clear all software flags. More...
void | HSUSBD_SetVendorRequest (HSUSBD_VENDOR_REQ pfnVendorReq)
| HSUSBD Set Vendor Request. More...

## Detailed Description

M480 HSUSBD driver header file.

Version
  V1.00 SPDX-License-Identifier: Apache-2.0

Copyright
  (C) 2016-2020 Nuvoton Technology Corp. All rights reserved.

Definition in file hsusbd.h.