pub struct FrameEvents {
pub quarter: bool,
pub half: bool,
pub irq: bool,
}Expand description
Output of one APU tick describing what events the frame counter fired.
Fields§
§quarter: boolClock the channel quarter-frame sub-units (envelopes + linear counter).
half: boolClock the channel half-frame sub-units (length counters + sweeps).
irq: boolFrame IRQ was asserted this cycle (mode 0, not inhibited).
Trait Implementations§
Source§impl Clone for FrameEvents
impl Clone for FrameEvents
Source§fn clone(&self) -> FrameEvents
fn clone(&self) -> FrameEvents
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrameEvents
impl Debug for FrameEvents
Source§impl Default for FrameEvents
impl Default for FrameEvents
Source§fn default() -> FrameEvents
fn default() -> FrameEvents
Returns the “default value” for a type. Read more
impl Copy for FrameEvents
Auto Trait Implementations§
impl Freeze for FrameEvents
impl RefUnwindSafe for FrameEvents
impl Send for FrameEvents
impl Sync for FrameEvents
impl Unpin for FrameEvents
impl UnsafeUnpin for FrameEvents
impl UnwindSafe for FrameEvents
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