[−][src]Struct lpc55_hal::drivers::pwm::Pwm
Implementations
impl<TIMER> Pwm<TIMER> where
TIMER: Ctimer<Enabled>,
[src]
TIMER: Ctimer<Enabled>,
pub fn new(timer: TIMER) -> Self
[src]
pub fn release(self) -> TIMER
[src]
pub fn scale_max_duty_by(&mut self, duty: u32)
[src]
Increase maximum value for the duty cycle.
Trait Implementations
impl<TIMER> Pwm for Pwm<TIMER> where
TIMER: Ctimer<Enabled>,
[src]
TIMER: Ctimer<Enabled>,
type Channel = u8
Enumeration of channels that can be used with this Pwm
interface Read more
type Time = MicroSeconds
A time unit that can be converted into a human time unit (e.g. seconds)
type Duty = u16
Type for the duty
methods Read more
fn enable(&mut self, channel: Self::Channel)
[src]
fn disable(&mut self, channel: Self::Channel)
[src]
fn get_period(&self) -> Self::Time
[src]
fn set_period<P>(&mut self, _period: P) where
P: Into<Self::Time>,
[src]
P: Into<Self::Time>,
fn get_duty(&self, channel: Self::Channel) -> Self::Duty
[src]
fn get_max_duty(&self) -> Self::Duty
[src]
fn set_duty(&mut self, channel: Self::Channel, duty: Self::Duty)
[src]
Auto Trait Implementations
impl<TIMER> Send for Pwm<TIMER> where
TIMER: Send,
TIMER: Send,
impl<TIMER> Sync for Pwm<TIMER> where
TIMER: Sync,
TIMER: Sync,
impl<TIMER> Unpin for Pwm<TIMER> where
TIMER: Unpin,
TIMER: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,