Changeset 0e41957 in mainline for uspace/lib/usb/devreq.h


Ignore:
Timestamp:
2010-10-10T22:00:27Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d97d209
Parents:
4971812
Message:

More types to USB library

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/devreq.h

    r4971812 r0e41957  
    6464} usb_descriptor_type_t;
    6565
     66/** Device request setup packet.
     67 * The setup packet describes the request.
     68 */
     69typedef struct {
     70        /** Request type.
     71         * The type combines transfer direction, request type and
     72         * intended recipient.
     73         */
     74        uint8_t request_type;
     75        /** Request identification. */
     76        uint8_t request;
     77        /** Main parameter to the request. */
     78        union {
     79                /* FIXME: add #ifdefs according to host endianess */
     80                struct {
     81                        uint8_t value_low;
     82                        uint8_t value_high;
     83                };
     84                uint16_t value;
     85        };
     86        /** Auxilary parameter to the request.
     87         * Typically, it is offset to something.
     88         */
     89        uint16_t index;
     90        /** Length of extra data. */
     91        uint16_t length;
     92} __attribute__ ((packed)) usb_device_request_setup_packet_t;
     93
    6694#endif
    6795/**
Note: See TracChangeset for help on using the changeset viewer.