pub struct Pwm { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Pwm for Pwm
impl Pwm for Pwm
source§fn start(
&self,
pin: &<Pwm as Pwm>::Pin,
frequency: usize,
duty_cycle: usize,
) -> Result<(), ErrorCode>
fn start( &self, pin: &<Pwm as Pwm>::Pin, frequency: usize, duty_cycle: usize, ) -> Result<(), ErrorCode>
Generate a PWM signal on the given pin at the given frequency and duty
cycle. 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.
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
Auto Trait Implementations§
impl Freeze for Pwm
impl !RefUnwindSafe for Pwm
impl !Send for Pwm
impl !Sync for Pwm
impl Unpin for Pwm
impl !UnwindSafe for Pwm
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