Changeset 17873ac7 in mainline for uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h
- Timestamp:
- 2017-10-31T19:06:57Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 479e32d
- Parents:
- a312d8f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h
ra312d8f r17873ac7 40 40 #include <usb/request.h> 41 41 42 #include <atomic.h> 42 43 #include <stddef.h> 44 #include <errno.h> 43 45 #include <stdint.h> 44 46 #include <usbhc_iface.h> … … 86 88 /** Size of memory pointed to by buffer member */ 87 89 size_t buffer_size; 88 89 90 /** Actually used portion of the buffer */ 90 91 size_t transfered_size; 92 91 93 /** Indicates success/failure of the communication */ 92 94 int error; … … 106 108 (batch).buffer_size, (batch).ep->max_packet_size 107 109 110 /** Wrapper for bus operation. */ 111 usb_transfer_batch_t *usb_transfer_batch_create(endpoint_t *); 112 113 /** Batch initializer. */ 108 114 void usb_transfer_batch_init(usb_transfer_batch_t *, endpoint_t *); 115 116 /** Call after status is known, but before releasing endpoint */ 117 int usb_transfer_batch_reset_toggle(usb_transfer_batch_t *); 118 119 /** Batch finalization. */ 120 void usb_transfer_batch_abort(usb_transfer_batch_t *); 109 121 void usb_transfer_batch_finish(usb_transfer_batch_t *); 110 122 111 usb_transfer_batch_t *usb_transfer_batch_create(endpoint_t *); 123 /** To be called from outside only when the transfer is not going to be finished 124 * (i.o.w. until successfuly scheduling) 125 */ 112 126 void usb_transfer_batch_destroy(usb_transfer_batch_t *); 113 127
Note:
See TracChangeset
for help on using the changeset viewer.