标签:
USB has four different packet types. Token packets indicate the type of transaction to follow, data packets contain the payload, handshake packets are used for acknowledging data or reporting errors and start of frame packets indicate the start of a new frame.
Token Packets must conform to the following format,
Sync | PID | ADDR | ENDP | CRC5 | EOP |
High Speed mode defines another two data PIDs, DATA2 and MDATA.
Data packets have the following format,
Sync | PID | Data | CRC16 | EOP |
Handshake Packets have the following format,
Sync | PID | EOP |
Sync | PID | Frame Number | CRC5 | EOP |
标签:
原文地址:http://www.cnblogs.com/utank/p/4634627.html