Struct moa_peripherals_yamaha::sn76489::NoiseGenerator
source · struct NoiseGenerator {
on: bool,
attenuation: f32,
}
Fields§
§on: bool
§attenuation: f32
Implementations§
source§impl NoiseGenerator
impl NoiseGenerator
fn set_attenuation(&mut self, attenuation: u8)
fn set_control(&mut self, _bits: u8)
fn get_sample(&mut self) -> f32
Trait Implementations§
source§impl Clone for NoiseGenerator
impl Clone for NoiseGenerator
source§fn clone(&self) -> NoiseGenerator
fn clone(&self) -> NoiseGenerator
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for NoiseGenerator
impl RefUnwindSafe for NoiseGenerator
impl Send for NoiseGenerator
impl Sync for NoiseGenerator
impl Unpin for NoiseGenerator
impl UnwindSafe for NoiseGenerator
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
source§impl<T, S> IntoAddress<T> for Swhere
T: FromAddress<S>,
impl<T, S> IntoAddress<T> for Swhere
T: FromAddress<S>,
source§fn into_address(self) -> T
fn into_address(self) -> T
Translate the given address into an address of type
T