Giter Club home page Giter Club logo

usbdescriptorkitchen's Introduction

# DEPRECATED

This repository was archived in favor of https://usb-descryptor.github.io


== ABOUT

USBDescriptorKitchen is a GUI-driven tool that helps developers of USB
firmwares to ease the pain of calculating lengths of descriptors,
fiddling with bits, dealing with variable length fields etc.

It is written in wxPython and works well on Linux and Mac OS X.


== HOW TO USE

Run the program with "python MainWindow.py". It will show a simple GUI with
a tree of available descriptors on the left side and a detailed view of the
selected descriptor in the right side.

To add a descriptor, right-click on the descriptor in the left-hand tree view
which should be the parent of the new descriptor. The menu will only offer you
valid descriptor types which are allowed to be children of the selected parent.
The second option in this context menu is to remove a descriptor.

Lines in the detail view have different colors to distinguish different types
of descriptor elements:

  BLACK - constant values and automatically calculated fields.
          Non-editable.
  BLUE  - links and enumerated fields. Left-click on the "Value" column
          to get a menu of possible values for enumerations or links to
          other entities, respectively.
  RED   - variable content. Left-click on the "Value" column to open a
          text editor field.

There are also two types of array elements. The first one are arrays which
have their length denoted in one descriptor field. To vary the number of
array members, modify this field.

The other array type implicitly counts the number of its array members
with the all-over descriptor lengths. For this type, right-click on one
member to add or remove an element from the list.

On some "variable" elements, a right click will offer a context menu for
suggested values. As an example, the address field of an endpoint
descriptor can be chosen from a list of addresses which are not yet taken
by other endpoints in the same configuration.

You can save the descriptor set to a file or dump it to stdout at any time.

The only output format currently supported is as plain C header file, and the
tool is also able to read back the file and reconstruct the descriptors from
the C structs. The important detail here is that indentation is taken into
account, so be sure to keep it in order when editing manually.


== DESCRIPTOR TEMPLATES

There are some descriptor templates available, and they suffice to build
USB audio devices. But there are certainly many missing. Have a look at
Templates/ to see how to create new ones.


== CHECKS

A framework for sanity checks exists which should grow every time a common
problem with descriptor sets is found that can be avoided in the future.
However, there is only one check at the moment for the time being, and it
mostly acts as prove of concept and as explanations of how to write more
complex checks.


== BUGS

Eventually, the read-back of descriptor sets should not rely on the indentation
but do a full content parse, just like any USB stack also does.

There are possibly some bugs left, and definitely the list of supported
descriptors is incomplete. Feedback helping to improve things is always
welcome, preferrably in the form of proper git patches.

There is currently no mailing list to discuss issues around this tool.
In case of any collaborative work you want to share, contact the author
of this tool directly:

	usb (at) zonque (dot) org

usbdescriptorkitchen's People

Contributors

fjes avatar zonque avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.