Changeset 816f5f4 in mainline for uspace/lib/usb/include/usb/usb.h


Ignore:
Timestamp:
2017-10-15T16:55:48Z (7 years ago)
Author:
Michal Staruch <salmelu@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b2f69e
Parents:
2770b66
Message:

Remote USB (async) sending structures

remote_usb_register_endpoint is now sending a whole new structure, instead of 5 numeric arguments pulled out of structure.
This allows future extensibility for the structure as well as a working code to be used for other remote async calls.

File:
1 edited

Legend:

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

    r2770b66 r816f5f4  
    163163
    164164
    165 /** USB complete address type. 
     165/** USB complete address type.
    166166 * Pair address + endpoint is identification of transaction recipient.
    167167 */
     
    173173        uint32_t packed;
    174174} usb_target_t;
     175
     176/** Description of usb endpoint.
     177 */
     178typedef struct {
     179        /** Endpoint number. */
     180        usb_endpoint_t endpoint_no;
     181
     182        /** Endpoint transfer type. */
     183        usb_transfer_type_t transfer_type;
     184
     185        /** Endpoint direction. */
     186        usb_direction_t direction;
     187
     188        /** Maximum packet size for the endpoint. */
     189        size_t max_packet_size;
     190
     191        /** Number of packets per frame/uframe.
     192         * Only valid for HS INT and ISO transfers. All others should set to 1*/
     193        unsigned packets;
     194
     195        struct {
     196                unsigned polling_interval;
     197        } usb2;
     198} usb_endpoint_desc_t;
    175199
    176200/** Check USB target for allowed values (address and endpoint).
Note: See TracChangeset for help on using the changeset viewer.