Changeset 84eb7432 in mainline
- Timestamp:
- 2011-06-18T17:04:14Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c4fb5ecd
- Parents:
- 58c0917
- Location:
- uspace/lib/usb
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/usb.h
r58c0917 r84eb7432 69 69 USB_DIRECTION_BOTH 70 70 } usb_direction_t; 71 72 const char *usb_str_direction(usb_direction_t); 71 73 72 74 /** USB speeds. */ -
uspace/lib/usb/src/usb.c
r58c0917 r84eb7432 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.