Rafael Bachmann
31d4516516
Apply Pedantic Clippy Lints
2023-10-15 23:52:44 +02:00
Rafael Bachmann
66e62e9994
Fix clippy
2023-10-15 22:25:35 +02:00
Rafael Bachmann
eeedaf2e76
Constify Config::new
2023-10-15 22:11:30 +02:00
kalkyl
a57d383b1d
embassy-usb: Add MIDI class
2023-10-14 04:20:59 +02:00
Matt Spencer
a402aed3d1
Add async interface for CDC control changes
...
Signed-off-by: Matt Spencer <matthew@thespencers.me.uk>
2023-09-19 15:42:26 +01:00
Dario Nieuwenhuis
5e613d9abb
Sync all fmt.rs files.
2023-08-30 01:37:18 +02:00
Isaikin Roman
17e9a8ebe1
Fix hardcoded buffer length in USB NCM causing broken link on USB 2.0.
2023-08-20 07:42:54 +02:00
Lukas Joeressen
91b10dd799
Fixed the final null terminator for RegMultiSz.
...
The RegMultiSz value should be terminated by an empty UTF-16 string, i.e. 2 null bytes.
2023-08-18 13:09:27 +02:00
Ruben De Smet
4afdce4ec5
Introduce driver::HardwareAddress without smoltcp dependency
2023-07-31 14:21:26 +02:00
Dario Nieuwenhuis
6eac49186d
Release embassy-net v0.1
2023-06-29 19:55:32 +02:00
Dario Nieuwenhuis
f0b17675d8
usb: add missing builder reexports.
...
Fixes #1176
cc #1596
2023-06-29 12:20:51 +02:00
Dario Nieuwenhuis
2d65373f63
Remove unused feature(type_alias_impl_trait)
.
2023-05-14 23:44:53 +02:00
Dirk Stolle
0584312ef0
Fix some typos
2023-05-08 23:25:01 +02:00
James Munns
20aa86d63e
Address review comments
2023-03-27 18:21:11 +02:00
James Munns
a77fdefd7c
Correct copy/paste errors
2023-03-27 15:37:12 +02:00
James Munns
a6cef4baf2
Add logging and interface for debugging buffer usage
2023-03-27 14:19:00 +02:00
Lasse Dalegaard
7b9075130e
embassy_usb: Add split() for cdc_acm
2023-03-04 10:36:10 +01:00
Dario Nieuwenhuis
86487db5d1
usb: use InterfaceNumber in msos.
2023-02-08 00:30:53 +01:00
Dario Nieuwenhuis
3af991ab63
usb: unify ControlHandler+DeviceStateHandler, route all control requests to all handlers.
...
- Allows classes to handle vendor requests.
- Allows classes to use a single handler for multiple interfaces.
- Allows classes to access the other events (previously only `reset` was available).
2023-02-08 00:17:08 +01:00
Dario Nieuwenhuis
1d841cc8ac
usb: make max interface count configurable at compile time.
2023-02-08 00:16:04 +01:00
alexmoon
aa21aebb0b
Lazily encode UTF16 values and add docs
2023-02-07 14:24:35 -05:00
alexmoon
9f9230ae7a
Convert MS OS descriptor builder to a writer API
...
This brings it inline with the other embassy-usb descriptor APIs and allows it to integrate well with the Builder to allow class constructors to add MS OS descriptors.
Also adds a `usb_serial_winusb` example to demonstrate how to use the API.
2023-02-07 14:24:35 -05:00
Matt Ickstadt
b9ecdb72bb
usb: remove msos dead code
2023-02-07 14:24:35 -05:00
Matt Ickstadt
617b0a03b9
usb: fix descriptor set length and DeviceInterfaceGUIDs
2023-02-07 14:24:35 -05:00
Matt Ickstadt
f5ff3c4ac3
usb: add support for MS OS Descriptors
2023-02-07 14:24:35 -05:00
bors[bot]
465e4c8b19
Merge #1151
...
1151: USB: allow setting the interface string for interface alt settings r=Dirbaio a=mattico
This is a breaking change to embassy-usb's API.
Co-authored-by: Matt Ickstadt <matt@beckenterprises.com>
2023-02-01 00:36:22 +00:00
Dario Nieuwenhuis
ca10fe7135
usb: docs
2023-01-31 22:27:19 +01:00
nitroxis
c9e2cd6dd4
usb: allow adding isochronous endpoints
2023-01-27 15:53:13 +01:00
Matt Ickstadt
7ecb05ff77
usb: allow setting the interface string for interface alt settings
2023-01-13 12:10:36 -06:00
chemicstry
ce842fe28c
Refactor embassy-usb address handling to allow reordering of status resoponse
2023-01-11 17:47:12 +01:00
bors[bot]
a6b52bde58
Merge #1130
...
1130: USB serial (CDC-ACM) improvements r=Dirbaio a=timokroeger
* Remove unused call management descriptor
* Set flag for supported capabilities
The rp `usb_serial` example still works with windows hosts.
Co-authored-by: Timo Kröger <timokroeger93@gmail.com>
2023-01-02 22:51:58 +00:00
Dario Nieuwenhuis
771806be79
net/chan: split state runner.
2022-12-27 01:07:58 +01:00
Timo Kröger
4e0d563997
usb cdc-acm: Set flag for supported capabilities
2022-12-26 09:36:04 +01:00
Timo Kröger
97f9f248f4
usb cdc-acm: Remove unused call management descriptor
2022-12-26 09:35:23 +01:00
Dario Nieuwenhuis
007246b160
net: split channel-based driver impl from usb cdc-ncm into a separate crate.
2022-12-26 04:49:08 +01:00
Dario Nieuwenhuis
1f033d509a
net: split driver trait to a separate crate.
2022-12-26 04:49:08 +01:00
Dario Nieuwenhuis
e9219405ca
usb/cdc-ncm: add embassy-net Device implementation.
2022-12-13 16:43:25 +01:00
Gabriel Smith
4d84b5469e
Drive-by documentation link fixes
2022-11-27 16:32:18 -05:00
Dario Nieuwenhuis
f27a47a37b
usb: move classes into the embassy-usb
crate.
2022-09-26 13:00:21 +02:00
Dario Nieuwenhuis
f4f5824972
usb: do not allow converting Directon to/from u8
2022-09-26 12:35:33 +02:00
Dario Nieuwenhuis
7f7c14b7bc
usb: split driver trait to separate crate.
2022-09-26 12:29:27 +02:00
Alex Martens
a45fb2d718
usb: fix compile errors with the log feature
2022-09-24 09:42:06 -07:00
Dario Nieuwenhuis
897b72c872
Update Rust nightly.
...
Removes feature(generic_associated_types)
2022-09-22 16:38:14 +02:00
Dario Nieuwenhuis
598689ef43
futures: move select* and join* to separate modules.
2022-08-29 01:00:22 +02:00
Dario Nieuwenhuis
21072bee48
split embassy-util
into embassy-futures
, embassy-sync
.
2022-08-22 22:18:13 +02:00
Ulf Lilleengen
3e155d2ec3
nRF documentation warning fixes
2022-08-22 16:37:35 +02:00
Dario Nieuwenhuis
a0f1b0ee01
Split embassy crate into embassy-executor, embassy-util.
2022-07-29 23:40:36 +02:00
huntc
8d71a358c8
Build in a new Unpowered state
...
Replaces the sub-state of representing being being available. Power states also now set enable/disable directly too, which simplifies code.
2022-07-08 15:30:15 +10:00
huntc
4a8f117f25
Puts in the machinery to handle power detected/removed
2022-07-07 10:08:57 +10:00
huntc
c46e9b6cfc
Introduces EnabledUsbDevice
...
EnabledUsbDevice is a wrapper around the UsbDevice where their enablement is also subject to external events, such as POWER events for nRF. It is introduced generically to support other platforms should they also require external signalling for enablement.
2022-07-07 10:08:57 +10:00