pub struct Channel<T, PeripheralState, State> { /* private fields */ }Expand description
A CTIMER PWM channel
Trait Implementations§
Source§impl<T> PwmPin for Channel<T, Enabled, Attached>where
T: Trait,
impl<T> PwmPin for Channel<T, Enabled, Attached>where
T: Trait,
Source§fn enable(&mut self)
fn enable(&mut self)
The behaviour of enable is implementation defined and does nothing in
this implementation
Source§fn disable(&mut self)
fn disable(&mut self)
The behaviour of disable is implementation defined and does nothing in
this implementation
Source§fn get_max_duty(&self) -> Self::Duty
fn get_max_duty(&self) -> Self::Duty
Returns the maximum duty cycle value
Source§impl<T> PwmPin for Channel<T, Enabled, Attached>where
T: Trait,
impl<T> PwmPin for Channel<T, Enabled, Attached>where
T: Trait,
Source§fn enable(&mut self) -> Result<(), Self::Error>
fn enable(&mut self) -> Result<(), Self::Error>
The behaviour of enable is implementation defined and does nothing in
this implementation
Source§fn disable(&mut self) -> Result<(), Self::Error>
fn disable(&mut self) -> Result<(), Self::Error>
The behaviour of disable is implementation defined and does nothing in
this implementation
Source§fn get_max_duty(&self) -> Result<Self::Duty, Self::Error>
fn get_max_duty(&self) -> Result<Self::Duty, Self::Error>
Returns the maximum duty cycle value
Source§type Error = Infallible
type Error = Infallible
Enumeration of
PwmPin errorsAuto Trait Implementations§
impl<T, PeripheralState, State> Freeze for Channel<T, PeripheralState, State>
impl<T, PeripheralState, State> !RefUnwindSafe for Channel<T, PeripheralState, State>
impl<T, PeripheralState, State> Send for Channel<T, PeripheralState, State>
impl<T, PeripheralState, State> !Sync for Channel<T, PeripheralState, State>
impl<T, PeripheralState, State> Unpin for Channel<T, PeripheralState, State>
impl<T, PeripheralState, State> !UnwindSafe for Channel<T, PeripheralState, State>
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