#[repr(u8)]pub enum WaveGeneration {
Disabled = 0,
Noise = 1,
Triangle = 2,
Sawtooth = 3,
}
Expand description
Select a waveform generation. Sets CR, WAVE1 and WAVE2 for Channel 1 and Channel 2 repectively. See G4 RM, section 22.7.1 noise/triangle wave generation enable
Variants§
Disabled = 0
No wave generation
Noise = 1
Noise wave generation mode
Triangle = 2
Triange wave generation mode
Sawtooth = 3
Sawtooth wave generation mode
Trait Implementations§
Source§impl Clone for WaveGeneration
impl Clone for WaveGeneration
Source§fn clone(&self) -> WaveGeneration
fn clone(&self) -> WaveGeneration
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 moreimpl Copy for WaveGeneration
Auto Trait Implementations§
impl Freeze for WaveGeneration
impl RefUnwindSafe for WaveGeneration
impl Send for WaveGeneration
impl Sync for WaveGeneration
impl Unpin for WaveGeneration
impl UnwindSafe for WaveGeneration
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