Skip to content
This repository has been archived by the owner on Aug 14, 2021. It is now read-only.
/ usb_descriptor Public archive

Python library for generating USB Descriptor byte strings using `struct` only.

License

Notifications You must be signed in to change notification settings

adafruit/usb_descriptor

Repository files navigation

This repo is archived because it is no longer used by CircuitPython. We recommend https://github.com/usb-tools/python-usb-protocol instead.

Introduction

Documentation Status Discord

The adafruit_usb_descriptor library provides Python classes that make it easier to generate a binary USB descriptor. It can be used in place of a series of C macros.

Dependencies

This library has no external dependencies. It only uses Python struct.

Usage Example

A current usage example that generates descriptors for use with [TinyUSB](https://github.com/hathach/tinyusb) can be found here in CircuitPython.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

API Reference

.. toctree::
   :maxdepth: 2

   api

About

Python library for generating USB Descriptor byte strings using `struct` only.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages