pub struct PioPwm<'a> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl Pwm for PioPwm<'_>
impl Pwm for PioPwm<'_>
Source§fn start(
&self,
pin: &Self::Pin,
frequency_hz: usize,
duty_cycle_percentage: usize,
) -> Result<(), ErrorCode>
fn start( &self, pin: &Self::Pin, frequency_hz: usize, duty_cycle_percentage: usize, ) -> Result<(), ErrorCode>
Generate a PWM signal on the given pin at the given frequency and duty
cycle. Read more
Source§fn get_maximum_duty_cycle(&self) -> usize
fn get_maximum_duty_cycle(&self) -> usize
Return an opaque number that represents a 100% duty cycle. This value
will be hardware specific, and essentially represents the precision
of the underlying PWM hardware. Read more
Source§fn get_maximum_frequency_hz(&self) -> usize
fn get_maximum_frequency_hz(&self) -> usize
Return the maximum PWM frequency supported by the PWM implementation.
The frequency will be specified in Hertz.
Auto Trait Implementations§
impl<'a> !Freeze for PioPwm<'a>
impl<'a> !RefUnwindSafe for PioPwm<'a>
impl<'a> !Send for PioPwm<'a>
impl<'a> !Sync for PioPwm<'a>
impl<'a> Unpin for PioPwm<'a>
impl<'a> !UnwindSafe for PioPwm<'a>
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