Struct alt_stm32f30x_hal::pwm::PwmBinding
source · [−]pub struct PwmBinding<P: GPIOPin, C: TimerChannel> { /* private fields */ }
Expand description
pwm
Implementations
sourceimpl<P: GPIOPin, C: TimerChannel> PwmBinding<P, C>
impl<P: GPIOPin, C: TimerChannel> PwmBinding<P, C>
sourceimpl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PA0<PT, PM>, Channel<CH1, CM>>
impl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PA0<PT, PM>, Channel<CH1, CM>>
sourcepub fn channel_preload(&mut self, enabled: bool)
pub fn channel_preload(&mut self, enabled: bool)
Modify channel’s preload
sourceimpl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PA1<PT, PM>, Channel<CH2, CM>>
impl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PA1<PT, PM>, Channel<CH2, CM>>
sourcepub fn channel_preload(&mut self, enabled: bool)
pub fn channel_preload(&mut self, enabled: bool)
Modify channel’s preload
sourceimpl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PA2<PT, PM>, Channel<CH3, CM>>
impl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PA2<PT, PM>, Channel<CH3, CM>>
sourcepub fn channel_preload(&mut self, enabled: bool)
pub fn channel_preload(&mut self, enabled: bool)
Modify channel’s preload
sourceimpl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PA3<PT, PM>, Channel<CH4, CM>>
impl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PA3<PT, PM>, Channel<CH4, CM>>
sourcepub fn channel_preload(&mut self, enabled: bool)
pub fn channel_preload(&mut self, enabled: bool)
Modify channel’s preload
sourceimpl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PA6<PT, PM>, Channel<CH1, CM>>
impl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PA6<PT, PM>, Channel<CH1, CM>>
sourcepub fn channel_preload(&mut self, enabled: bool)
pub fn channel_preload(&mut self, enabled: bool)
Modify channel’s preload
sourceimpl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PA7<PT, PM>, Channel<CH2, CM>>
impl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PA7<PT, PM>, Channel<CH2, CM>>
sourcepub fn channel_preload(&mut self, enabled: bool)
pub fn channel_preload(&mut self, enabled: bool)
Modify channel’s preload
sourceimpl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PC6<PT, PM>, Channel<CH1, CM>>
impl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PC6<PT, PM>, Channel<CH1, CM>>
sourcepub fn channel_preload(&mut self, enabled: bool)
pub fn channel_preload(&mut self, enabled: bool)
Modify channel’s preload
sourceimpl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PC7<PT, PM>, Channel<CH2, CM>>
impl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PC7<PT, PM>, Channel<CH2, CM>>
sourcepub fn channel_preload(&mut self, enabled: bool)
pub fn channel_preload(&mut self, enabled: bool)
Modify channel’s preload
sourceimpl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PC8<PT, PM>, Channel<CH3, CM>>
impl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PC8<PT, PM>, Channel<CH3, CM>>
sourcepub fn channel_preload(&mut self, enabled: bool)
pub fn channel_preload(&mut self, enabled: bool)
Modify channel’s preload
sourceimpl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PC9<PT, PM>, Channel<CH4, CM>>
impl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PC9<PT, PM>, Channel<CH4, CM>>
sourcepub fn channel_preload(&mut self, enabled: bool)
pub fn channel_preload(&mut self, enabled: bool)
Modify channel’s preload
sourceimpl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PB0<PT, PM>, Channel<CH3, CM>>
impl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PB0<PT, PM>, Channel<CH3, CM>>
sourcepub fn channel_preload(&mut self, enabled: bool)
pub fn channel_preload(&mut self, enabled: bool)
Modify channel’s preload
sourceimpl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PB1<PT, PM>, Channel<CH4, CM>>
impl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PB1<PT, PM>, Channel<CH4, CM>>
sourcepub fn channel_preload(&mut self, enabled: bool)
pub fn channel_preload(&mut self, enabled: bool)
Modify channel’s preload
sourceimpl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PB6<PT, PM>, Channel<CH1, CM>>
impl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PB6<PT, PM>, Channel<CH1, CM>>
sourcepub fn channel_preload(&mut self, enabled: bool)
pub fn channel_preload(&mut self, enabled: bool)
Modify channel’s preload
sourceimpl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PB7<PT, PM>, Channel<CH2, CM>>
impl<PT: PullType, PM: PinMode, CM: ChMode> PwmBinding<PB7<PT, PM>, Channel<CH2, CM>>
sourcepub fn channel_preload(&mut self, enabled: bool)
pub fn channel_preload(&mut self, enabled: bool)
Modify channel’s preload
Trait Implementations
sourceimpl<P: GPIOPin, C: TimerChannel> PwmPin for PwmBinding<P, C>
impl<P: GPIOPin, C: TimerChannel> PwmPin for PwmBinding<P, C>
sourcefn get_max_duty(&self) -> u32
fn get_max_duty(&self) -> u32
Returns the maximum duty cycle value
Auto Trait Implementations
impl<P, C> RefUnwindSafe for PwmBinding<P, C> where
C: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, C> Send for PwmBinding<P, C> where
C: Send,
P: Send,
impl<P, C> Sync for PwmBinding<P, C> where
C: Sync,
P: Sync,
impl<P, C> Unpin for PwmBinding<P, C> where
C: Unpin,
P: Unpin,
impl<P, C> UnwindSafe for PwmBinding<P, C> where
C: UnwindSafe,
P: UnwindSafe,
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