![]() |
![]() |
Device object structure which holds information related to a particular device controller - which assumes the role of one device. More...
#include <usb_dev_object.h>
Data Fields | |
| char | name [30U] |
| usbDcd_t | dcd |
| usbClassObj_t | usbClass |
| usbDevEvt_t | eventBuf [MAX_GADGET_EVENTS] |
| usbDmaEvt_t | eventBufDma [MAX_DMA_EVENTS] |
| usbDevRequest_t | requestbuf [MAX_NUM_REQUESTS] |
| usbDescriptor_t | pDesc |
| void * | pEpdata |
| usbSpeed_t | devSpeed |
| usbDeviceState_t | devState |
| usbDevChara_t | dcdCharecteristics |
| uint32_t | objectUsed |
| uint32_t | deviceAddress |
| uint32_t | remoteWakeEnabled |
| uint32_t | cmnInitialized |
| uint32_t | gadgetInitialized |
| uint32_t | dcdInitialized |
| uint32_t | irqInstalled |
| uint32_t | hiberWaitConnect |
| uint32_t | hiberWaitU0 |
Device object structure which holds information related to a particular device controller - which assumes the role of one device.
| uint32_t usbGadgetObj::cmnInitialized |
True if common functionality has been initialized.
| usbDcd_t usbGadgetObj::dcd |
dcd core object.
| usbDevChara_t usbGadgetObj::dcdCharecteristics |
dcd charecteristics object which is used to configure dcd
| uint32_t usbGadgetObj::dcdInitialized |
True if DCD has been initialized.
| uint32_t usbGadgetObj::deviceAddress |
Address assigned by the host.
| usbSpeed_t usbGadgetObj::devSpeed |
Speed of the function/ gadget - will be populated by the function driver
| usbDeviceState_t usbGadgetObj::devState |
Current state of the function/ gadget
| usbDevEvt_t usbGadgetObj::eventBuf[MAX_GADGET_EVENTS] |
array holding device events which are not time critical in nature - will be populated by DCD.
| usbDmaEvt_t usbGadgetObj::eventBufDma[MAX_DMA_EVENTS] |
This structure keeps a list of pending system DMA Events which need to be used to schedule system DMA transfers.
| uint32_t usbGadgetObj::gadgetInitialized |
True if Gadget has been initialized.
| uint32_t usbGadgetObj::hiberWaitConnect |
True if waiting for connect before resuming from hibernation.
| uint32_t usbGadgetObj::hiberWaitU0 |
True if waiting for U0 state before sending remote wake.
| uint32_t usbGadgetObj::irqInstalled |
True if common IRQ handler has been installed.
| char usbGadgetObj::name[30U] |
Name of the Controller instance - copied from dcd object
| uint32_t usbGadgetObj::objectUsed |
whether this object is in use or not 0 - not used , 1 -in use.
| usbDescriptor_t usbGadgetObj::pDesc |
Structure containing pointers to device desciptors - will be populated by the function driver.
| void* usbGadgetObj::pEpdata |
Pointer to endpoint data - Each function/gadget would have its own set.
| uint32_t usbGadgetObj::remoteWakeEnabled |
1 - means remote wakeup is enabled , 0 - disabled.
| usbDevRequest_t usbGadgetObj::requestbuf[MAX_NUM_REQUESTS] |
array holding requests to this device. This will be be populated by the function drivers with the help of Transaction manager. TODO: make this a list. A pointer to this array is used by the dcd to read the pending requests for this device.
| usbClassObj_t usbGadgetObj::usbClass |
usb class object