Skip to content

Releases: rust-embedded-community/usb-device

v0.3.2

06 Mar 09:08
6a44a84
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.1...v0.3.2

Release 0.3.1

15 Nov 09:50
7d2b12a
Compare
Choose a tag to compare

[0.3.1] - 2023-11-15

Added

  • BuilderError, LangID, StringDescriptors now in prelude
  • LangID now in class_prelude

Changed

  • Updated documentation, including example code

Release 0.3.0

13 Nov 14:02
6021f1c
Compare
Choose a tag to compare

[0.3.0] - 2023-11-13

Fixed

  • Fixed a defect where enumeration may fail due to timing-related issues (#128)

Added

  • New enums and allocators for Isochronous endpoints (#60).
  • Ability to select USB revision (#116).
  • Added support for alternate settings on interfaces (#114).
  • Added support for architectures without atomics (#115).
  • Added support for multi-language STRING desc (#122).
    • UsbDeviceBuilder has a public .extra_lang_ids() method to specify LANGIDs besides ENGLISH_US(0x0409)

Breaking

  • Acess numeric form of EndpointType variants now require a .to_bm_attributes(). (#60)
  • DescriptorWriter::iad() now requires a Option<StringIndex> to optionally specify a string for describing the function (#121)
  • .manufacturer(), .product() and .serial_number() of UsbDeviceBuilder are now replaced with the strings() function that accepts a StringDescriptor list to allow multilanguage support (#122)
  • Various methods of the UsbDeviceBuilder now return Result<> types instead of internally panicking.

Changed

  • EndpointType enum now has fields for isochronous synchronization and usage (#60).
  • descriptor_type::STRING of fn get_descriptor() will send the LANGIDs supported by device, and respond STRING Request with specified LANGID. (#122)
  • UsbError is now copyable and comparable (#127)

Release 0.2.9

02 Aug 19:37
Compare
Choose a tag to compare

Fixed

  • Fixed an issue where USB devices were not enumerating on Windows (#32)
  • Add optional support for defmt (#76)
  • Fixed Suspend state transition so it goes back to the previous state, not just Default (#97)