X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=decoders%2Fusb_packet%2F__init__.py;h=5cd7c56b750953d4b691c4d7764611231efabf03;hp=555dc7f90578d16b3cf7fd1e46ab5369c381b8ac;hb=4539e9ca58966ce3c9cad4801b16c315e86ace01;hpb=a015bd4926d95a5cbb25843c02eca967097f4e7e diff --git a/decoders/usb_packet/__init__.py b/decoders/usb_packet/__init__.py index 555dc7f..5cd7c56 100644 --- a/decoders/usb_packet/__init__.py +++ b/decoders/usb_packet/__init__.py @@ -14,12 +14,12 @@ ## GNU General Public License for more details. ## ## You should have received a copy of the GNU General Public License -## along with this program; if not, write to the Free Software -## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +## along with this program; if not, see . ## ''' -USB (low-speed and full-speed) packet protocol decoder. +This decoder stacks on top of the 'usb_signalling' PD and decodes the USB +(low-speed and full-speed) packet protocol. Protocol layer (USB spec, chapter 8): @@ -35,13 +35,9 @@ PID: A PID (packet identifier) follows the SYNC field of every packet. A PID consists of a 4-bit packet type field, and a 4 bit check field. The check field is the one's complement of the packet type field. -Protocol output format: -TODO - Details: https://en.wikipedia.org/wiki/USB http://www.usb.org/developers/docs/ ''' -from .pd import * - +from .pd import Decoder