XMC Peripheral Library for XMC4000 Family: XMC_USBD_DEVICE_t Struct Reference

XMC Peripheral Library for XMC4000 Family

XMC Peripheral Library for XMC4000 Family  2.1.16
XMC_USBD_DEVICE_t Struct Reference

#include <xmc_usbd.h>

Data Fields

dwc_otg_device_global_regs_t * device_register
 
XMC_USBD_SignalDeviceEvent_t DeviceEvent_cb
 
dwc_otg_dev_in_ep_regs_t * endpoint_in_register [(uint8_t)(7U)]
 
dwc_otg_dev_out_ep_regs_t * endpoint_out_register [(uint8_t)(7U)]
 
XMC_USBD_SignalEndpointEvent_t EndpointEvent_cb
 
XMC_USBD_EP_t ep [8]
 
volatile uint32_t * fifo [(uint8_t)(7U)]
 
dwc_otg_core_global_regs_t * global_register
 
uint32_t IsActive: 1
 
uint32_t IsConnected: 1
 
uint32_t IsPowered: 1
 
uint16_t txfifomsk
 

Detailed Description

Describes the XMC USB device

All information to control an XMC USB device is stored in this structure. It contains register, callbacks, information about the endpoints and the status of the device.

Field Documentation

dwc_otg_device_global_regs_t* device_register

Device register interface

The USB device event callback.

dwc_otg_dev_in_ep_regs_t* endpoint_in_register[(uint8_t)(7U) ]

IN Endpoint register interface

dwc_otg_dev_out_ep_regs_t* endpoint_out_register[(uint8_t)(7U) ]

OUT Endpoint register interface

The USB endpoint event callback.

Endpoints of the USB device. It is of type XMC_USBD_EP_t

volatile uint32_t* fifo[(uint8_t)(7U) ]

Transmit fifo interface

dwc_otg_core_global_regs_t* global_register

Global register interface

uint32_t IsActive

Sets if device is currently active

uint32_t IsConnected

Sets if device is connected

uint32_t IsPowered

Sets if device is powered by Vbus

uint16_t txfifomsk

Mask of used TX fifos


The documentation for this struct was generated from the following file:
Generated on Mon Aug 7 2017 11:33:58 for XMC Peripheral Library for XMC4000 Family by   doxygen 1.8.11