pub struct AcpLoadStats {
pub worst_case_cycles: i32,
pub budget_cycles: i32,
pub overrun_percent: u32,
pub sample_rate_hz: u32,
pub periods_measured: u32,
}Expand description
Snapshot measuring the last 1 second-ish of ACP load
Fields§
§worst_case_cycles: i32Worst-case ACP cycles the audio ISR took to run in the last window.
budget_cycles: i32ACP cycle budget available per sample at the current sample rate.
overrun_percent: u32Percentage (0-100) of samples in the last window where the ISR was still running when the next sample’s IRQ came due (i.e. dropped).
sample_rate_hz: u32The ACP’s current sample rate in Hz, derived from the rate register.
periods_measured: u32Number of sample periods the last window covers (for context).
Trait Implementations§
Source§impl Clone for AcpLoadStats
impl Clone for AcpLoadStats
impl Copy for AcpLoadStats
Source§impl Debug for AcpLoadStats
impl Debug for AcpLoadStats
Auto Trait Implementations§
impl Freeze for AcpLoadStats
impl RefUnwindSafe for AcpLoadStats
impl Send for AcpLoadStats
impl Sync for AcpLoadStats
impl Unpin for AcpLoadStats
impl UnsafeUnpin for AcpLoadStats
impl UnwindSafe for AcpLoadStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more