pub struct LinearCounter {
pub reload: bool,
pub control: bool,
pub counter_reload: u8,
pub counter: u8,
}
Expand description
APU Linear Counter provides duration control for the APU triangle channel.
Fields§
§reload: bool
§control: bool
§counter_reload: u8
§counter: u8
Implementations§
Trait Implementations§
Source§impl Clock for LinearCounter
impl Clock for LinearCounter
Source§impl Clone for LinearCounter
impl Clone for LinearCounter
Source§fn clone(&self) -> LinearCounter
fn clone(&self) -> LinearCounter
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 LinearCounter
impl Debug for LinearCounter
Source§impl Default for LinearCounter
impl Default for LinearCounter
Source§fn default() -> LinearCounter
fn default() -> LinearCounter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinearCounter
impl<'de> Deserialize<'de> for LinearCounter
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Reset for LinearCounter
impl Reset for LinearCounter
Auto Trait Implementations§
impl Freeze for LinearCounter
impl RefUnwindSafe for LinearCounter
impl Send for LinearCounter
impl Sync for LinearCounter
impl Unpin for LinearCounter
impl UnwindSafe for LinearCounter
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