#[repr(C)]pub struct CH { /* private fields */ }
Expand description
Cluster CH%s, containing GEN?_STMP_CFG, GEN?_TSTMP_A, GEN?_TSTMP_B, GEN?_CFG0, GEN?_FORCE, GEN?_A, GEN?_B, DT?_CFG, DT?_FED_CFG, DT?_RED_CFG, CARRIER?_CFG, FH?_CFG0, FH?_CFG1, FH?_STATUS
Implementations§
Source§impl CH
impl CH
Sourcepub const fn gen_stmp_cfg(&self) -> &GEN_STMP_CFG
pub const fn gen_stmp_cfg(&self) -> &GEN_STMP_CFG
0x00 - Transfer status and update method for time stamp registers A and B
Sourcepub const fn gen_tstmp_a(&self) -> &GEN_TSTMP_A
pub const fn gen_tstmp_a(&self) -> &GEN_TSTMP_A
0x04 - Shadow register for register A.
Sourcepub const fn gen_tstmp_b(&self) -> &GEN_TSTMP_B
pub const fn gen_tstmp_b(&self) -> &GEN_TSTMP_B
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 dt_fed_cfg(&self) -> &DT_FED_CFG
pub const fn dt_fed_cfg(&self) -> &DT_FED_CFG
0x20 - Shadow register for falling edge delay (FED).
Sourcepub const fn dt_red_cfg(&self) -> &DT_RED_CFG
pub const fn dt_red_cfg(&self) -> &DT_RED_CFG
0x24 - Shadow register for rising edge delay (RED).
Sourcepub const fn carrier_cfg(&self) -> &CARRIER_CFG
pub const fn carrier_cfg(&self) -> &CARRIER_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