USBH_Ep_TypeDef Struct Reference

USB HOST endpoint status data.

#include <em_usb.h>

Data Fields

USB_Setup_TypeDef setup
A SETUP package.
uint8_t setupErrCnt
Error counter for SETUP transfers.
USB_EndpointDescriptor_TypeDef epDesc
Endpoint descriptor.
struct USBH_Device_TypeDef * parentDevice
The device the endpoint belongs to.
uint8_t type
Endpoint type.
uint16_t packetSize
Packet size, current transfer.
uint8_t hcOut
Host channel number assigned for OUT transfers.
uint8_t hcIn
Host channel number assigned for IN transfers.
bool in
Endpoint direction.
uint8_t toggle
Endpoint data toggle.
USBH_EpState_TypeDef state
Endpoint state.
uint8_t addr
Endpoint address.
uint8_t * buf
Transfer buffer.
volatile bool xferCompleted
Transfer completion flag.
USB_Status_TypeDef xferStatus
Transfer status.
USB_XferCompleteCb_TypeDef xferCompleteCb
Transfer completion callback function.
uint32_t xferred
Number of bytes transferred.
uint32_t remaining
Number of bytes remaining.
uint32_t timeout
Transfer timeout.

USB HOST endpoint status data.

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

Field Documentation

setup

USB_Setup_TypeDef USBH_Ep_TypeDef::setup

A SETUP package.


setupErrCnt

uint8_t USBH_Ep_TypeDef::setupErrCnt

Error counter for SETUP transfers.


epDesc

USB_EndpointDescriptor_TypeDef USBH_Ep_TypeDef::epDesc

Endpoint descriptor.


parentDevice

struct USBH_Device_TypeDef * USBH_Ep_TypeDef::parentDevice

The device the endpoint belongs to.


type

uint8_t USBH_Ep_TypeDef::type

Endpoint type.


packetSize

uint16_t USBH_Ep_TypeDef::packetSize

Packet size, current transfer.


hcOut

uint8_t USBH_Ep_TypeDef::hcOut

Host channel number assigned for OUT transfers.


hcIn

uint8_t USBH_Ep_TypeDef::hcIn

Host channel number assigned for IN transfers.


in

bool USBH_Ep_TypeDef::in

Endpoint direction.


toggle

uint8_t USBH_Ep_TypeDef::toggle

Endpoint data toggle.


state

USBH_EpState_TypeDef USBH_Ep_TypeDef::state

Endpoint state.


addr

uint8_t USBH_Ep_TypeDef::addr

Endpoint address.


buf

uint8_t* USBH_Ep_TypeDef::buf

Transfer buffer.


xferCompleted

volatile bool USBH_Ep_TypeDef::xferCompleted

Transfer completion flag.


xferStatus

USB_Status_TypeDef USBH_Ep_TypeDef::xferStatus

Transfer status.


xferCompleteCb

USB_XferCompleteCb_TypeDef USBH_Ep_TypeDef::xferCompleteCb

Transfer completion callback function.


xferred

uint32_t USBH_Ep_TypeDef::xferred

Number of bytes transferred.


remaining

uint32_t USBH_Ep_TypeDef::remaining

Number of bytes remaining.


timeout

uint32_t USBH_Ep_TypeDef::timeout

Transfer timeout.