pub type R = R<ECRrs>;
Expand description
Register ECR
reader
Aliased Type§
pub struct R { /* private fields */ }
Implementations§
Source§impl R
impl R
Sourcepub fn ie(&self) -> IE_R
pub fn ie(&self) -> IE_R
Bit 0 - Index enable This bit indicates if the Index event resets the counter.
Sourcepub fn idir(&self) -> IDIR_R
pub fn idir(&self) -> IDIR_R
Bits 1:2 - Index direction This bit indicates in which direction the Index event resets the counter. Note: The IDR[1:0] bitfield must be written when IE bit is reset (index disabled).
Sourcepub fn iblk(&self) -> IBLK_R
pub fn iblk(&self) -> IBLK_R
Bits 3:4 - Index blanking This bit indicates if the Index event is conditioned by the tim_ti3 input
Sourcepub fn fidx(&self) -> FIDX_R
pub fn fidx(&self) -> FIDX_R
Bit 5 - First index This bit indicates if the first index only is taken into account
Sourcepub fn ipos(&self) -> IPOS_R
pub fn ipos(&self) -> IPOS_R
Bits 6:7 - Index positioning In quadrature encoder mode (SMS[3:0] = 0001, 0010, 0011, 1110, 1111), this bit indicates in which AB input configuration the Index event resets the counter. In directional clock mode or clock plus direction mode (SMS[3:0] = 1010, 1011, 1100, 1101), these bits indicates on which level the Index event resets the counter. In bidirectional clock mode, this applies for both clock inputs. x0: Index resets the counter when clock is 0 x1: Index resets the counter when clock is 1 Note: IPOS[1] bit is not significant