|
| 1 | +USB Trace Interface |
| 2 | +=================== |
| 3 | + |
| 4 | +The trace interface is identified by ``bInterfaceClass = 0xff`` and ``bInterfaceSubclass = 0x54 ('T')``. |
| 5 | +It may have multiple alternate settings with different ``bInterfaceProtocol`` values to support different trace protocols. |
| 6 | +Host software negotiates protocol by reading the list of supported alternate settings and selecting the preferred one. |
| 7 | + |
| 8 | +Control Requests |
| 9 | +---------------- |
| 10 | + |
| 11 | +Control requests are vendor-specific interface-directed, i.e. with ``bmRequestType = 0x41 or 0xc1`` |
| 12 | +and the lower half of ``wIndex`` containing ``bInterfaceNumber``. |
| 13 | + |
| 14 | +Set Trace Type |
| 15 | +^^^^^^^^^^^^^^ |
| 16 | + |
| 17 | +============= ======== ====== ================ ======= |
| 18 | +bmRequestType bRequest wValue wIndex wLength |
| 19 | +============= ======== ====== ================ ======= |
| 20 | +0x41 0x01 Type bInterfaceNumber 0 |
| 21 | +============= ======== ====== ================ ======= |
| 22 | + |
| 23 | + |
| 24 | +===== ======================= |
| 25 | +Type Description |
| 26 | +===== ======================= |
| 27 | +0x00 Disabled |
| 28 | +0x01 1-bit synchronous |
| 29 | +0x02 2-bit synchronous |
| 30 | +0x03 4-bit synchronous |
| 31 | +0x80 NRZ asynchronous |
| 32 | +0x81 Manchester asynchronous |
| 33 | +===== ======================= |
| 34 | + |
| 35 | +Set Async Baudrate |
| 36 | +^^^^^^^^^^^^^^^^^^ |
| 37 | + |
| 38 | +TBD |
| 39 | + |
| 40 | +Protocols |
| 41 | +--------- |
| 42 | + |
| 43 | +TPIU |
| 44 | +^^^^ |
| 45 | + |
| 46 | +================== ================== ================== |
| 47 | +bInterfaceClass bInterfaceSubclass bInterfaceProtocol |
| 48 | +================== ================== ================== |
| 49 | +0xff 0x54 0x01 |
| 50 | +================== ================== ================== |
| 51 | + |
| 52 | +This protocol uses one endpoint that will send one or more 16-byte TPIU frames per transfer. |
| 53 | +TPIU frames are aligned to USB transfer boundaries. |
| 54 | + |
| 55 | +.. |
| 56 | + TODO: Insert reference to TPIU frame structure in ARM spec. |
| 57 | +
|
| 58 | +.. _usb_itm: |
| 59 | + |
| 60 | +ITM |
| 61 | +^^^ |
| 62 | + |
| 63 | +================== ================== ================== |
| 64 | +bInterfaceClass bInterfaceSubclass bInterfaceProtocol |
| 65 | +================== ================== ================== |
| 66 | +0xff 0x54 TBD |
| 67 | +================== ================== ================== |
| 68 | + |
| 69 | +TBD |
| 70 | + |
| 71 | +.. _usb_etm: |
| 72 | + |
| 73 | +ETM |
| 74 | +^^^ |
| 75 | + |
| 76 | +================== ================== ================== |
| 77 | +bInterfaceClass bInterfaceSubclass bInterfaceProtocol |
| 78 | +================== ================== ================== |
| 79 | +0xff 0x54 TBD |
| 80 | +================== ================== ================== |
| 81 | + |
| 82 | +TBD |
| 83 | + |
| 84 | +ITM + ETM |
| 85 | +^^^^^^^^^ |
| 86 | + |
| 87 | +================== ================== ================== |
| 88 | +bInterfaceClass bInterfaceSubclass bInterfaceProtocol |
| 89 | +================== ================== ================== |
| 90 | +0xff 0x54 TBD |
| 91 | +================== ================== ================== |
| 92 | + |
| 93 | +This protocol provides both an :ref:`usb_itm` and an :ref:`usb_etm` endpoint. |
| 94 | +Refer to the respective sections for details. |
0 commit comments