#[repr(C)]pub struct CH { /* private fields */ }
Expand description
Cluster CH%s, containing CMPR?_CFG, CMPR?_VALUE0, CMPR?_VALUE1, GEN?_CFG0, GEN?_FORCE, GEN?_A, GEN?_B, DB?_CFG, DB?_FED_CFG, DB?_RED_CFG, CHOPPER?_CFG, TZ?_CFG0, TZ?_CFG1, TZ?_STATUS
Implementations§
Source§impl CH
impl CH
Sourcepub const fn cmpr_cfg(&self) -> &CMPR_CFG
pub const fn cmpr_cfg(&self) -> &CMPR_CFG
0x00 - Transfer status and update method for time stamp registers A and B
Sourcepub const fn cmpr_value0(&self) -> &CMPR_VALUE0
pub const fn cmpr_value0(&self) -> &CMPR_VALUE0
0x04 - Shadow register for register A.
Sourcepub const fn cmpr_value1(&self) -> &CMPR_VALUE1
pub const fn cmpr_value1(&self) -> &CMPR_VALUE1
0x08 - Shadow register for register B.
Sourcepub const fn gen_force(&self) -> &GEN_FORCE
pub const fn gen_force(&self) -> &GEN_FORCE
0x10 - Permissives to force PWMxA and PWMxB outputs by software
Sourcepub const fn gen(&self, n: usize) -> &GEN
pub const fn gen(&self, n: usize) -> &GEN
0x14..0x1c - Actions triggered by events on PWMx%s
`n` is the index of register in the array. `n == 0` corresponds to `GENA` register.
Sourcepub fn gen_iter(&self) -> impl Iterator<Item = &GEN>
pub fn gen_iter(&self) -> impl Iterator<Item = &GEN>
Iterator for array of: 0x14..0x1c - Actions triggered by events on PWMx%s
Sourcepub const fn db_fed_cfg(&self) -> &DB_FED_CFG
pub const fn db_fed_cfg(&self) -> &DB_FED_CFG
0x20 - Shadow register for falling edge delay (FED).
Sourcepub const fn db_red_cfg(&self) -> &DB_RED_CFG
pub const fn db_red_cfg(&self) -> &DB_RED_CFG
0x24 - Shadow register for rising edge delay (RED).
Sourcepub const fn chopper_cfg(&self) -> &CHOPPER_CFG
pub const fn chopper_cfg(&self) -> &CHOPPER_CFG
0x28 - Carrier enable and configuratoin
Auto Trait Implementations§
impl !Freeze for CH
impl !RefUnwindSafe for CH
impl Send for CH
impl !Sync for CH
impl Unpin for CH
impl UnwindSafe for CH
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