workspace with shared hid shape for cli
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "shared"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
usbd-hid = { version = "0.10.0" }
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user