Struct gd32f1x0_hal::pwm::PwmChannel
source · [−]pub struct PwmChannel<TIMER, PIN> { /* private fields */ }
Expand description
A single channel of a PWM peripheral.
Trait Implementations
sourceimpl<TIMER, PIN> PwmPin for PwmChannel<TIMER, PIN>
impl<TIMER, PIN> PwmPin for PwmChannel<TIMER, PIN>
sourcefn get_max_duty(&self) -> u16
fn get_max_duty(&self) -> u16
Returns the maximum duty cycle value
Auto Trait Implementations
impl<TIMER, PIN> !RefUnwindSafe for PwmChannel<TIMER, PIN>
impl<TIMER, PIN> !Send for PwmChannel<TIMER, PIN>
impl<TIMER, PIN> !Sync for PwmChannel<TIMER, PIN>
impl<TIMER, PIN> Unpin for PwmChannel<TIMER, PIN> where
PIN: Unpin,
TIMER: Unpin,
impl<TIMER, PIN> !UnwindSafe for PwmChannel<TIMER, PIN>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more