EFM32 Giant Gecko Software Documentation  efm32gg-doc-5.1.2
USBH_Ep_TypeDef Struct Reference

Detailed Description

USB HOST endpoint status data.

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

Definition at line 861 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 874 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 875 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 865 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 870 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 869 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 871 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 868 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 866 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 880 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 863 of file em_usb.h.

Referenced by USBH_ControlMsg().

uint8_t USBH_Ep_TypeDef::setupErrCnt

Error counter for SETUP transfers.

Definition at line 864 of file em_usb.h.

Referenced by USBH_ControlMsg().

USBH_EpState_TypeDef USBH_Ep_TypeDef::state

Endpoint state.

Definition at line 873 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 881 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 872 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 867 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 878 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 876 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 879 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 877 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: