Crates.io | tinyusb-sys |
lib.rs | tinyusb-sys |
version | 0.1.1 |
source | src |
created_at | 2022-02-22 08:43:24.43936 |
updated_at | 2022-02-22 10:06:11.79592 |
description | Bindings to the tinyusb library |
homepage | https://github.com/nviennot/tinyusb-sys-rs |
repository | https://github.com/nviennot/tinyusb-sys-rs |
max_upload_size | |
id | 537167 |
size | 9,401,369 |
TinyUSB is an open-source cross-platform USB Host/Device stack for embedded system, designed to be memory-safe with no dynamic allocation and thread-safe with all interrupt events are deferred then handled in the non-ISR task function.
This crate provides Rust bindings for the library.
Declare the dependency as such, for example to operate as a mass storage device on an MCU from the STM32F1 family:
[dependencies]
tinyusb-sys = { version = "0.1", features = ["device", "msc", "stm32f1"] }
To use the crate, you must pick some features. You must pick one mode (host or device), at least one USB device class, and an MCU family.
Code examples will come soon.
host
device
msc
cdc
vendor
hub
hid
midi
bth
video
ecm_rndis
dfu
midi
ncm
dfu_runtime
hid
vendor
usbtmc
audio
msc
cdc
lpc11uxx
NXP LPC11Uxxlpc13xx
NXP LPC13xxlpc15xx
NXP LPC15xxlpc175x_6x
NXP LPC175x, LPC176xlpc177x_8x
NXP LPC177x, LPC178xlpc18xx
NXP LPC18xxlpc40xx
NXP LPC40xxlpc43xx
NXP LPC43xxlpc51uxx
NXP LPC51U6xlpc54xxx
NXP LPC54xxxlpc55xx
NXP LPC55xxnrf5x
Nordic nRF5x seriessamd21
MicroChip SAMD21samd51
MicroChip SAMD51samg
MicroChip SAMDG seriessame5x
MicroChip SAM E5xsamd11
MicroChip SAMD11saml22
MicroChip SAML22saml21
MicroChip SAML21samx7x
MicroChip SAME70, S70, V70, V71 familystm32f0
ST F0stm32f1
ST F1stm32f2
ST F2stm32f3
ST F3stm32f4
ST F4stm32f7
ST F7stm32h7
ST H7stm32l1
ST L1stm32l0
ST L0stm32l4
ST L4stm32g0
ST G0stm32g4
ST G4cxd56
SONY CXD56msp430x5xx
TI MSP430x5xxmsp432e4
TI MSP432E4xxtm4c123
TI Tiva-C 123xtm4c129
TI Tiva-C 129xvalentyusb_eptri
Fomu eptri configmimxrt10xx
NXP iMX RT10xxnuc121
nuc126
nuc120
nuc505
esp32s2
Espressif ESP32-S2esp32s3
Espressif ESP32-S3da1469x
Dialog Semiconductor DA1469xrp2040
Raspberry Pi RP2040mkl25zxx
NXP MKL25Zxxk32l2bxx
NXP K32L2Bxxefm32gg
Silabs EFM32GGrx63x
Renesas RX63N/631rx65x
Renesas RX65N/RX651rx72n
Renesas RX72Nmm32f327x
Mind Motion MM32F327gd32vf103
GigaDevice GD32VF103bcm2711
Broadcom BCM2711bcm2835
Broadcom BCM2835bcm2837
Broadcom BCM2837xmc4000
Infineon XMC4000pic32mz
MicroChip PIC32MZ familyft90x
BridgeTek FT90xft93x
BridgeTek FT93xf1c100s
Allwinner F1C100s family