[−][src]Struct trellis_m4::pwm::Tcc2Pwm
Implementations
impl Tcc2Pwm
[src]
pub fn new<F>(
clock: &Tcc2Tcc3Clock,
freq: F,
tcc: TCC2,
pinout: TCC2Pinout,
mclk: &mut MCLK
) -> Tcc2Pwm where
F: Into<Hertz>,
[src]
clock: &Tcc2Tcc3Clock,
freq: F,
tcc: TCC2,
pinout: TCC2Pinout,
mclk: &mut MCLK
) -> Tcc2Pwm where
F: Into<Hertz>,
Trait Implementations
impl Pwm for Tcc2Pwm
[src]
type Channel = Channel
Enumeration of channels that can be used with this Pwm
interface Read more
type Time = Hertz
A time unit that can be converted into a human time unit (e.g. seconds)
type Duty = u32
Type for the duty
methods Read more
pub fn disable(&mut self, _channel: <Tcc2Pwm as Pwm>::Channel)
[src]
pub fn enable(&mut self, _channel: <Tcc2Pwm as Pwm>::Channel)
[src]
pub fn get_period(&self) -> <Tcc2Pwm as Pwm>::Time
[src]
pub fn get_duty(
&self,
channel: <Tcc2Pwm as Pwm>::Channel
) -> <Tcc2Pwm as Pwm>::Duty
[src]
&self,
channel: <Tcc2Pwm as Pwm>::Channel
) -> <Tcc2Pwm as Pwm>::Duty
pub fn get_max_duty(&self) -> <Tcc2Pwm as Pwm>::Duty
[src]
pub fn set_duty(
&mut self,
channel: <Tcc2Pwm as Pwm>::Channel,
duty: <Tcc2Pwm as Pwm>::Duty
)
[src]
&mut self,
channel: <Tcc2Pwm as Pwm>::Channel,
duty: <Tcc2Pwm as Pwm>::Duty
)
pub fn set_period<P>(&mut self, period: P) where
P: Into<<Tcc2Pwm as Pwm>::Time>,
[src]
P: Into<<Tcc2Pwm as Pwm>::Time>,
Auto Trait Implementations
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,
pub 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
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.
pub 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>,