USBH_Ep_TypeDef Struct Reference

USB HOST endpoint status data.

A host application should not manipulate the contents of this struct.

Definition at line 842 of file em_usb.h.

#include <em_usb.h>

Data Fields

uint8_t addr
 
uint8_t * buf
 
USB_EndpointDescriptor_TypeDef epDesc
 
uint8_t hcIn
 
uint8_t hcOut
 
bool in
 
uint16_t packetSize
 
struct USBH_Device_TypeDefparentDevice
 
uint32_t remaining
 
USB_Setup_TypeDef setup
 
uint8_t setupErrCnt
 
USBH_EpState_TypeDef state
 
uint32_t timeout
 
uint8_t toggle
 
uint8_t type
 
USB_XferCompleteCb_TypeDef xferCompleteCb
 
volatile bool xferCompleted
 
uint32_t xferred
 
USB_Status_TypeDef xferStatus
 

Field Documentation

uint8_t USBH_Ep_TypeDef::addr

Endpoint address.

Definition at line 854 of file em_usb.h.

Referenced by USBH_AssignHostChannel(), USBH_StallEpB(), and USBH_UnStallEpB().

uint8_t* USBH_Ep_TypeDef::buf

Transfer buffer.

Definition at line 855 of file em_usb.h.

Referenced by USBH_ControlMsg(), USBH_Read(), and USBH_Write().

USB_EndpointDescriptor_TypeDef USBH_Ep_TypeDef::epDesc

Endpoint descriptor.

Definition at line 845 of file em_usb.h.

Referenced by USBH_AssignHostChannel(), USBH_InitDeviceData(), USBH_Read(), and USBH_Write().

uint8_t USBH_Ep_TypeDef::hcIn

Host channel number assigned for IN transfers.

Definition at line 850 of file em_usb.h.

Referenced by USBH_AssignHostChannel(), USBH_ControlMsg(), USBH_InitDeviceData(), and USBH_Read().

uint8_t USBH_Ep_TypeDef::hcOut

Host channel number assigned for OUT transfers.

Definition at line 849 of file em_usb.h.

Referenced by USBH_AssignHostChannel(), USBH_ControlMsg(), USBH_InitDeviceData(), and USBH_Write().

bool USBH_Ep_TypeDef::in

Endpoint direction.

Definition at line 851 of file em_usb.h.

Referenced by USBH_AssignHostChannel(), USBH_Read(), and USBH_Write().

uint16_t USBH_Ep_TypeDef::packetSize

Packet size, current transfer.

Definition at line 848 of file em_usb.h.

Referenced by USBH_AssignHostChannel(), USBH_InitDeviceData(), USBH_QueryDeviceB(), USBH_Read(), and USBH_Write().

struct USBH_Device_TypeDef* USBH_Ep_TypeDef::parentDevice

The device the endpoint belongs to.

Definition at line 846 of file em_usb.h.

Referenced by MSDBOT_Init(), USBH_InitDeviceData(), USBH_StallEpB(), and USBH_UnStallEpB().

uint32_t USBH_Ep_TypeDef::remaining

Number of bytes remaining.

Definition at line 860 of file em_usb.h.

Referenced by USBH_Read(), and USBH_Write().

USB_Setup_TypeDef USBH_Ep_TypeDef::setup

A SETUP package.

Definition at line 843 of file em_usb.h.

Referenced by USBH_ControlMsg().

uint8_t USBH_Ep_TypeDef::setupErrCnt

Error counter for SETUP transfers.

Definition at line 844 of file em_usb.h.

Referenced by USBH_ControlMsg().

USBH_EpState_TypeDef USBH_Ep_TypeDef::state

Endpoint state.

Definition at line 853 of file em_usb.h.

Referenced by USBH_AssignHostChannel(), USBH_ControlMsg(), USBH_Read(), and USBH_Write().

uint32_t USBH_Ep_TypeDef::timeout

Transfer timeout.

Definition at line 861 of file em_usb.h.

Referenced by USBH_ControlMsg(), USBH_Read(), and USBH_Write().

uint8_t USBH_Ep_TypeDef::toggle

Endpoint data toggle.

Definition at line 852 of file em_usb.h.

Referenced by USBH_InitDeviceData(), USBH_SetAltInterfaceB(), USBH_SetConfigurationB(), and USBH_UnStallEpB().

uint8_t USBH_Ep_TypeDef::type

Endpoint type.

Definition at line 847 of file em_usb.h.

Referenced by USBH_AssignHostChannel(), USBH_InitDeviceData(), USBH_Read(), and USBH_Write().

USB_XferCompleteCb_TypeDef USBH_Ep_TypeDef::xferCompleteCb

Transfer completion callback function.

Definition at line 858 of file em_usb.h.

Referenced by USBH_ControlMsg(), USBH_Read(), and USBH_Write().

volatile bool USBH_Ep_TypeDef::xferCompleted

Transfer completion flag.

Definition at line 856 of file em_usb.h.

Referenced by USBH_ControlMsg(), USBH_ControlMsgB(), USBH_Read(), USBH_ReadB(), USBH_Write(), and USBH_WriteB().

uint32_t USBH_Ep_TypeDef::xferred

Number of bytes transferred.

Definition at line 859 of file em_usb.h.

Referenced by USBH_ControlMsg(), USBH_ControlMsgB(), USBH_Read(), USBH_ReadB(), USBH_Write(), and USBH_WriteB().

USB_Status_TypeDef USBH_Ep_TypeDef::xferStatus

Transfer status.

Definition at line 857 of file em_usb.h.

Referenced by USBH_ControlMsgB(), USBH_ReadB(), and USBH_WriteB().


The documentation for this struct was generated from the following file:
  • C:/HandsOn/super/platform/middleware/usb_gecko/inc/em_usb.h