All Projects → sakumisu → usb_stack

sakumisu / usb_stack

Licence: Apache-2.0 License
Tiny and portable USB device/host stack for embedded system with USB IP

Programming Languages

c
50402 projects - #5 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to usb stack

Teenyusb
Lightweight USB device and host stack for STM32 and other MCUs.
Stars: ✭ 287 (+64%)
Mutual labels:  usb, hid, hub
EspTinyUSB
ESP32S2 native USB library. Implemented few common classes, like MIDI, CDC, HID or DFU (update).
Stars: ✭ 375 (+114.29%)
Mutual labels:  usb, hid
CH552
L1 R1:WCH 24MHz MCS-51 USB MCU (CH552T/CH552P/CH552E/CH552G/CH551G)
Stars: ✭ 32 (-81.71%)
Mutual labels:  usb, usb-device
ES-Timer
A USB timer powered by Digispark ATtiny85 according to 🍅 pomodoro time management technique
Stars: ✭ 45 (-74.29%)
Mutual labels:  usb, hid
Usbdevice
Highly flexible Composite USB Device Library
Stars: ✭ 144 (-17.71%)
Mutual labels:  usb, hid
Authorizer
Authorizer is a Password Manager for Android. It emulates an HID keyboard over USB and enters your credentials on your target device. Additionally it supports OTP 🔑📴
Stars: ✭ 172 (-1.71%)
Mutual labels:  usb, hid
python-hid-parser
Typed pure Python library to parse HID report descriptors
Stars: ✭ 31 (-82.29%)
Mutual labels:  usb, hid
Node Hid
Access USB & Bluetooth HID devices through Node.js
Stars: ✭ 1,064 (+508%)
Mutual labels:  usb, hid
uC-USBH
Efficient USB host stack for embedded systems equipped with a USB host or OTG controller. Includes many class drivers such as MSC, HID, CDC-ACM, and USB2Ser.
Stars: ✭ 44 (-74.86%)
Mutual labels:  hid, usb-host
PIC16F1-USB-DFU-Bootloader
DFU protocol variant of Matt Sarnoff's PIC16F1-USB-Bootloader
Stars: ✭ 39 (-77.71%)
Mutual labels:  usb, dfu
ESP32-USB-Soft-Host
An Arduino wrapper to @sdima1357's usb_soft_host esp-idf example
Stars: ✭ 119 (-32%)
Mutual labels:  usb, hid
Hidguardian
Windows kernel-mode driver for controlling access to various input devices.
Stars: ✭ 138 (-21.14%)
Mutual labels:  usb, hid
Tinyusb
An open source cross-platform USB stack for embedded system
Stars: ✭ 2,257 (+1189.71%)
Mutual labels:  usb, usb-host
Usb2 Power Hub
4-Port High Power USB 2.0 Hub
Stars: ✭ 178 (+1.71%)
Mutual labels:  usb, hub
Android Usb Gadget
Convert your Android phone to any USB device you like! USB Gadget Tool allows you to create and activate USB device roles, like a mouse or a keyboard. 🛠🛡📱
Stars: ✭ 118 (-32.57%)
Mutual labels:  usb, hid
DfuBootloader
STM32 USB device bootloader using DFU class interface
Stars: ✭ 79 (-54.86%)
Mutual labels:  usb, dfu
android-usb-script
An Android app that allows you to script USB gadgets (work-in-progress).
Stars: ✭ 15 (-91.43%)
Mutual labels:  usb, hid
Stream Deck Api
API to interact with the Elgato Stream Deck controller
Stars: ✭ 36 (-79.43%)
Mutual labels:  usb, hid
Uhubctl
uhubctl - USB hub per-port power control
Stars: ✭ 1,036 (+492%)
Mutual labels:  usb, hub
pi400kb
Raw HID keyboard forwarder to turn the Pi 400 into a USB keyboard
Stars: ✭ 182 (+4%)
Mutual labels:  usb, hid

CherryUSB

中文版

CherryUSB is a tiny, beautiful and portable USB host and device stack for embedded system.

CherryUSB Directoy Structure

.
├── class
│   ├── audio
│   ├── cdc
│   ├── dfu
│   ├── hid
│   ├── hub
│   ├── midi
│   ├── msc
│   ├── tmc
│   └── video
├── common
├── core
├── demo
│   ├── bouffalolab
│   └── ch32
│   └── es32
│   └── mm32
│   └── nuvoton
│   └── stm32
├── docs
├── osal
├── packet capture
└── port
    ├── bouffalolab
    │   └── bl702
    ├── ch32
    ├── ehci
    ├── fsdev
    ├── mm32
    ├── musb
    ├── nuvoton
    ├── synopsys
    └── template
Directory Description
class usb class driver
common usb spec macros and utils
core usb core implementation
demo different chips demo
osal os wrapper
docs doc for guiding
packet capture packet capture file
port usb dcd and hcd porting
tools tool used url

CherryUSB Device Stack Overview

CherryUSB Device Stack provides a unified framework of functions for standard device requests, CLASS requests, VENDOR requests and custom special requests. The object-oriented and chained approach allows the user to quickly get started with composite devices without having to worry about the underlying logic. At the same time, a standard dcd porting interface has been standardised for adapting different USB IPs to achieve ip-oriented programming.

CherryUSB Device Stack has the following functions:

  • Support USB2.0 full and high speed
  • Support endpoint irq callback register by users, let users do whatever they wants in endpoint irq callback.
  • Support Composite Device
  • Support Communication Device Class (CDC)
  • Support Human Interface Device (HID)
  • Support Custom human Interface Device (HID)
  • Support Mass Storage Class (MSC)
  • Support USB VIDEO CLASS (UVC1.0、UVC1.5)
  • Support USB AUDIO CLASS (UAC1.0、UAC2.0)
  • Support Device Firmware Upgrade CLASS (DFU)
  • Support USB MIDI CLASS (MIDI)
  • Support Test and Measurement CLASS (TMC)
  • Support Remote NDIS (RNDIS)
  • Support WINUSB1.0、WINUSB2.0(with BOS)
  • Support Vendor class

CherryUSB Device Stack resource usage:

file FLASH (Byte) RAM (Byte)
usbd_core.c 3045 373
usbd_cdc.c 302 20
usbd_msc.c 2452 132
usbd_hid.c 784 201
usbd_audio.c 438 14
usbd_video.c 402 4

CherryUSB Host Stack Overview

The CherryUSB Host Stack has a standard enumeration implementation for devices mounted on roothubs and external hubs, and a standard interface for the different Class to indicate what the Class driver needs to do after enumeration and after disconnection. A standard hcd porting interface has also been standardised for adapting different USB IPs for IP-oriented programming. Finally, the protocol stack is managed using os, and provides osal to make a adaptation to different os.

CherryUSB Host Stack has the following functions:

  • Automatic loading of supported Class drivers
  • Support blocking transfers and asynchronous transfers
  • Support Composite Device
  • Multi-level HUB support, expandable up to 7 levels
  • Support Communication Device Class (CDC)
  • Support Human Interface Device (HID)
  • Support Mass Storage Class (MSC)
  • Support Remote NDIS (RNDIS)
  • Support Vendor class

The CherryUSB Host stack also provides the lsusb function, which allows you to view information about all mounted devices, including those on external hubs, with the help of a shell plugin.

CherryUSB Documentation Tutorial

Quickly start, USB basic concepts, API manual, Class basic concepts and examples, see CherryUSB Documentation Tutorial

CherryUSB Video Tutorial

USB basic concepts and how the CherryUSB Device stack is implemented, see CherryUSB Device Stack Tutorial.

CherryUSB Graphical Config Tool

chryusb_configurator is written in electron + vite2 + ts framework,currently used to automate the generation of descriptor arrays, with additional functionality to be added later.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].