4 releases (2 breaking)

0.3.0 May 23, 2024
0.2.0 Sep 27, 2022
0.1.1 Jan 3, 2022
0.1.0 Jul 7, 2021

#434 in Hardware support

Download history 440/week @ 2024-08-06 526/week @ 2024-08-13 537/week @ 2024-08-20 501/week @ 2024-08-27 558/week @ 2024-09-03 422/week @ 2024-09-10 474/week @ 2024-09-17 490/week @ 2024-09-24 469/week @ 2024-10-01 238/week @ 2024-10-08 615/week @ 2024-10-15 319/week @ 2024-10-22 294/week @ 2024-10-29 254/week @ 2024-11-05 308/week @ 2024-11-12 439/week @ 2024-11-19

1,369 downloads per month
Used in 19 crates (2 directly)

MIT/Apache

550KB
17K SLoC

crates.io Documentation Build Status

nrf-usbd

usb-device implementation for Nordic Semiconductor nRF microcontrollers.

Supported microcontrollers

  • nrf52840
  • nrf52833
  • nrf52820
  • nrf5340, maybe?

Usage

This driver is relatively low-level, and is intended for use through a HAL library. Such HAL library should implement UsbPeripheral for the corresponding USB peripheral object. This trait declares all the peripheral properties that may vary from one device family to the other.

Examples

See the nrf-hal for the reference HAL implementation.

See the example directory for an example on how to use it standalone without a HAL. This is discouraged, the recommended usage is through nrf-hal.

Dependencies

~2.5MB
~37K SLoC