pub struct PulseOutput {
pub channel: usize,
/* private fields */
}
Expand description
Interface to a pulse output channel
Fields§
§channel: usize
Implementations§
Source§impl PulseOutput
impl PulseOutput
pub fn is_on(&self) -> bool
pub fn frequency(&self) -> f64
pub fn duty(&self) -> f64
pub fn period(&self) -> Duration
pub fn pulse_width(&self) -> Duration
pub fn turn_on(&self)
pub fn turn_off(&self)
pub fn set_frequency(&self, desired_hz: f64)
pub fn set_duty(&self, desired_percentage: f64)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PulseOutput
impl RefUnwindSafe for PulseOutput
impl Send for PulseOutput
impl Sync for PulseOutput
impl Unpin for PulseOutput
impl UnwindSafe for PulseOutput
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