Struct stm32_metapac::lptim::regs::Ccmr
#[repr(transparent)]pub struct Ccmr(pub u32);
Expand description
LPTIM capture/compare mode register 1.
Tuple Fields§
§0: u32
Implementations§
§impl Ccmr
impl Ccmr
pub const fn ccsel(&self, n: usize) -> Ccsel
pub const fn ccsel(&self, n: usize) -> Ccsel
Capture/compare 1 selection This bitfield defines the direction of the channel input (capture) or output mode.
pub fn set_ccsel(&mut self, n: usize, val: Ccsel)
pub fn set_ccsel(&mut self, n: usize, val: Ccsel)
Capture/compare 1 selection This bitfield defines the direction of the channel input (capture) or output mode.
pub const fn cce(&self, n: usize) -> bool
pub const fn cce(&self, n: usize) -> bool
Capture/compare 1 output enable. This bit determines if a capture of the counter value can actually be done into the input capture/compare register 1 (LPTIM_CCR1) or not.
pub fn set_cce(&mut self, n: usize, val: bool)
pub fn set_cce(&mut self, n: usize, val: bool)
Capture/compare 1 output enable. This bit determines if a capture of the counter value can actually be done into the input capture/compare register 1 (LPTIM_CCR1) or not.
pub const fn ccp_input(&self, n: usize) -> CcpInput
pub const fn ccp_input(&self, n: usize) -> CcpInput
Capture/compare 1 output polarity. Only bit2 is used to set polarity when output mode is enabled, bit3 is don’t care. This field is used to select the IC1 polarity for capture operations.
pub fn set_ccp_input(&mut self, n: usize, val: CcpInput)
pub fn set_ccp_input(&mut self, n: usize, val: CcpInput)
Capture/compare 1 output polarity. Only bit2 is used to set polarity when output mode is enabled, bit3 is don’t care. This field is used to select the IC1 polarity for capture operations.
pub const fn ccp_output(&self, n: usize) -> CcpOutput
pub const fn ccp_output(&self, n: usize) -> CcpOutput
Capture/compare 1 output polarity. Only bit2 is used to set polarity when output mode is enabled, bit3 is don’t care. This field is used to select the IC1 polarity for capture operations.
pub fn set_ccp_output(&mut self, n: usize, val: CcpOutput)
pub fn set_ccp_output(&mut self, n: usize, val: CcpOutput)
Capture/compare 1 output polarity. Only bit2 is used to set polarity when output mode is enabled, bit3 is don’t care. This field is used to select the IC1 polarity for capture operations.
pub const fn icpsc(&self, n: usize) -> Filter
pub const fn icpsc(&self, n: usize) -> Filter
Input capture 1 prescaler This bitfield defines the ratio of the prescaler acting on the CC1 input (IC1).
pub fn set_icpsc(&mut self, n: usize, val: Filter)
pub fn set_icpsc(&mut self, n: usize, val: Filter)
Input capture 1 prescaler This bitfield defines the ratio of the prescaler acting on the CC1 input (IC1).
pub const fn icf(&self, n: usize) -> Filter
pub const fn icf(&self, n: usize) -> Filter
Input capture 1 filter This bitfield defines the number of consecutive equal samples that should be detected when a level change occurs on an external input capture signal before it is considered as a valid level transition. An internal clock source must be present to use this feature.
pub fn set_icf(&mut self, n: usize, val: Filter)
pub fn set_icf(&mut self, n: usize, val: Filter)
Input capture 1 filter This bitfield defines the number of consecutive equal samples that should be detected when a level change occurs on an external input capture signal before it is considered as a valid level transition. An internal clock source must be present to use this feature.
Trait Implementations§
impl Copy for Ccmr
impl Eq for Ccmr
impl StructuralPartialEq for Ccmr
Auto Trait Implementations§
impl Freeze for Ccmr
impl RefUnwindSafe for Ccmr
impl Send for Ccmr
impl Sync for Ccmr
impl Unpin for Ccmr
impl UnwindSafe for Ccmr
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
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)
clone_to_uninit
)