pub type R = R<CARRIER_CFG_SPEC>;Expand description
Register CARRIER_CFG reader
Aliased Type§
struct R { /* private fields */ }Implementations§
source§impl R
impl R
sourcepub fn en(&self) -> EN_R
pub fn en(&self) -> EN_R
Bit 0 - When set, carrier0 function is enabled. When cleared, carrier0 is bypassed
sourcepub fn prescale(&self) -> PRESCALE_R
pub fn prescale(&self) -> PRESCALE_R
Bits 1:4 - PWM carrier0 clock (PC_clk) prescale value. Period of PC_clk = period of PWM_clk * (PWM_CARRIER0_PRESCALE + 1)
sourcepub fn oshtwth(&self) -> OSHTWTH_R
pub fn oshtwth(&self) -> OSHTWTH_R
Bits 8:11 - width of the first pulse in number of periods of the carrier
sourcepub fn out_invert(&self) -> OUT_INVERT_R
pub fn out_invert(&self) -> OUT_INVERT_R
Bit 12 - when set, invert the output of PWM0A and PWM0B for this submodule
sourcepub fn in_invert(&self) -> IN_INVERT_R
pub fn in_invert(&self) -> IN_INVERT_R
Bit 13 - when set, invert the input of PWM0A and PWM0B for this submodule