Changeset 563d9d0a in mainline for uspace/lib/usb/include/usb/usb.h
- Timestamp:
- 2011-09-07T10:17:00Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7099861
- Parents:
- 52eead3e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/usb.h
r52eead3e r563d9d0a 36 36 #define LIBUSB_USB_H_ 37 37 38 #include <bool.h> 38 39 #include <sys/types.h> 39 40 #include <byteorder.h> … … 130 131 } usb_target_t; 131 132 133 /** Check USB target for allowed values (address and endpoint). 134 * 135 * @param target. 136 * @return True, if values are wihtin limits, false otherwise. 137 */ 138 static inline bool usb_target_is_valid(usb_target_t target) 139 { 140 return !(target.endpoint > 15 || target.endpoint < 0 141 || target.address >= USB11_ADDRESS_MAX || target.address < 0); 142 } 143 132 144 /** Compare USB targets (addresses and endpoints). 133 145 *
Note:
See TracChangeset
for help on using the changeset viewer.