VLSI Solution Oy / MegaLib Documentation

USBVARS Struct Reference

#include <usblowlib.h>

Collaboration diagram for USBVARS:

Collaboration graph
[legend]

Data Fields

const u_int16descriptorTable [6]
u_int16 configurationDescriptorSize
USBPacket pkt
u_int32 totbytes
u_int16 ExtraZeroLengthPacketNeeded [4]
const u_int16XmitBuf [4]
u_int16 XmitLength [4]
u_int16 EPReady [4]
u_int16 lastSofTimeout
u_int16 configuration
u_int16 interfaces
u_int16 lastSofFill
u_int32 lastSofTime

Detailed Description

Definition at line 149 of file usblowlib.h.


Field Documentation

u_int16 USBVARS::configuration
 

Stores current configuration. Only used for USB_REQUEST_GET_CONFIGURATION.

Definition at line 189 of file usblowlib.h.

u_int16 USBVARS::configurationDescriptorSize
 

Length of Configuration Descriptor. (needed because configuration descriptor is actually a collection of many descriptors so the first octet does not specify length of the entire descriptor)

Definition at line 168 of file usblowlib.h.

const u_int16* USBVARS::descriptorTable[6]
 

Descriptor Pointer Table Members are:

  • *stringDescriptor0
  • *stringDescriptor1
  • *stringDescriptor2,
  • *stringDescriptor3,
  • *deviceDescriptor,
  • *configurationDescriptor

For others than configurationDescriptor, descriptor size is first octet of descriptor.

Definition at line 162 of file usblowlib.h.

u_int16 USBVARS::EPReady[4]
 

Is endpoint ready to transmit new block?

Definition at line 185 of file usblowlib.h.

u_int16 USBVARS::ExtraZeroLengthPacketNeeded[4]
 

Is an extra zero-length packet needed after transmission?

Definition at line 176 of file usblowlib.h.

u_int16 USBVARS::interfaces
 

Stores current and alternate setting. Only used for USB_REQUEST_GET_INTERFACE.

Definition at line 190 of file usblowlib.h.

u_int16 USBVARS::lastSofFill
 

Audio buf fullness at last SOF

Definition at line 191 of file usblowlib.h.

u_int32 USBVARS::lastSofTime
 

When last SOF was received

Definition at line 192 of file usblowlib.h.

u_int16 USBVARS::lastSofTimeout
 

Used for suspend detection, although a bit inaccurate.

Definition at line 187 of file usblowlib.h.

USBPacket USBVARS::pkt
 

Holding space for one received USB packet.

Definition at line 171 of file usblowlib.h.

u_int32 USBVARS::totbytes
 

Total transferred bytes.

Definition at line 173 of file usblowlib.h.

const u_int16* USBVARS::XmitBuf[4]
 

Current USB Endpoint transmit buffer pointers

Definition at line 179 of file usblowlib.h.

u_int16 USBVARS::XmitLength[4]
 

Current USB Endpoints' bytes left to transmit

Definition at line 182 of file usblowlib.h.


The documentation for this struct was generated from the following file:
All software copyright 2005-2006 VLSI Solution OY. Redistribution of this software is strictly forbidden.