Re: [PATCH RFC 0/2] rust: usb: abstractions towards the port of usbsevseg.c to Rust
From: Alrexandru Radovici
Date: Fri Jul 31 2026 - 22:26:50 EST
On Sat Aug 1, 2026 at 2:59 AM EEST, Alexandru Radovici wrote:
Fixed some mistakes, will include them in v2:
- use `Duration` instead of `i32` for control functions timeout
- fix control function 0 value timeout from "for ever" to `USB_MAX_SYNCHRONOUS_TIMEOUT`
- add `#[inline]` to short functions
- use `u16::from_le` to read `wMaxPacketSize`
- rename `Generic` generic type to `Dir`
- impl `max_nak_rate` for `HostEndpoint<Bidirectional, Control>`
- make data `&mut [u8]` for `receive_control_message`
Alexandru