Struct Ccmr
#[repr(transparent)]pub struct Ccmr(pub u32);Expand description
LPTIM capture/compare mode register.
Tuple Fields§
§0: u32Implementations§
§impl Ccmr
impl Ccmr
pub const fn ccsel(&self, n: usize) -> Ccsel
pub const fn ccsel(&self, n: usize) -> Ccsel
Capture/compare x selection. This bitfield defines the direction of the channel input (capture) or output mode.
pub const fn set_ccsel(&mut self, n: usize, val: Ccsel)
pub const fn set_ccsel(&mut self, n: usize, val: Ccsel)
Capture/compare x 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 x enable. Output mode - OCx signal is output on the corresponding pin. Input mode - capture of the counter value into LPTIM_CCRx is enabled.
pub const fn set_cce(&mut self, n: usize, val: bool)
pub const fn set_cce(&mut self, n: usize, val: bool)
Capture/compare x enable. Output mode - OCx signal is output on the corresponding pin. Input mode - capture of the counter value into LPTIM_CCRx is enabled.
pub const fn ccp_input(&self, n: usize) -> CcpInput
pub const fn ccp_input(&self, n: usize) -> CcpInput
Capture/compare x input polarity (CCxP, channel configured as input). Selects the ICx edge(s) used for capture.
pub const fn set_ccp_input(&mut self, n: usize, val: CcpInput)
pub const fn set_ccp_input(&mut self, n: usize, val: CcpInput)
Capture/compare x input polarity (CCxP, channel configured as input). Selects the ICx edge(s) used for capture.
pub const fn ccp_output(&self, n: usize) -> CcpOutput
pub const fn ccp_output(&self, n: usize) -> CcpOutput
Capture/compare x output polarity (CCxP, channel configured as output). Only bit 2 is used, bit 3 is don’t care.
pub const fn set_ccp_output(&mut self, n: usize, val: CcpOutput)
pub const fn set_ccp_output(&mut self, n: usize, val: CcpOutput)
Capture/compare x output polarity (CCxP, channel configured as output). Only bit 2 is used, bit 3 is don’t care.
pub const fn icpsc(&self, n: usize) -> Icpsc
pub const fn icpsc(&self, n: usize) -> Icpsc
Input capture x prescaler. This bitfield defines the ratio of the prescaler acting on the CCx input (ICx).
pub const fn set_icpsc(&mut self, n: usize, val: Icpsc)
pub const fn set_icpsc(&mut self, n: usize, val: Icpsc)
Input capture x prescaler. This bitfield defines the ratio of the prescaler acting on the CCx input (ICx).
pub const fn icf(&self, n: usize) -> Filter
pub const fn icf(&self, n: usize) -> Filter
Input capture x 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 const fn set_icf(&mut self, n: usize, val: Filter)
pub const fn set_icf(&mut self, n: usize, val: Filter)
Input capture x 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.