pub struct Waveform {
pub period_length_ns: u64,
pub duty_length_ns: u64,
pub duty_offset_ns: u64,
}Expand description
Represents a PWM waveform configuration.
Mirrors struct struct pwm_waveform.
Fields§
§period_length_ns: u64Total duration of one complete PWM cycle, in nanoseconds.
duty_length_ns: u64Duty-cycle active time, in nanoseconds.
For a typical normal polarity configuration (active-high) this is the high time of the signal.
duty_offset_ns: u64Duty-cycle start offset, in nanoseconds.
Delay from the beginning of the period to the first active edge.
In most simple PWM setups this is 0, so the duty cycle starts
immediately at each period’s start.
Trait Implementations§
impl Copy for Waveform
impl Eq for Waveform
impl StructuralPartialEq for Waveform
Auto Trait Implementations§
impl Freeze for Waveform
impl RefUnwindSafe for Waveform
impl Send for Waveform
impl Sync for Waveform
impl Unpin for Waveform
impl UnwindSafe for Waveform
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more