workspace with shared hid shape for cli

This commit is contained in:
2026-05-18 23:58:23 -07:00
parent 4e3f1f52ca
commit 4c2384fba5
20 changed files with 1302 additions and 58 deletions
+24
View File
@@ -0,0 +1,24 @@
#![no_std]
pub mod hid {
use usbd_hid::descriptor::generator_prelude::*;
#[gen_hid_descriptor(
(collection = APPLICATION, usage_page = VENDOR_DEFINED_START, usage = 0x01, ) = {
average_buffer_fill=input;
frame_count=input;
dac_underflow_count=input;
usb_underflow_count=input;
dac_overflow_count=input;
}
)]
#[repr(C)]
// Note these are all actually u32
pub struct AudioTelemetryReport {
pub average_buffer_fill: i32,
pub frame_count: i32,
pub dac_underflow_count: i32,
pub usb_underflow_count: i32,
pub dac_overflow_count: i32,
}
}