Changeset f126c87 in mainline for uspace/lib/usb/include/usb/usb.h
- Timestamp:
- 2016-09-01T16:46:27Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2a2fbc8
- Parents:
- 9befb0d (diff), bdfdc51c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/usb.h
r9befb0d rf126c87 114 114 /** Default USB address. */ 115 115 #define USB_ADDRESS_DEFAULT 0 116 116 117 /** Maximum address number in USB 1.1. */ 117 118 #define USB11_ADDRESS_MAX 127 … … 121 122 * 122 123 * @param ep USB address. 124 * 123 125 * @return True, if value is wihtin limits, false otherwise. 126 * 124 127 */ 125 128 static inline bool usb_address_is_valid(usb_address_t a) … … 135 138 /** Default control endpoint */ 136 139 #define USB_ENDPOINT_DEFAULT_CONTROL 0 140 137 141 /** Maximum endpoint number in USB 1.1. */ 138 142 #define USB11_ENDPOINT_MAX 16 … … 141 145 * 142 146 * @param ep USB endpoint number. 147 * 143 148 * @return True, if value is wihtin limits, false otherwise. 149 * 144 150 */ 145 151 static inline bool usb_endpoint_is_valid(usb_endpoint_t ep) … … 160 166 uint32_t packed; 161 167 } usb_target_t; 162 163 168 164 169 /** Check USB target for allowed values (address and endpoint).
Note:
See TracChangeset
for help on using the changeset viewer.