Changeset 4e732f1a in mainline for uspace/lib/usb/include/usb/descriptor.h
- Timestamp:
- 2014-01-24T02:10:16Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 42de21a
- Parents:
- 3de7a62
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/descriptor.h
r3de7a62 r4e732f1a 197 197 */ 198 198 uint8_t attributes; 199 /** Maximum packet size. */ 199 /** Maximum packet size. 200 * Lower 10 bits represent the actuall size 201 * Bits 11,12 specify addtional transfer opportunitities for 202 * HS INT and ISO transfers. */ 200 203 uint16_t max_packet_size; 204 #define ED_MPS_PACKET_SIZE_MASK 0x3ff 205 #define ED_MPS_PACKET_SIZE_GET(value) \ 206 ((value) & ED_MPS_PACKET_SIZE_MASK) 207 #define ED_MPS_TRANS_OPPORTUNITIES_GET(value) \ 208 ((((value) >> 10) & 0x3) + 1) 201 209 /** Polling interval in milliseconds. 202 210 * Ignored for bulk and control endpoints.
Note:
See TracChangeset
for help on using the changeset viewer.