pub struct Sweep {
pub enabled: bool,
pub channel: PulseChannel,
pub negate: bool,
pub reload: bool,
pub shift: u8,
pub timer: u16,
pub divider: u8,
pub period: u8,
pub target_period: u64,
}Expand description
APU Sweep provides frequency sweeping for the APU pulse channels.
Fields§
§enabled: bool§channel: PulseChannel§negate: bool§reload: bool§shift: u8§timer: u16§divider: u8§period: u8§target_period: u64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Sweep
impl<'de> Deserialize<'de> for Sweep
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
Auto Trait Implementations§
impl Freeze for Sweep
impl RefUnwindSafe for Sweep
impl Send for Sweep
impl Sync for Sweep
impl Unpin for Sweep
impl UnwindSafe for Sweep
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