Struct stm32l0xx_hal::pwm::Timer
source · [−]pub struct Timer<I> {
pub channel1: Pwm<I, C1, Unassigned>,
pub channel2: Pwm<I, C2, Unassigned>,
pub channel3: Pwm<I, C3, Unassigned>,
pub channel4: Pwm<I, C4, Unassigned>,
/* private fields */
}
Fields
channel1: Pwm<I, C1, Unassigned>
channel2: Pwm<I, C2, Unassigned>
channel3: Pwm<I, C3, Unassigned>
channel4: Pwm<I, C4, Unassigned>
Implementations
sourceimpl<I> Timer<I> where
I: Instance,
impl<I> Timer<I> where
I: Instance,
sourcepub fn new(timer: I, frequency: impl Into<Hertz>, rcc: &mut Rcc) -> Self
pub fn new(timer: I, frequency: impl Into<Hertz>, rcc: &mut Rcc) -> Self
Create new timer instance that is automatically started with given frequency
Auto Trait Implementations
impl<I> RefUnwindSafe for Timer<I> where
I: RefUnwindSafe,
impl<I> Send for Timer<I> where
I: Send,
impl<I> Sync for Timer<I> where
I: Sync,
impl<I> Unpin for Timer<I> where
I: Unpin,
impl<I> UnwindSafe for Timer<I> where
I: 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