Registry / other / stm32-usbd

stm32-usbd

JSON →
library0.8.0rscratesunverified

'usb-device' implementation for STM32 microcontrollers, enabling USB device functionality.

# Cargo.toml [dependencies] stm32-usbd = "0.8.0"
INSTALL
IMPORT
SIG · STM32-USBD
S
stm32-usbd
otherrustv0.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

UsbBus
use stm32_usbd::UsbBus;

Sets up a USB device on STM32.

use stm32_usbd::UsbBus; use usb_device::prelude::*; fn main() { let usb_bus = UsbBus::new(); let mut usb_dev = UsbDeviceBuilder::new(&usb_bus, UsbVidPid(0x16c0, 0x27dd)) .build(); loop { usb_dev.poll(&mut []); } }
Debug
Known issues
gotchaOnly works on STM32 microcontrollers with USB peripheral.
fix
Ensure target is an STM32 MCU with USB support.
affects: >=0.8.0
Upgrade
Version history
0.8.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
stm32-usbd — cargo add stm32-usbd · libregistry