Changeset 9efad54 in mainline for uspace/lib/usbdev/include/usb/dev/pipes.h
- Timestamp:
- 2018-01-06T21:15:48Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 56257ba
- Parents:
- c901632
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/include/usb/dev/pipes.h
rc901632 r9efad54 37 37 #include <usb/usb.h> 38 38 #include <usb/descriptor.h> 39 #include <usb _iface.h>39 #include <usbhc_iface.h> 40 40 41 41 #include <stdbool.h> … … 44 44 45 45 #define CTRL_PIPE_MIN_PACKET_SIZE 8 46 46 47 /** Abstraction of a logical connection to USB device endpoint. 47 * It encapsulates endpoint attributes (transfer type etc.).48 * It contains some vital information about the pipe. 48 49 * This endpoint must be bound with existing usb_device_connection_t 49 50 * (i.e. the wire to send data over). 50 51 */ 51 52 typedef struct { 52 /** Endpoint description */ 53 usb_endpoint_desc_t desc; 53 /** Pipe description received from HC */ 54 usb_pipe_desc_t desc; 55 54 56 /** Whether to automatically reset halt on the endpoint. 55 57 * Valid only for control endpoint zero. … … 100 102 } usb_endpoint_mapping_t; 101 103 102 int usb_pipe_initialize(usb_pipe_t *, usb_dev_session_t *, const usb_endpoint_desc_t *);104 int usb_pipe_initialize(usb_pipe_t *, usb_dev_session_t *, usb_transfer_type_t); 103 105 int usb_pipe_initialize_default_control(usb_pipe_t *, usb_dev_session_t *); 104 106 … … 106 108 size_t, const uint8_t *, size_t, usb_dev_session_t *); 107 109 108 int usb_pipe_register(usb_pipe_t * );110 int usb_pipe_register(usb_pipe_t *, const usb_standard_endpoint_descriptor_t *, const usb_superspeed_endpoint_companion_descriptor_t *); 109 111 int usb_pipe_unregister(usb_pipe_t *); 110 112
Note:
See TracChangeset
for help on using the changeset viewer.