Struct mos_hardware::sid::Voice
source · [−]#[repr(C, packed)]pub struct Voice {
pub frequency: WO<u16>,
pub pulse_width: WO<u16>,
pub control: WO<VoiceControlFlags>,
pub attack_decay: WO<u8>,
pub sustain_release: WO<u8>,
}Expand description
Registers for a single SID voice/channel
Fields
frequency: WO<u16>pulse_width: WO<u16>control: WO<VoiceControlFlags>attack_decay: WO<u8>sustain_release: WO<u8>Auto Trait Implementations
impl !RefUnwindSafe for Voice
impl Send for Voice
impl !Sync for Voice
impl Unpin for Voice
impl UnwindSafe for Voice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more