Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2017-11-20T19:14:31Z (4 years ago)
Author:
Salmelu <salmelu@…>
Branches:
lfn, master
Children:
27b0ea0
Parents:
d3086873
Message:

Isochronous transfers - endpoint initialization

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/include/usb/descriptor.h

    rd3086873 r6b433a8  
    240240         * For bulk endpoints, this field contains the amount of streams
    241241         * supported by the endpoint.
    242          * For isochronous endpoints, this field contains either maximum
    243          * number of packets supported within a service interval, or
    244          * whether an isochronous endpoint companion descriptor follows.
     242         * For isochronous endpoints, this field contains maximum
     243         * number of packets supported within a service interval.
     244         * Warning: the values returned by macros may not make any sense
     245         * for specific endpoint types.
    245246         */
    246247        uint8_t attributes;
    247248#define SS_COMPANION_MAX_STREAMS(attributes) \
    248249        (attributes & 0x1f)
     250#define SS_COMPANION_MULT(attributes) \
     251        (attributes & 0x3)
    249252        /** The total number of bytes this endpoint will transfer
    250253         * every service interval (SI).
Note: See TracChangeset for help on using the changeset viewer.