pub struct PulseConfig {
pub port: DigitalPort,
pub lines: Vec<u8>,
pub pulse_width_s: f32,
pub pulse_pause_s: f32,
pub num_pulses: i32,
pub wait_until_finished: bool,
}Expand description
Pulse generator configuration.
Fields§
§port: DigitalPortPort selection
lines: Vec<u8>Digital lines to pulse (1-8)
pulse_width_s: f32Pulse width in seconds
pulse_pause_s: f32Pulse pause in seconds
num_pulses: i32Number of pulses (1-32767)
wait_until_finished: boolWait until all pulses are generated before returning
Trait Implementations§
Source§impl Clone for PulseConfig
impl Clone for PulseConfig
Source§fn clone(&self) -> PulseConfig
fn clone(&self) -> PulseConfig
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 PulseConfig
impl Debug for PulseConfig
Auto Trait Implementations§
impl Freeze for PulseConfig
impl RefUnwindSafe for PulseConfig
impl Send for PulseConfig
impl Sync for PulseConfig
impl Unpin for PulseConfig
impl UnwindSafe for PulseConfig
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