This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C5515 Looking for USB Host Packet Descriptor Definition



The SPRU511 "TMS320C55x CSL USB Programmer's Reference Guide" dated Jun 2010, section 2.9.2 on page 41 description of the "Host Packet Descriptor" is not well documented.

The CSL library code is littered with numerous manifest constants for the descriptors. For example, USB_confDmaTx((..) in csl_usbAux.h contains the following code:

hpdtx->PacketInfoWord0 = 0x80000000 | packetsize;

hpdtx->PacketInfoWord2 = 0x14000018;

Are there any #define or constant definitions in any header files for the bits in the packet descriptor?

Where did these magic numbers come from?

Is there any better documentation that describes the bit level detail, much like a register definition?

 

  • The USB device descriptor format and configuration descriptor format are defined in USB spec. You should be able to download this spec from USB website. C5515/5505 are based on USB 2.0.

    Here is a USB device descriptor header file that can be used for C5515/C5505 device. Please take a look at the comments again the USB spec, you will know what it is:

    Regards

    Wen

    //////////////////////////////////////////////////////

    //USB Device Descriptor: 18-bytes
    const unsigned char deviceDesc[]=
      {0x12,       // bLength = 18d
       0x01,       // bDeviceDescriptorType=1(defined by USB spec)
       0x00, 0x02, // bcdUSB USB Version 2.0 (L-Byte/H-Byte)
       0x00,       // bDeviceClass
       0x00,       // bDeviceSubclass
       0x00,       // bDeviceProtocol
       0x40,       // bMaxPacketSize 8 Bytes
       0x51, 0x04, // idVendor(L-Byte/H-Byte): TI=0x0451
       0x05, 0x90, // idProduct(L-Byte/H-Byte): productID = 0x9005
       0x00, 0x01, // bcdDevice(L-Byte/H-Byte): device's release number 1.00
       1,          // iManufacturer String Index
       2,          // iProduct String Index
       3,          // iSerialNumber String Index
       1};         // bNumberConfigurations

  • Sorry, but your response is completely unrelated to the posted questions.

    Please reread the question. I am looking for a definition of the C5515 USB DMA controller "Host Packet Descriptor".

    As far as I can tell TI has not defined the bits and bytes of the fields of the descriptor that gets input to the DMA queue manager of the CPPI 4.1.

     

  • Ok; here is the Host Packet Descriptor table from our CPPI documentation. hopefully, it will help. In order to get the documentation itself (details of definition), you have to contact your TI local sale office.  

    Wen

    4426.Host_Packet_Desc.tiff

  • The information is readily available on the internet.

    The CPPI 4.1 Packet Descriptors are defined in the SPRUFM9H 

    TMS320C674x/OMAP-L1x Processor

    Universal Serial Bus 2.0 (USB2.0) Controller

    User's Guide

    The pertinent information is located in section 2.8

    There are slight differences for the C5515 such as the valid DMA channels referenced.

     

     

  • Danimal,

    Thanks, this was a big help.

    TI:

    Is there any way we can get this information into the C5515 USB document?   

    Regards,

    Bill

     

  • Submitted as an documentation enhancement request.

    Regards.