2 releases

0.1.1 Jan 3, 2022
0.1.0 Jul 7, 2021

#551 in Embedded development

Download history 19/week @ 2021-10-06 28/week @ 2021-10-13 33/week @ 2021-10-20 72/week @ 2021-10-27 90/week @ 2021-11-03 232/week @ 2021-11-10 81/week @ 2021-11-17 113/week @ 2021-11-24 107/week @ 2021-12-01 178/week @ 2021-12-08 88/week @ 2021-12-15 35/week @ 2021-12-22 280/week @ 2021-12-29 189/week @ 2022-01-05 360/week @ 2022-01-12 202/week @ 2022-01-19

1,038 downloads per month
Used in 12 crates (2 directly)

MIT/Apache

550KB
17K SLoC

crates.io 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.


lib.rs:

USB peripheral driver for nRF microcontrollers.

Dependencies

~515KB