Changeset f1fae414 in mainline for uspace/lib/usb/src/usb.c
- Timestamp:
- 2011-06-22T01:34:53Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d7e82c1, cac458f
- Parents:
- 72ec8cc (diff), bf172825 (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/src/usb.c
r72ec8cc rf1fae414 58 58 }; 59 59 60 static const char *str_direction[] = { 61 "in", 62 "out", 63 "both" 64 }; 65 60 66 /** String representation for USB transfer type. 61 67 * … … 84 90 } 85 91 92 /** String representation of USB direction. 93 * 94 * @param d The direction. 95 * @return Direction as a string (in English). 96 */ 97 const char *usb_str_direction(usb_direction_t d) 98 { 99 if (d >= ARR_SIZE(str_direction)) { 100 return "invalid"; 101 } 102 return str_direction[d]; 103 } 104 86 105 /** String representation of USB speed. 87 106 *
Note:
See TracChangeset
for help on using the changeset viewer.