Struct esp32s3_hal::pac::pwm0::chopper0_cfg::R
pub struct R(_);
Expand description
Register CHOPPER0_CFG
reader
Implementations
impl R
impl R
pub fn chopper0_en(&self) -> BitReaderRaw<bool>
pub fn chopper0_en(&self) -> BitReaderRaw<bool>
Bit 0 - When set, carrier0 function is enabled. When cleared, carrier0 is bypassed
pub fn chopper0_prescale(&self) -> FieldReaderRaw<u8, u8>
pub fn chopper0_prescale(&self) -> FieldReaderRaw<u8, u8>
Bits 1:4 - PWM carrier0 clock (PC_clk) prescale value. Period of PC_clk = period of PWM_clk * (PWM_CARRIER0_PRESCALE + 1)
pub fn chopper0_duty(&self) -> FieldReaderRaw<u8, u8>
pub fn chopper0_duty(&self) -> FieldReaderRaw<u8, u8>
Bits 5:7 - carrier duty selection. Duty = PWM_CARRIER0_DUTY / 8
pub fn chopper0_oshtwth(&self) -> FieldReaderRaw<u8, u8>
pub fn chopper0_oshtwth(&self) -> FieldReaderRaw<u8, u8>
Bits 8:11 - width of the fist pulse in number of periods of the carrier
pub fn chopper0_out_invert(&self) -> BitReaderRaw<bool>
pub fn chopper0_out_invert(&self) -> BitReaderRaw<bool>
Bit 12 - when set, invert the output of PWM0A and PWM0B for this submodule
pub fn chopper0_in_invert(&self) -> BitReaderRaw<bool>
pub fn chopper0_in_invert(&self) -> BitReaderRaw<bool>
Bit 13 - when set, invert the input of PWM0A and PWM0B for this submodule
Methods from Deref<Target = R<CHOPPER0_CFG_SPEC>>
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations
impl From<R<CHOPPER0_CFG_SPEC>> for R
impl From<R<CHOPPER0_CFG_SPEC>> for R
fn from(reader: R<CHOPPER0_CFG_SPEC>) -> R
fn from(reader: R<CHOPPER0_CFG_SPEC>) -> R
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more