Struct stm32_metapac::timer::Tim2chCmp
pub struct Tim2chCmp { /* private fields */ }
Expand description
2-channel with one complementary output timers
Implementations§
§impl Tim2chCmp
impl Tim2chCmp
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
pub const fn smcr(self) -> Reg<Smcr2chCmp, RW>
pub const fn smcr(self) -> Reg<Smcr2chCmp, RW>
slave mode control register
pub const fn dier(self) -> Reg<Dier2chCmp, RW>
pub const fn dier(self) -> Reg<Dier2chCmp, RW>
DMA/Interrupt enable register
pub const fn ccmr_input(self, n: usize) -> Reg<CcmrInput1ch, RW>
pub const fn ccmr_input(self, n: usize) -> Reg<CcmrInput1ch, RW>
capture/compare mode register 1 (input mode)
pub const fn ccmr_output(self, n: usize) -> Reg<CcmrOutput1ch, RW>
pub const fn ccmr_output(self, n: usize) -> Reg<CcmrOutput1ch, RW>
capture/compare mode register 1 (output mode)
pub const fn ccer(self) -> Reg<Ccer2chCmp, RW>
pub const fn ccer(self) -> Reg<Ccer2chCmp, RW>
capture/compare enable register
pub const fn arr_dither(self) -> Reg<ArrDitherCore, RW>
pub const fn arr_dither(self) -> Reg<ArrDitherCore, RW>
auto-reload register (Dither mode enabled)
pub const fn ccr_dither(self, n: usize) -> Reg<CcrDither1ch, RW>
pub const fn ccr_dither(self, n: usize) -> Reg<CcrDither1ch, RW>
capture/compare register x (x=1-2) (Dither mode enabled)
pub const fn bdtr(self) -> Reg<Bdtr1chCmp, RW>
pub const fn bdtr(self) -> Reg<Bdtr1chCmp, RW>
break and dead-time register
pub const fn dtr2(self) -> Reg<Dtr21chCmp, RW>
pub const fn dtr2(self) -> Reg<Dtr21chCmp, RW>
break and dead-time register
Trait Implementations§
impl Copy for Tim2chCmp
impl Eq for Tim2chCmp
impl Send for Tim2chCmp
impl StructuralPartialEq for Tim2chCmp
impl Sync for Tim2chCmp
Auto Trait Implementations§
impl Freeze for Tim2chCmp
impl RefUnwindSafe for Tim2chCmp
impl Unpin for Tim2chCmp
impl UnwindSafe for Tim2chCmp
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)