Macros | Enumerations | Functions
hw-libs/libchip/include/usbhs.h File Reference
#include <assert.h>
Include dependency graph for hw-libs/libchip/include/usbhs.h:

Go to the source code of this file.

Macros

#define CHIP_USB_DMA_NUMPIPE   7
 
#define CHIP_USB_NUMPIPE   10
 
#define CHIP_USB_PIPE_BANKS(ep)   ((ep==0)?1:((ep<=2)?3:2))
 
#define CHIP_USB_PIPE_DMA(ep)   ((((ep)>=1)&&((ep)<=7))?true:false)
 
#define CHIP_USB_PIPE_HBW(ep)   ((((ep)>=1) &&((ep)<=2))?true:false)
 
#define CHIP_USB_PIPE_MAXPACKETSIZE(ep)   ((ep == 0) ? 64 : 1024)
 
#define UHD_PIPE_MAX_TRANS   0x8000
 Maximum transfer size on USB DMA. More...
 
#define USB_DEVICE_HS_SUPPORT
 
#define USB_DEVICE_EP_CTRL_SIZE   64
 Control endpoint size. More...
 
#define CHIP_USB_UDP
 
#define CHIP_USB_PULLUP_INTERNAL
 
#define CHIP_USB_NUMENDPOINTS   10
 
#define CHIP_USB_ENDPOINTS_MAXPACKETSIZE(ep)   ((ep == 0) ? 64 : 1024)
 
#define CHIP_USB_ENDPOINTS_BANKS(ep)   ((ep==0)?1:((ep<=2)?3:2))
 
#define CHIP_USB_ENDPOINTS_HBW(ep)   ((((ep)>=1) &&((ep)<=2))?true:false)
 
#define CHIP_USB_ENDPOINTS_DMA(ep)   ((((ep)>=1)&&((ep)<=7))?true:false)
 
#define DMA_MAX_FIFO_SIZE   (65536/1)
 
#define EPT_VIRTUAL_SIZE   8192
 
USBHS Host IP properties

Get maximal number of endpoints

#define uhd_get_pipe_max_nbr()   (9)
 
#define USBHS_EPT_NUM   (uhd_get_pipe_max_nbr()+1)
 
#define uhd_get_pipe_bank_max_nbr(ep)   ((ep == 0) ? 1 : ((ep <= 2) ? 3 : 2))
 Get maximal number of banks of endpoints. More...
 
#define uhd_get_pipe_size_max(ep)   (((ep) == 0) ? 64 : 1024)
 Get maximal size of endpoint (3X, 1024/64) More...
 
#define Is_uhd_pipe_dma_supported(ep)   ((((ep) >= 1) && ((ep) <= 7)) ? true : false)
 Get DMA support of endpoints. More...
 
#define Is_uhd_pipe_high_bw_supported(ep)   (((ep) >= 2) ? true : false)
 Get High Band Width support of endpoints. More...
 

Enumerations

enum  USB_Mode_t { HOST_MODE = 0, DEVICE_MODE = 1 }
 

Functions

__STATIC_INLINE void USBHS_Ack (Usbhs *pUsbhs, uint32_t AckType)
 Raise interrupt for endpoint. More...
 
__STATIC_INLINE void USBHS_AckEpInterrupt (Usbhs *pUsbhs, uint8_t Ep, uint32_t EpInt)
 
__STATIC_INLINE void USBHS_AckInt (Usbhs *pUsbhs, uint32_t IntType)
 Acknowledge interrupt for endpoint. More...
 
__STATIC_INLINE void USBHS_AllocateMemory (Usbhs *pUsbhs, uint8_t Ep)
 
__STATIC_INLINE void USBHS_AutoSwitchBankEnable (Usbhs *pUsbhs, uint8_t Ep, uint8_t Enable)
 
__STATIC_INLINE uint16_t USBHS_ByteCount (Usbhs *pUsbhs, uint8_t Ep)
 
__STATIC_INLINE void USBHS_ClearHostStatus (Usbhs *pUsbhs, uint32_t IntType)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_ConfigureDma (UsbhsDevdma *pUsbDma, uint32_t Cfg)
 Setup the USBHS DMA. More...
 
__STATIC_INLINE void USBHS_ConfigureEPs (Usbhs *pUsbhs, const uint8_t Ep, const uint8_t Type, const uint8_t Dir, const uint8_t Size, const uint8_t Bank)
 
__STATIC_INLINE void USBHS_DetachUsb (Usbhs *pUsbhs, uint8_t Enable)
 Attach or detach USB. More...
 
__STATIC_INLINE void USBHS_DisableDMAIntEP (Usbhs *pUsbhs, uint8_t DmaEp)
 Disables DMA interrupt for endpoint. More...
 
__STATIC_INLINE void USBHS_DisableEPIntType (Usbhs *pUsbhs, uint8_t Ep, uint32_t EpInt)
 
__STATIC_INLINE void USBHS_DisableInt (Usbhs *pUsbhs, uint32_t IntType)
 Disables interrupt for endpoint. More...
 
__STATIC_INLINE void USBHS_DisableIntEP (Usbhs *pUsbhs, uint8_t Ep)
 Disables interrupt for endpoint. More...
 
__STATIC_INLINE void USBHS_DisableSOF (void)
 Sets USB host disable the Generation of Start of Frame. More...
 
__STATIC_INLINE void USBHS_EnableAddress (Usbhs *pUsbhs, uint8_t Enable)
 Enable or disable USB address. More...
 
__STATIC_INLINE void USBHS_EnableDMAIntEP (Usbhs *pUsbhs, uint32_t DmaEp)
 Enables DMA interrupt for a given endpoint. More...
 
__STATIC_INLINE void USBHS_EnableEP (Usbhs *pUsbhs, uint8_t Ep, uint8_t Enable)
 Enables or disables endpoint. More...
 
__STATIC_INLINE void USBHS_EnableEPIntType (Usbhs *pUsbhs, uint8_t Ep, uint32_t EpInt)
 
__STATIC_INLINE void USBHS_EnableHighSpeed (Usbhs *pUsbhs, uint8_t Enable)
 Disable/Enables High Speed mode. More...
 
__STATIC_INLINE void USBHS_EnableHSTestMode (Usbhs *pUsbhs)
 Disable/Enables HS Test mode. More...
 
__STATIC_INLINE void USBHS_EnableInt (Usbhs *pUsbhs, uint32_t IntType)
 Enables Interrupt. More...
 
__STATIC_INLINE void USBHS_EnableIntEP (Usbhs *pUsbhs, uint8_t EpNum)
 Enables interrupt for a given endpoint. More...
 
__STATIC_INLINE void USBHS_EnableSOF (Usbhs *pUsbhs)
 Sets USB host Enable the Generation of Start of Frame. More...
 
__STATIC_INLINE void USBHS_EnableTestMode (Usbhs *pUsbhs, uint32_t mode)
 Disable/Enables Test mode. More...
 
__STATIC_INLINE void USBHS_ForceLowSpeed (Usbhs *pUsbhs, uint8_t Enable)
 Force Low Speed mode. More...
 
__STATIC_INLINE void USBHS_FreeMemory (Usbhs *pUsbhs, uint8_t Ep)
 
__STATIC_INLINE void USBHS_FreezeClock (Usbhs *pUsbhs)
 Freeze or unfreeze USB clock. More...
 
__STATIC_INLINE uint8_t USBHS_GetAddress (Usbhs *pUsbhs)
 Get USB address. More...
 
__STATIC_INLINE uint32_t USBHS_GetConfigureEPs (Usbhs *pUsbhs, uint8_t Ep, uint32_t IntType)
 
__STATIC_INLINE uint32_t USBHS_GetDmaBuffAdd (UsbhsDevdma *pUsbDma)
 Gets USBHS's DMA Buffer addresse. More...
 
__STATIC_INLINE uint16_t USBHS_GetDmaBuffCount (UsbhsDevdma *pUsbDma)
 Get DMA buffer's count. More...
 
__STATIC_INLINE uint32_t USBHS_GetDmaConfiguration (UsbhsDevdma *pUsbDma)
 Get DMA configuration. More...
 
__STATIC_INLINE uint32_t USBHS_GetDmaNDA (UsbhsDevdma *pUsbDma)
 Gets DMA next descriptor address. More...
 
__STATIC_INLINE uint32_t USBHS_GetDmaStatus (UsbhsDevdma *pUsbDma)
 Get Dma Status. More...
 
__STATIC_INLINE uint32_t USBHS_GetEpSize (Usbhs *pUsbhs, uint8_t Ep)
 
__STATIC_INLINE uint8_t USBHS_GetEpType (Usbhs *pUsbhs, uint8_t Ep)
 
__STATIC_INLINE uint8_t USBHS_GetFrameNum (Usbhs *pUsbhs)
 Get Frame number. More...
 
__STATIC_INLINE uint8_t USBHS_GetFrameNumCrcErr (Usbhs *pUsbhs)
 Get Frame number CRC error. More...
 
__STATIC_INLINE uint32_t USBHS_GetHostDmaBuffAdd (UsbhsHstdma *pUsbDma)
 Gets USBHS's DMA Buffer addresse. More...
 
__STATIC_INLINE uint32_t USBHS_GetHostDmaConfiguration (UsbhsHstdma *pUsbDma)
 Get DMA configuration. More...
 
__STATIC_INLINE uint32_t USBHS_GetHostDmaNDA (UsbhsHstdma *pUsbDma)
 Gets DMA next descriptor address. More...
 
__STATIC_INLINE uint32_t USBHS_GetHostDmaPipeStatus (Usbhs *pUsbhs, uint8_t PipeInt)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint32_t USBHS_GetHostPipeDmaStatus (UsbhsHstdma *pUsbDma)
 Get Dma Status. More...
 
__STATIC_INLINE uint32_t USBHS_GetHostPipeStatus (Usbhs *pUsbhs, uint8_t PipeInt)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint32_t USBHS_GetHostStatus (Usbhs *pUsbhs, uint8_t IntType)
 Gets USB host interrupt status. More...
 
static uint8_t USBHS_GetInterruptPipeDmaNum (void)
 
__STATIC_INLINE uint8_t USBHS_GetInterruptPipeNum (void)
 
__STATIC_INLINE uint8_t USBHS_GetMicroFrameNum (Usbhs *pUsbhs)
 Get MicrFrame number. More...
 
__STATIC_INLINE uint8_t USBHS_GetPipeEpAddr (Usbhs *pUsbhs, uint8_t Pipe)
 
__STATIC_INLINE uint32_t USBHS_GetUsbSpeed (Usbhs *pUsbhs)
 Enable or disable USB address. More...
 
__STATIC_INLINE void USBHS_HostAckPipeIntType (Usbhs *pUsbhs, uint8_t Pipe, uint32_t intType)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostAllocMem (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostClearErr (Usbhs *pUsbhs, uint8_t Pipe, uint8_t Err)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostConfigure (Usbhs *pUsbhs, uint8_t Pipe, uint32_t pipeBank, uint8_t pipeSize, uint32_t pipeType, uint32_t pipeToken, uint8_t pipeEpNum, uint8_t PipeIntFreq)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostConfigureDma (UsbhsHstdma *pUsbDma, uint32_t Cfg)
 Setup the USBHS DMA. More...
 
__STATIC_INLINE void USBHS_HostDisableAutoSw (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostDisableInReq (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostDisablePipeIntType (Usbhs *pUsbhs, uint8_t Pipe, uint32_t intType)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostDmaIntDisable (Usbhs *pUsbhs, uint8_t PipeInt)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostDmaIntEnable (Usbhs *pUsbhs, uint8_t PipeInt)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostEnableAutoSw (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostEnableInReq (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostEnablePing (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostEnablePipeIntType (Usbhs *pUsbhs, uint8_t Pipe, uint32_t intType)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostFreeMem (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint8_t USBHS_HostGetAddr (Usbhs *pUsbhs, uint8_t Pipe)
 
__STATIC_INLINE uint8_t USBHS_HostGetCurrentBank (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint8_t USBHS_HostGetDataTogSeq (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint8_t USBHS_HostGetErr (Usbhs *pUsbhs, uint8_t Pipe, uint8_t Err)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint16_t USBHS_HostGetFramePos (void)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint32_t USBHS_HostGetIntTypeStatus (Usbhs *pUsbhs, uint8_t Pipe, uint32_t intType)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint16_t USBHS_HostGetMSOF (void)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint8_t USBHS_HostGetNumOfBusyBank (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint8_t USBHS_HostGetPipeByteCount (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint32_t USBHS_HostGetPipeType (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint16_t USBHS_HostGetSize (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint16_t USBHS_HostGetSOF (void)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint32_t USBHS_HostGetToken (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostInReq (Usbhs *pUsbhs, uint8_t Pipe, uint8_t InReq)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostIntDisable (Usbhs *pUsbhs, uint32_t IntType)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostIntEnable (Usbhs *pUsbhs, uint32_t IntType)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostPipeDisable (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostPipeEnable (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostPipeIntDisable (Usbhs *pUsbhs, uint8_t PipeInt)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostPipeIntEnable (Usbhs *pUsbhs, uint8_t PipeInt)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostPipeReset (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostSetAddr (Usbhs *pUsbhs, uint8_t Pipe, uint8_t Addr)
 
__STATIC_INLINE void USBHS_HostSetErr (Usbhs *pUsbhs, uint8_t Pipe, uint8_t Err)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostSetIntFreq (Usbhs *pUsbhs, uint8_t Pipe, uint8_t Freq)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostSetPipeIntType (Usbhs *pUsbhs, uint8_t Pipe, uint32_t intType)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostSetPipeType (Usbhs *pUsbhs, uint8_t Pipe, uint8_t PipeType)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_HostSetToken (Usbhs *pUsbhs, uint8_t Pipe, uint32_t Token)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint8_t USBHS_IsBankFree (Usbhs *pUsbhs, uint8_t Ep)
 
__STATIC_INLINE uint32_t USBHS_IsBankKilled (Usbhs *pUsbhs, uint8_t Ep)
 
__STATIC_INLINE uint32_t USBHS_IsDmaIntEnable (Usbhs *pUsbhs, uint8_t DmaNum)
 Check if endpoint's DMA interrupt is enabled for a given endpoint DMA number. More...
 
__STATIC_INLINE uint8_t USBHS_IsEnableSOF (Usbhs *pUsbhs)
 Sets USB host Enable the Generation of Start of Frame. More...
 
__STATIC_INLINE uint32_t USBHS_IsEPEnabled (Usbhs *pUsbhs, uint8_t Ep)
 Checks if Endpoint is enable. More...
 
__STATIC_INLINE uint32_t USBHS_IsEpIntEnable (Usbhs *pUsbhs, uint8_t Ep, uint32_t EpIntType)
 
__STATIC_INLINE uint32_t USBHS_IsHostConfigOk (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint32_t USBHS_IsHostDmaIntEnable (Usbhs *pUsbhs, uint8_t PipeInt)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint8_t USBHS_IsHostInReqEnable (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint8_t USBHS_IsHostIntEnable (Usbhs *pUsbhs, uint8_t IntType)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint32_t USBHS_IsHostPipeEnable (Usbhs *pUsbhs, uint8_t Pipe)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint32_t USBHS_IsHostPipeIntEnable (Usbhs *pUsbhs, uint8_t PipeInt)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint32_t USBHS_IsHostPipeIntTypeEnable (Usbhs *pUsbhs, uint8_t Pipe, uint32_t intType)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE uint32_t USBHS_IsIntEnable (Usbhs *pUsbhs, uint32_t IntType)
 check for interrupt of endpoint. More...
 
__STATIC_INLINE uint32_t USBHS_IsIntEnableEP (Usbhs *pUsbhs, uint8_t EpNum)
 Check if endpoint's interrupt is enabled for a given endpoint number. More...
 
__STATIC_INLINE uint8_t USBHS_ISUsableClock (Usbhs *pUsbhs)
 Check if clock is usable or not. More...
 
__STATIC_INLINE bool USBHS_IsUsbFullSpeed (Usbhs *pUsbhs)
 Enable or disable USB address. More...
 
__STATIC_INLINE bool USBHS_IsUsbHighSpeed (Usbhs *pUsbhs)
 Enable or disable USB address. More...
 
__STATIC_INLINE bool USBHS_IsUsbLowSpeed (Usbhs *pUsbhs)
 Enable or disable USB address. More...
 
__STATIC_INLINE void USBHS_KillBank (Usbhs *pUsbhs, uint8_t Ep)
 
__STATIC_INLINE uint8_t USBHS_NumOfBanksInUse (Usbhs *pUsbhs, uint8_t Ep)
 
__STATIC_INLINE void USBHS_RaiseDmaInt (Usbhs *pUsbhs, uint8_t Dma)
 Raise DMA interrupt for endpoint. More...
 
__STATIC_INLINE void USBHS_RaiseEPInt (Usbhs *pUsbhs, uint8_t Ep, uint32_t EpInt)
 
__STATIC_INLINE void USBHS_RaiseInt (Usbhs *pUsbhs, uint32_t IntType)
 Raise interrupt for endpoint. More...
 
__STATIC_INLINE uint32_t USBHS_ReadDmaIntStatus (Usbhs *pUsbhs, uint8_t DmaNum)
 Read status for a DMA Endpoint. More...
 
__STATIC_INLINE uint32_t USBHS_ReadEpIntStatus (Usbhs *pUsbhs, uint8_t EpNum)
 Read status for an Endpoint. More...
 
__STATIC_INLINE uint32_t USBHS_ReadEPStatus (Usbhs *pUsbhs, uint8_t Ep, uint32_t EpInt)
 
__STATIC_INLINE uint32_t USBHS_ReadIntStatus (Usbhs *pUsbhs, uint32_t IntType)
 Read status for an interrupt. More...
 
__STATIC_INLINE uint32_t USBHS_ReadStatus (Usbhs *pUsbhs)
 Raise interrupt for endpoint. More...
 
__STATIC_INLINE void USBHS_Reset (void)
 Sets USB host sends reste signal on USB Bus. More...
 
__STATIC_INLINE void USBHS_ResetEP (Usbhs *pUsbhs, uint8_t Ep)
 Rests Endpoint. More...
 
__STATIC_INLINE void USBHS_Resume (void)
 Sets USB host send Resume on USB bus. More...
 
__STATIC_INLINE void USBHS_Set (Usbhs *pUsbhs, uint32_t SetStatus)
 Raise interrupt for endpoint. More...
 
__STATIC_INLINE void USBHS_SetAddress (Usbhs *pUsbhs, uint8_t Addr)
 Configure USB address and enable or disable it. More...
 
__STATIC_INLINE void USBHS_SetDmaBuffAdd (UsbhsDevdma *pUsbDma, uint32_t Addr)
 Sets USBHS's DMA Buffer addresse. More...
 
__STATIC_INLINE void USBHS_SetDmaNDA (UsbhsDevdma *pUsbDma, uint32_t Desc)
 Sets DMA next descriptor address. More...
 
__STATIC_INLINE void USBHS_SetDmaStatus (UsbhsDevdma *pUsbDma, uint32_t Status)
 Set DMA status. More...
 
__STATIC_INLINE void USBHS_SetHostDmaBuffAdd (UsbhsHstdma *pUsbDma, uint32_t Addr)
 Sets USBHS's DMA Buffer addresse. More...
 
__STATIC_INLINE void USBHS_SetHostDmaNDA (UsbhsHstdma *pUsbDma, uint32_t Desc)
 Sets DMA next descriptor address. More...
 
__STATIC_INLINE void USBHS_SetHostDmaStatus (Usbhs *pUsbhs, uint8_t PipeInt)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_SetHostForcedFullSpeed (Usbhs *pUsbhs)
 Sets USB host's speed to forced Full speed. More...
 
__STATIC_INLINE void USBHS_SetHostHighSpeed (Usbhs *pUsbhs)
 Sets USB host's speed to Normal , it sets to HS from FS. More...
 
__STATIC_INLINE void USBHS_SetHostLowSpeed (Usbhs *pUsbhs)
 Sets USB host's speed to Low speed. More...
 
__STATIC_INLINE void USBHS_SetHostPipeDmaStatus (UsbhsHstdma *pUsbDma, uint32_t Status)
 Set DMA status. More...
 
__STATIC_INLINE void USBHS_SetHostStatus (Usbhs *pUsbhs, uint32_t IntType)
 Gets USB host interrupt status. More...
 
__STATIC_INLINE void USBHS_SetIsoTrans (Usbhs *pUsbhs, uint8_t Ep, uint8_t nbTrans)
 
__STATIC_INLINE void USBHS_SetRemoteWakeUp (Usbhs *pUsbhs)
 Set Remote WakeUp mode. More...
 
__STATIC_INLINE void USBHS_StopReset (void)
 Sets USB host sends reste signal on USB Bus. More...
 
__STATIC_INLINE void USBHS_UnFreezeClock (Usbhs *pUsbhs)
 Freeze or unfreeze USB clock. More...
 
__STATIC_INLINE void USBHS_UsbEnable (Usbhs *pUsbhs, uint8_t Enable)
 Enables or disables USB. More...
 
__STATIC_INLINE void USBHS_UsbMode (Usbhs *pUsbhs, USB_Mode_t Mode)
 Device or Host Mode. More...
 
__STATIC_INLINE void USBHS_VBusHWC (Usbhs *pUsbhs, uint8_t Enable)
 Freeze or unfreeze USB clock. More...
 

Macro Definition Documentation

◆ CHIP_USB_DMA_NUMPIPE

#define CHIP_USB_DMA_NUMPIPE   7

Number of USB endpoints

Definition at line 921 of file hw-libs/libchip/include/usbhs.h.

◆ CHIP_USB_ENDPOINTS_BANKS

#define CHIP_USB_ENDPOINTS_BANKS (   ep)    ((ep==0)?1:((ep<=2)?3:2))

Endpoints Number of Bank

Definition at line 59 of file hw-libs/libchip/include/usbhs.h.

◆ CHIP_USB_ENDPOINTS_DMA

#define CHIP_USB_ENDPOINTS_DMA (   ep)    ((((ep)>=1)&&((ep)<=7))?true:false)

Endpoints DMA support

Definition at line 65 of file hw-libs/libchip/include/usbhs.h.

◆ CHIP_USB_ENDPOINTS_HBW

#define CHIP_USB_ENDPOINTS_HBW (   ep)    ((((ep)>=1) &&((ep)<=2))?true:false)

Definition at line 62 of file hw-libs/libchip/include/usbhs.h.

◆ CHIP_USB_ENDPOINTS_MAXPACKETSIZE

#define CHIP_USB_ENDPOINTS_MAXPACKETSIZE (   ep)    ((ep == 0) ? 64 : 1024)

Endpoints max packet size

Definition at line 55 of file hw-libs/libchip/include/usbhs.h.

◆ CHIP_USB_NUMENDPOINTS

#define CHIP_USB_NUMENDPOINTS   10

Number of USB endpoints

Definition at line 52 of file hw-libs/libchip/include/usbhs.h.

◆ CHIP_USB_NUMPIPE

#define CHIP_USB_NUMPIPE   10

Number of USB endpoints

Definition at line 919 of file hw-libs/libchip/include/usbhs.h.

◆ CHIP_USB_PIPE_BANKS

#define CHIP_USB_PIPE_BANKS (   ep)    ((ep==0)?1:((ep<=2)?3:2))

Endpoints Number of Bank

Definition at line 928 of file hw-libs/libchip/include/usbhs.h.

◆ CHIP_USB_PIPE_DMA

#define CHIP_USB_PIPE_DMA (   ep)    ((((ep)>=1)&&((ep)<=7))?true:false)

Endpoints DMA support

Definition at line 934 of file hw-libs/libchip/include/usbhs.h.

◆ CHIP_USB_PIPE_HBW

#define CHIP_USB_PIPE_HBW (   ep)    ((((ep)>=1) &&((ep)<=2))?true:false)

Definition at line 931 of file hw-libs/libchip/include/usbhs.h.

◆ CHIP_USB_PIPE_MAXPACKETSIZE

#define CHIP_USB_PIPE_MAXPACKETSIZE (   ep)    ((ep == 0) ? 64 : 1024)

Endpoints max paxcket size

Definition at line 924 of file hw-libs/libchip/include/usbhs.h.

◆ CHIP_USB_PULLUP_INTERNAL

#define CHIP_USB_PULLUP_INTERNAL

Indicates chip has an internal pull-up.

Definition at line 49 of file hw-libs/libchip/include/usbhs.h.

◆ CHIP_USB_UDP

#define CHIP_USB_UDP

Indicates chip has an UDP High Speed.

Definition at line 46 of file hw-libs/libchip/include/usbhs.h.

◆ DMA_MAX_FIFO_SIZE

#define DMA_MAX_FIFO_SIZE   (65536/1)

Max size of the FMA FIFO

Definition at line 68 of file hw-libs/libchip/include/usbhs.h.

◆ EPT_VIRTUAL_SIZE

#define EPT_VIRTUAL_SIZE   8192

fifo space size in DW

Definition at line 70 of file hw-libs/libchip/include/usbhs.h.

◆ Is_uhd_pipe_dma_supported

#define Is_uhd_pipe_dma_supported (   ep)    ((((ep) >= 1) && ((ep) <= 7)) ? true : false)

Get DMA support of endpoints.

Definition at line 84 of file hw-libs/libchip/include/usbhs.h.

◆ Is_uhd_pipe_high_bw_supported

#define Is_uhd_pipe_high_bw_supported (   ep)    (((ep) >= 2) ? true : false)

Get High Band Width support of endpoints.

Definition at line 86 of file hw-libs/libchip/include/usbhs.h.

◆ uhd_get_pipe_bank_max_nbr

#define uhd_get_pipe_bank_max_nbr (   ep)    ((ep == 0) ? 1 : ((ep <= 2) ? 3 : 2))

Get maximal number of banks of endpoints.

Definition at line 80 of file hw-libs/libchip/include/usbhs.h.

◆ uhd_get_pipe_max_nbr

#define uhd_get_pipe_max_nbr ( )    (9)

Definition at line 77 of file hw-libs/libchip/include/usbhs.h.

◆ uhd_get_pipe_size_max

#define uhd_get_pipe_size_max (   ep)    (((ep) == 0) ? 64 : 1024)

Get maximal size of endpoint (3X, 1024/64)

Definition at line 82 of file hw-libs/libchip/include/usbhs.h.

◆ UHD_PIPE_MAX_TRANS

#define UHD_PIPE_MAX_TRANS   0x8000

Maximum transfer size on USB DMA.

Definition at line 95 of file hw-libs/libchip/include/usbhs.h.

◆ USB_DEVICE_EP_CTRL_SIZE

#define USB_DEVICE_EP_CTRL_SIZE   64

Control endpoint size.

Definition at line 43 of file hw-libs/libchip/include/usbhs.h.

◆ USB_DEVICE_HS_SUPPORT

#define USB_DEVICE_HS_SUPPORT

addtogroup usbd_hal

Definition at line 40 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_EPT_NUM

#define USBHS_EPT_NUM   (uhd_get_pipe_max_nbr()+1)

Definition at line 78 of file hw-libs/libchip/include/usbhs.h.

Enumeration Type Documentation

◆ USB_Mode_t

enum USB_Mode_t
Enumerator
HOST_MODE 
DEVICE_MODE 

Definition at line 89 of file hw-libs/libchip/include/usbhs.h.

Function Documentation

◆ USBHS_Ack()

__STATIC_INLINE void USBHS_Ack ( Usbhs pUsbhs,
uint32_t  AckType 
)

Raise interrupt for endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
AckTypeInterrupt Acknowledge type

Definition at line 246 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_AckEpInterrupt()

__STATIC_INLINE void USBHS_AckEpInterrupt ( Usbhs pUsbhs,
uint8_t  Ep,
uint32_t  EpInt 
)

Clears register/acknowledge for a given endpoint

Definition at line 761 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_AckInt()

__STATIC_INLINE void USBHS_AckInt ( Usbhs pUsbhs,
uint32_t  IntType 
)

Acknowledge interrupt for endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
IntTypeInterrupt Type

Definition at line 422 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_AllocateMemory()

__STATIC_INLINE void USBHS_AllocateMemory ( Usbhs pUsbhs,
uint8_t  Ep 
)

Allocate Endpoint memory

Definition at line 663 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_AutoSwitchBankEnable()

__STATIC_INLINE void USBHS_AutoSwitchBankEnable ( Usbhs pUsbhs,
uint8_t  Ep,
uint8_t  Enable 
)

Enable or disable Auto switch of banks

Definition at line 650 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_ByteCount()

__STATIC_INLINE uint16_t USBHS_ByteCount ( Usbhs pUsbhs,
uint8_t  Ep 
)

Read endpoint's byte count of the FIFO

Definition at line 808 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_ClearHostStatus()

__STATIC_INLINE void USBHS_ClearHostStatus ( Usbhs pUsbhs,
uint32_t  IntType 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1056 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_ConfigureDma()

__STATIC_INLINE void USBHS_ConfigureDma ( UsbhsDevdma pUsbDma,
uint32_t  Cfg 
)

Setup the USBHS DMA.

Parameters
pUsbDmaUSBHS device DMA instance
CfgDMA's configuration

Definition at line 864 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_ConfigureEPs()

__STATIC_INLINE void USBHS_ConfigureEPs ( Usbhs pUsbhs,
const uint8_t  Ep,
const uint8_t  Type,
const uint8_t  Dir,
const uint8_t  Size,
const uint8_t  Bank 
)

Set Endpoints configuration Bank size, type and direction

Definition at line 631 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_DetachUsb()

__STATIC_INLINE void USBHS_DetachUsb ( Usbhs pUsbhs,
uint8_t  Enable 
)

Attach or detach USB.

Parameters
pUsbhsPointer to an USBHS instance.
EnableAttachs or detach USB device

Definition at line 311 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_DisableDMAIntEP()

__STATIC_INLINE void USBHS_DisableDMAIntEP ( Usbhs pUsbhs,
uint8_t  DmaEp 
)

Disables DMA interrupt for endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
DmaEpEndpoint's DMA number

Definition at line 545 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_DisableEPIntType()

__STATIC_INLINE void USBHS_DisableEPIntType ( Usbhs pUsbhs,
uint8_t  Ep,
uint32_t  EpInt 
)

Disables an interrupt type for a given endpoint

Definition at line 752 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_DisableInt()

__STATIC_INLINE void USBHS_DisableInt ( Usbhs pUsbhs,
uint32_t  IntType 
)

Disables interrupt for endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
IntTypeInt type

Definition at line 524 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_DisableIntEP()

__STATIC_INLINE void USBHS_DisableIntEP ( Usbhs pUsbhs,
uint8_t  Ep 
)

Disables interrupt for endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
EpEndpoint number

Definition at line 535 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_DisableSOF()

__STATIC_INLINE void USBHS_DisableSOF ( void  )

Sets USB host disable the Generation of Start of Frame.

Parameters
pUsbhsUSBHS host instance

Definition at line 1014 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_EnableAddress()

__STATIC_INLINE void USBHS_EnableAddress ( Usbhs pUsbhs,
uint8_t  Enable 
)

Enable or disable USB address.

Parameters
pUsbhsPointer to an USBHS instance.
SetStatusSet USB status

Definition at line 275 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_EnableDMAIntEP()

__STATIC_INLINE void USBHS_EnableDMAIntEP ( Usbhs pUsbhs,
uint32_t  DmaEp 
)

Enables DMA interrupt for a given endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
DmaEpEndpoint's DMA interrupt number

Definition at line 512 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_EnableEP()

__STATIC_INLINE void USBHS_EnableEP ( Usbhs pUsbhs,
uint8_t  Ep,
uint8_t  Enable 
)

Enables or disables endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
EnableEnable/disable endpoint

Definition at line 558 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_EnableEPIntType()

__STATIC_INLINE void USBHS_EnableEPIntType ( Usbhs pUsbhs,
uint8_t  Ep,
uint32_t  EpInt 
)

Enables an interrupt type for a given endpoint

Definition at line 728 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_EnableHighSpeed()

__STATIC_INLINE void USBHS_EnableHighSpeed ( Usbhs pUsbhs,
uint8_t  Enable 
)

Disable/Enables High Speed mode.

Parameters
pUsbhsPointer to an USBHS instance.
EnableEnables/disable option

Definition at line 340 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_EnableHSTestMode()

__STATIC_INLINE void USBHS_EnableHSTestMode ( Usbhs pUsbhs)

Disable/Enables HS Test mode.

Parameters
pUsbhsPointer to an USBHS instance.

Definition at line 379 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_EnableInt()

__STATIC_INLINE void USBHS_EnableInt ( Usbhs pUsbhs,
uint32_t  IntType 
)

Enables Interrupt.

Parameters
pUsbhsPointer to an USBHS instance.
IntTypeInterrupt Type

Definition at line 491 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_EnableIntEP()

__STATIC_INLINE void USBHS_EnableIntEP ( Usbhs pUsbhs,
uint8_t  EpNum 
)

Enables interrupt for a given endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
DmaNumEndpoint's DMA number

Definition at line 501 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_EnableSOF()

__STATIC_INLINE void USBHS_EnableSOF ( Usbhs pUsbhs)

Sets USB host Enable the Generation of Start of Frame.

Parameters
pUsbhsUSBHS host instance

Definition at line 997 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_EnableTestMode()

__STATIC_INLINE void USBHS_EnableTestMode ( Usbhs pUsbhs,
uint32_t  mode 
)

Disable/Enables Test mode.

Parameters
pUsbhsPointer to an USBHS instance.
modeEnables/disable option

Definition at line 368 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_ForceLowSpeed()

__STATIC_INLINE void USBHS_ForceLowSpeed ( Usbhs pUsbhs,
uint8_t  Enable 
)

Force Low Speed mode.

Parameters
pUsbhsPointer to an USBHS instance.
EnableEnables the Full speed

Definition at line 326 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_FreeMemory()

__STATIC_INLINE void USBHS_FreeMemory ( Usbhs pUsbhs,
uint8_t  Ep 
)

Free allocated Endpoint memory

Definition at line 672 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_FreezeClock()

__STATIC_INLINE void USBHS_FreezeClock ( Usbhs pUsbhs)

Freeze or unfreeze USB clock.

=================================

USBHS_CTRL

Parameters
pUsbhsPointer to an USBHS instance.
EnableEnable or disable

Definition at line 108 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetAddress()

__STATIC_INLINE uint8_t USBHS_GetAddress ( Usbhs pUsbhs)

Get USB address.

Parameters
pUsbhsPointer to an USBHS instance.

Definition at line 300 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetConfigureEPs()

__STATIC_INLINE uint32_t USBHS_GetConfigureEPs ( Usbhs pUsbhs,
uint8_t  Ep,
uint32_t  IntType 
)

Get Endpoint configuration

Definition at line 681 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetDmaBuffAdd()

__STATIC_INLINE uint32_t USBHS_GetDmaBuffAdd ( UsbhsDevdma pUsbDma)

Gets USBHS's DMA Buffer addresse.

Parameters
pUsbDmaUSBHS device DMA instance
Returns
DMA addrs

Definition at line 854 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetDmaBuffCount()

__STATIC_INLINE uint16_t USBHS_GetDmaBuffCount ( UsbhsDevdma pUsbDma)

Get DMA buffer's count.

Parameters
pUsbDmaUSBHS device DMA instance
Returns
Buffer count

Definition at line 907 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetDmaConfiguration()

__STATIC_INLINE uint32_t USBHS_GetDmaConfiguration ( UsbhsDevdma pUsbDma)

Get DMA configuration.

Parameters
pUsbDmaUSBHS device DMA instance
Returns
DMA control setup

Definition at line 874 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetDmaNDA()

__STATIC_INLINE uint32_t USBHS_GetDmaNDA ( UsbhsDevdma pUsbDma)

Gets DMA next descriptor address.

Parameters
pUsbDmaUSBHS device DMA instance
Returns
Next DMA descriptor

Definition at line 833 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetDmaStatus()

__STATIC_INLINE uint32_t USBHS_GetDmaStatus ( UsbhsDevdma pUsbDma)

Get Dma Status.

Parameters
pUsbDmaUSBHS device DMA instance
Returns
Dma status

Definition at line 896 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetEpSize()

__STATIC_INLINE uint32_t USBHS_GetEpSize ( Usbhs pUsbhs,
uint8_t  Ep 
)

Get Endpoint Size

Definition at line 699 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetEpType()

__STATIC_INLINE uint8_t USBHS_GetEpType ( Usbhs pUsbhs,
uint8_t  Ep 
)

Get Endpoint Type

Definition at line 690 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetFrameNum()

__STATIC_INLINE uint8_t USBHS_GetFrameNum ( Usbhs pUsbhs)

Get Frame number.

Parameters
pUsbhsPointer to an USBHS instance. frame number

Definition at line 607 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetFrameNumCrcErr()

__STATIC_INLINE uint8_t USBHS_GetFrameNumCrcErr ( Usbhs pUsbhs)

Get Frame number CRC error.

Parameters
pUsbhsPointer to an USBHS instance. Frame number error status

Definition at line 618 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetHostDmaBuffAdd()

__STATIC_INLINE uint32_t USBHS_GetHostDmaBuffAdd ( UsbhsHstdma pUsbDma)

Gets USBHS's DMA Buffer addresse.

Parameters
pUsbDmaUSBHS device DMA instance
Returns
DMA addrs

Definition at line 1652 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetHostDmaConfiguration()

__STATIC_INLINE uint32_t USBHS_GetHostDmaConfiguration ( UsbhsHstdma pUsbDma)

Get DMA configuration.

Parameters
pUsbDmaUSBHS device DMA instance
Returns
DMA control setup

Definition at line 1672 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetHostDmaNDA()

__STATIC_INLINE uint32_t USBHS_GetHostDmaNDA ( UsbhsHstdma pUsbDma)

Gets DMA next descriptor address.

Parameters
pUsbDmaUSBHS device DMA instance
Returns
Next DMA descriptor

Definition at line 1630 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetHostDmaPipeStatus()

__STATIC_INLINE uint32_t USBHS_GetHostDmaPipeStatus ( Usbhs pUsbhs,
uint8_t  PipeInt 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1044 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetHostPipeDmaStatus()

__STATIC_INLINE uint32_t USBHS_GetHostPipeDmaStatus ( UsbhsHstdma pUsbDma)

Get Dma Status.

Parameters
pUsbDmaUSBHS device DMA instance
Returns
Dma status

Definition at line 1695 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetHostPipeStatus()

__STATIC_INLINE uint32_t USBHS_GetHostPipeStatus ( Usbhs pUsbhs,
uint8_t  PipeInt 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1033 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetHostStatus()

__STATIC_INLINE uint32_t USBHS_GetHostStatus ( Usbhs pUsbhs,
uint8_t  IntType 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1023 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetInterruptPipeDmaNum()

static uint8_t USBHS_GetInterruptPipeDmaNum ( void  )
inlinestatic

Definition at line 1605 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetInterruptPipeNum()

__STATIC_INLINE uint8_t USBHS_GetInterruptPipeNum ( void  )

Definition at line 1598 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetMicroFrameNum()

__STATIC_INLINE uint8_t USBHS_GetMicroFrameNum ( Usbhs pUsbhs)

Get MicrFrame number.

Parameters
pUsbhsPointer to an USBHS instance. Micro frame number

Definition at line 596 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetPipeEpAddr()

__STATIC_INLINE uint8_t USBHS_GetPipeEpAddr ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Definition at line 1366 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_GetUsbSpeed()

__STATIC_INLINE uint32_t USBHS_GetUsbSpeed ( Usbhs pUsbhs)

Enable or disable USB address.

Parameters
pUsbhsPointer to an USBHS instance.
Returns
USB speed status

Definition at line 196 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostAckPipeIntType()

__STATIC_INLINE void USBHS_HostAckPipeIntType ( Usbhs pUsbhs,
uint8_t  Pipe,
uint32_t  intType 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1484 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostAllocMem()

__STATIC_INLINE void USBHS_HostAllocMem ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1292 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostClearErr()

__STATIC_INLINE void USBHS_HostClearErr ( Usbhs pUsbhs,
uint8_t  Pipe,
uint8_t  Err 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1591 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostConfigure()

__STATIC_INLINE void USBHS_HostConfigure ( Usbhs pUsbhs,
uint8_t  Pipe,
uint32_t  pipeBank,
uint8_t  pipeSize,
uint32_t  pipeType,
uint32_t  pipeToken,
uint8_t  pipeEpNum,
uint8_t  PipeIntFreq 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1278 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostConfigureDma()

__STATIC_INLINE void USBHS_HostConfigureDma ( UsbhsHstdma pUsbDma,
uint32_t  Cfg 
)

Setup the USBHS DMA.

Parameters
pUsbDmaUSBHS device DMA instance
CfgDMA's configuration

Definition at line 1662 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostDisableAutoSw()

__STATIC_INLINE void USBHS_HostDisableAutoSw ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1392 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostDisableInReq()

__STATIC_INLINE void USBHS_HostDisableInReq ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1543 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostDisablePipeIntType()

__STATIC_INLINE void USBHS_HostDisablePipeIntType ( Usbhs pUsbhs,
uint8_t  Pipe,
uint32_t  intType 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1514 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostDmaIntDisable()

__STATIC_INLINE void USBHS_HostDmaIntDisable ( Usbhs pUsbhs,
uint8_t  PipeInt 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1138 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostDmaIntEnable()

__STATIC_INLINE void USBHS_HostDmaIntEnable ( Usbhs pUsbhs,
uint8_t  PipeInt 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1170 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostEnableAutoSw()

__STATIC_INLINE void USBHS_HostEnableAutoSw ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1383 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostEnableInReq()

__STATIC_INLINE void USBHS_HostEnableInReq ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1534 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostEnablePing()

__STATIC_INLINE void USBHS_HostEnablePing ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1412 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostEnablePipeIntType()

__STATIC_INLINE void USBHS_HostEnablePipeIntType ( Usbhs pUsbhs,
uint8_t  Pipe,
uint32_t  intType 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1524 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostFreeMem()

__STATIC_INLINE void USBHS_HostFreeMem ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1302 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostGetAddr()

__STATIC_INLINE uint8_t USBHS_HostGetAddr ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Definition at line 1221 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostGetCurrentBank()

__STATIC_INLINE uint8_t USBHS_HostGetCurrentBank ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1444 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostGetDataTogSeq()

__STATIC_INLINE uint8_t USBHS_HostGetDataTogSeq ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1422 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostGetErr()

__STATIC_INLINE uint8_t USBHS_HostGetErr ( Usbhs pUsbhs,
uint8_t  Pipe,
uint8_t  Err 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1580 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostGetFramePos()

__STATIC_INLINE uint16_t USBHS_HostGetFramePos ( void  )

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1190 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostGetIntTypeStatus()

__STATIC_INLINE uint32_t USBHS_HostGetIntTypeStatus ( Usbhs pUsbhs,
uint8_t  Pipe,
uint32_t  intType 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1474 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostGetMSOF()

__STATIC_INLINE uint16_t USBHS_HostGetMSOF ( void  )

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1201 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostGetNumOfBusyBank()

__STATIC_INLINE uint8_t USBHS_HostGetNumOfBusyBank ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1433 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostGetPipeByteCount()

__STATIC_INLINE uint8_t USBHS_HostGetPipeByteCount ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1455 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostGetPipeType()

__STATIC_INLINE uint32_t USBHS_HostGetPipeType ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1360 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostGetSize()

__STATIC_INLINE uint16_t USBHS_HostGetSize ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1313 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostGetSOF()

__STATIC_INLINE uint16_t USBHS_HostGetSOF ( void  )

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1180 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostGetToken()

__STATIC_INLINE uint32_t USBHS_HostGetToken ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1337 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostInReq()

__STATIC_INLINE void USBHS_HostInReq ( Usbhs pUsbhs,
uint8_t  Pipe,
uint8_t  InReq 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1561 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostIntDisable()

__STATIC_INLINE void USBHS_HostIntDisable ( Usbhs pUsbhs,
uint32_t  IntType 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1119 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostIntEnable()

__STATIC_INLINE void USBHS_HostIntEnable ( Usbhs pUsbhs,
uint32_t  IntType 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1151 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostPipeDisable()

__STATIC_INLINE void USBHS_HostPipeDisable ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1248 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostPipeEnable()

__STATIC_INLINE void USBHS_HostPipeEnable ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1238 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostPipeIntDisable()

__STATIC_INLINE void USBHS_HostPipeIntDisable ( Usbhs pUsbhs,
uint8_t  PipeInt 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1128 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostPipeIntEnable()

__STATIC_INLINE void USBHS_HostPipeIntEnable ( Usbhs pUsbhs,
uint8_t  PipeInt 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1160 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostPipeReset()

__STATIC_INLINE void USBHS_HostPipeReset ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1267 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostSetAddr()

__STATIC_INLINE void USBHS_HostSetAddr ( Usbhs pUsbhs,
uint8_t  Pipe,
uint8_t  Addr 
)

Definition at line 1207 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostSetErr()

__STATIC_INLINE void USBHS_HostSetErr ( Usbhs pUsbhs,
uint8_t  Pipe,
uint8_t  Err 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1571 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostSetIntFreq()

__STATIC_INLINE void USBHS_HostSetIntFreq ( Usbhs pUsbhs,
uint8_t  Pipe,
uint8_t  Freq 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1401 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostSetPipeIntType()

__STATIC_INLINE void USBHS_HostSetPipeIntType ( Usbhs pUsbhs,
uint8_t  Pipe,
uint32_t  intType 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1494 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostSetPipeType()

__STATIC_INLINE void USBHS_HostSetPipeType ( Usbhs pUsbhs,
uint8_t  Pipe,
uint8_t  PipeType 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1348 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_HostSetToken()

__STATIC_INLINE void USBHS_HostSetToken ( Usbhs pUsbhs,
uint8_t  Pipe,
uint32_t  Token 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1324 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsBankFree()

__STATIC_INLINE uint8_t USBHS_IsBankFree ( Usbhs pUsbhs,
uint8_t  Ep 
)

Check if given endpoint's bank is free

Definition at line 787 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsBankKilled()

__STATIC_INLINE uint32_t USBHS_IsBankKilled ( Usbhs pUsbhs,
uint8_t  Ep 
)

Enables an interrupt type for a given endpoint

Definition at line 737 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsDmaIntEnable()

__STATIC_INLINE uint32_t USBHS_IsDmaIntEnable ( Usbhs pUsbhs,
uint8_t  DmaNum 
)

Check if endpoint's DMA interrupt is enabled for a given endpoint DMA number.

Parameters
pUsbhsPointer to an USBHS instance.
DmaNumEndpoint's DMA number

Definition at line 480 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsEnableSOF()

__STATIC_INLINE uint8_t USBHS_IsEnableSOF ( Usbhs pUsbhs)

Sets USB host Enable the Generation of Start of Frame.

Parameters
pUsbhsUSBHS host instance

Definition at line 1006 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsEPEnabled()

__STATIC_INLINE uint32_t USBHS_IsEPEnabled ( Usbhs pUsbhs,
uint8_t  Ep 
)

Checks if Endpoint is enable.

Parameters
pUsbhsPointer to an USBHS instance.
EpEndpoint Number

Definition at line 586 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsEpIntEnable()

__STATIC_INLINE uint32_t USBHS_IsEpIntEnable ( Usbhs pUsbhs,
uint8_t  Ep,
uint32_t  EpIntType 
)

Check for interrupt types enabled for a given endpoint

Definition at line 718 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsHostConfigOk()

__STATIC_INLINE uint32_t USBHS_IsHostConfigOk ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1465 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsHostDmaIntEnable()

__STATIC_INLINE uint32_t USBHS_IsHostDmaIntEnable ( Usbhs pUsbhs,
uint8_t  PipeInt 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1106 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsHostInReqEnable()

__STATIC_INLINE uint8_t USBHS_IsHostInReqEnable ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1552 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsHostIntEnable()

__STATIC_INLINE uint8_t USBHS_IsHostIntEnable ( Usbhs pUsbhs,
uint8_t  IntType 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1086 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsHostPipeEnable()

__STATIC_INLINE uint32_t USBHS_IsHostPipeEnable ( Usbhs pUsbhs,
uint8_t  Pipe 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1258 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsHostPipeIntEnable()

__STATIC_INLINE uint32_t USBHS_IsHostPipeIntEnable ( Usbhs pUsbhs,
uint8_t  PipeInt 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1095 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsHostPipeIntTypeEnable()

__STATIC_INLINE uint32_t USBHS_IsHostPipeIntTypeEnable ( Usbhs pUsbhs,
uint8_t  Pipe,
uint32_t  intType 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1504 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsIntEnable()

__STATIC_INLINE uint32_t USBHS_IsIntEnable ( Usbhs pUsbhs,
uint32_t  IntType 
)

check for interrupt of endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
IntTypeInterrupt Type

Definition at line 456 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsIntEnableEP()

__STATIC_INLINE uint32_t USBHS_IsIntEnableEP ( Usbhs pUsbhs,
uint8_t  EpNum 
)

Check if endpoint's interrupt is enabled for a given endpoint number.

Parameters
pUsbhsPointer to an USBHS instance.
EpNumEndpoint number

Definition at line 467 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_ISUsableClock()

__STATIC_INLINE uint8_t USBHS_ISUsableClock ( Usbhs pUsbhs)

Check if clock is usable or not.

Parameters
pUsbhsPointer to an USBHS instance.
Returns
1 if USB clock is usable

Definition at line 173 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsUsbFullSpeed()

__STATIC_INLINE bool USBHS_IsUsbFullSpeed ( Usbhs pUsbhs)

Enable or disable USB address.

Parameters
pUsbhsPointer to an USBHS instance.
Returns
USB speed status

Definition at line 208 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsUsbHighSpeed()

__STATIC_INLINE bool USBHS_IsUsbHighSpeed ( Usbhs pUsbhs)

Enable or disable USB address.

Parameters
pUsbhsPointer to an USBHS instance.
Returns
USB speed status

Definition at line 221 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_IsUsbLowSpeed()

__STATIC_INLINE bool USBHS_IsUsbLowSpeed ( Usbhs pUsbhs)

Enable or disable USB address.

Parameters
pUsbhsPointer to an USBHS instance.
Returns
USB speed status

Definition at line 233 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_KillBank()

__STATIC_INLINE void USBHS_KillBank ( Usbhs pUsbhs,
uint8_t  Ep 
)

Enables an interrupt type for a given endpoint

Definition at line 745 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_NumOfBanksInUse()

__STATIC_INLINE uint8_t USBHS_NumOfBanksInUse ( Usbhs pUsbhs,
uint8_t  Ep 
)

Read endpoint's bank number in use

Definition at line 798 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_RaiseDmaInt()

__STATIC_INLINE void USBHS_RaiseDmaInt ( Usbhs pUsbhs,
uint8_t  Dma 
)

Raise DMA interrupt for endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
IntTypeInterrupt Type

Definition at line 444 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_RaiseEPInt()

__STATIC_INLINE void USBHS_RaiseEPInt ( Usbhs pUsbhs,
uint8_t  Ep,
uint32_t  EpInt 
)

Sets/Raise register for a given endpoint

Definition at line 770 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_RaiseInt()

__STATIC_INLINE void USBHS_RaiseInt ( Usbhs pUsbhs,
uint32_t  IntType 
)

Raise interrupt for endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
IntTypeInterrupt Type

Definition at line 434 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_ReadDmaIntStatus()

__STATIC_INLINE uint32_t USBHS_ReadDmaIntStatus ( Usbhs pUsbhs,
uint8_t  DmaNum 
)

Read status for a DMA Endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
DmaNumDMA Endpoint

Definition at line 411 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_ReadEpIntStatus()

__STATIC_INLINE uint32_t USBHS_ReadEpIntStatus ( Usbhs pUsbhs,
uint8_t  EpNum 
)

Read status for an Endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
EpNumEndpoint

Definition at line 401 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_ReadEPStatus()

__STATIC_INLINE uint32_t USBHS_ReadEPStatus ( Usbhs pUsbhs,
uint8_t  Ep,
uint32_t  EpInt 
)

Gets interrupt status for a given EP

Definition at line 778 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_ReadIntStatus()

__STATIC_INLINE uint32_t USBHS_ReadIntStatus ( Usbhs pUsbhs,
uint32_t  IntType 
)

Read status for an interrupt.

Parameters
pUsbhsPointer to an USBHS instance.
IntTypeInterrupt type

Definition at line 390 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_ReadStatus()

__STATIC_INLINE uint32_t USBHS_ReadStatus ( Usbhs pUsbhs)

Raise interrupt for endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
Returns
USB status

Definition at line 185 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_Reset()

__STATIC_INLINE void USBHS_Reset ( void  )

Sets USB host sends reste signal on USB Bus.

Parameters
pUsbhsUSBHS host instance

Definition at line 970 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_ResetEP()

__STATIC_INLINE void USBHS_ResetEP ( Usbhs pUsbhs,
uint8_t  Ep 
)

Rests Endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
EpEndpoint Number

Definition at line 574 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_Resume()

__STATIC_INLINE void USBHS_Resume ( void  )

Sets USB host send Resume on USB bus.

Parameters
pUsbhsUSBHS host instance

Definition at line 988 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_Set()

__STATIC_INLINE void USBHS_Set ( Usbhs pUsbhs,
uint32_t  SetStatus 
)

Raise interrupt for endpoint.

Parameters
pUsbhsPointer to an USBHS instance.
SetStatusSet USB status

Definition at line 259 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_SetAddress()

__STATIC_INLINE void USBHS_SetAddress ( Usbhs pUsbhs,
uint8_t  Addr 
)

Configure USB address and enable or disable it.

Parameters
pUsbhsPointer to an USBHS instance.
AddrUSB device status

Definition at line 289 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_SetDmaBuffAdd()

__STATIC_INLINE void USBHS_SetDmaBuffAdd ( UsbhsDevdma pUsbDma,
uint32_t  Addr 
)

Sets USBHS's DMA Buffer addresse.

Parameters
pUsbDmaUSBHS device DMA instance
AddrDMA's buffer Addrs

Definition at line 843 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_SetDmaNDA()

__STATIC_INLINE void USBHS_SetDmaNDA ( UsbhsDevdma pUsbDma,
uint32_t  Desc 
)

Sets DMA next descriptor address.

Parameters
pUsbDmaUSBHS device DMA instance
DescNDA address

Definition at line 823 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_SetDmaStatus()

__STATIC_INLINE void USBHS_SetDmaStatus ( UsbhsDevdma pUsbDma,
uint32_t  Status 
)

Set DMA status.

Parameters
pUsbDmaUSBHS device DMA instance Set DMA status

Definition at line 885 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_SetHostDmaBuffAdd()

__STATIC_INLINE void USBHS_SetHostDmaBuffAdd ( UsbhsHstdma pUsbDma,
uint32_t  Addr 
)

Sets USBHS's DMA Buffer addresse.

Parameters
pUsbDmaUSBHS device DMA instance
AddrDMA's buffer Addrs

Definition at line 1640 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_SetHostDmaNDA()

__STATIC_INLINE void USBHS_SetHostDmaNDA ( UsbhsHstdma pUsbDma,
uint32_t  Desc 
)

Sets DMA next descriptor address.

Parameters
pUsbDmaUSBHS device DMA instance
DescNDA addrs

Definition at line 1620 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_SetHostDmaStatus()

__STATIC_INLINE void USBHS_SetHostDmaStatus ( Usbhs pUsbhs,
uint8_t  PipeInt 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1074 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_SetHostForcedFullSpeed()

__STATIC_INLINE void USBHS_SetHostForcedFullSpeed ( Usbhs pUsbhs)

Sets USB host's speed to forced Full speed.

Parameters
pUsbhsUSBHS host instance

Definition at line 960 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_SetHostHighSpeed()

__STATIC_INLINE void USBHS_SetHostHighSpeed ( Usbhs pUsbhs)

Sets USB host's speed to Normal , it sets to HS from FS.

Parameters
pUsbhsUSBHS host instance

Definition at line 940 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_SetHostLowSpeed()

__STATIC_INLINE void USBHS_SetHostLowSpeed ( Usbhs pUsbhs)

Sets USB host's speed to Low speed.

Parameters
pUsbhsUSBHS host instance

Definition at line 950 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_SetHostPipeDmaStatus()

__STATIC_INLINE void USBHS_SetHostPipeDmaStatus ( UsbhsHstdma pUsbDma,
uint32_t  Status 
)

Set DMA status.

Parameters
pUsbDmaUSBHS device DMA instance Set DMA status

Definition at line 1683 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_SetHostStatus()

__STATIC_INLINE void USBHS_SetHostStatus ( Usbhs pUsbhs,
uint32_t  IntType 
)

Gets USB host interrupt status.

Parameters
pUsbhsUSBHS host instance

Definition at line 1065 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_SetIsoTrans()

__STATIC_INLINE void USBHS_SetIsoTrans ( Usbhs pUsbhs,
uint8_t  Ep,
uint8_t  nbTrans 
)

Sets ISO endpoint's Number of Transfer for High Speed

Definition at line 709 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_SetRemoteWakeUp()

__STATIC_INLINE void USBHS_SetRemoteWakeUp ( Usbhs pUsbhs)

Set Remote WakeUp mode.

Parameters
pUsbhsPointer to an USBHS instance.

Definition at line 357 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_StopReset()

__STATIC_INLINE void USBHS_StopReset ( void  )

Sets USB host sends reste signal on USB Bus.

Parameters
pUsbhsUSBHS host instance

Definition at line 979 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_UnFreezeClock()

__STATIC_INLINE void USBHS_UnFreezeClock ( Usbhs pUsbhs)

Freeze or unfreeze USB clock.

Parameters
pUsbhsPointer to an USBHS instance.
EnableEnable or disable

Definition at line 118 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_UsbEnable()

__STATIC_INLINE void USBHS_UsbEnable ( Usbhs pUsbhs,
uint8_t  Enable 
)

Enables or disables USB.

Parameters
pUsbhsPointer to an USBHS instance.
EnableEnable or disable

Definition at line 142 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_UsbMode()

__STATIC_INLINE void USBHS_UsbMode ( Usbhs pUsbhs,
USB_Mode_t  Mode 
)

Device or Host Mode.

Parameters
pUsbhsPointer to an USBHS instance.
ModeDevice or Host Mode

Definition at line 157 of file hw-libs/libchip/include/usbhs.h.

◆ USBHS_VBusHWC()

__STATIC_INLINE void USBHS_VBusHWC ( Usbhs pUsbhs,
uint8_t  Enable 
)

Freeze or unfreeze USB clock.

Parameters
pUsbhsPointer to an USBHS instance.
EnableEnable or disable

Definition at line 127 of file hw-libs/libchip/include/usbhs.h.



inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:07