Struct esp32_hal::pac::pwm0::carrier2_cfg::R
pub struct R(_);
Expand description
Register CARRIER2_CFG
reader
Implementations§
§impl R
impl R
pub fn carrier2_en(&self) -> BitReaderRaw<bool>
pub fn carrier2_en(&self) -> BitReaderRaw<bool>
Bit 0
pub fn carrier2_prescale(&self) -> FieldReaderRaw<u8, u8>
pub fn carrier2_prescale(&self) -> FieldReaderRaw<u8, u8>
Bits 1:4
pub fn carrier2_duty(&self) -> FieldReaderRaw<u8, u8>
pub fn carrier2_duty(&self) -> FieldReaderRaw<u8, u8>
Bits 5:7
pub fn carrier2_oshtwth(&self) -> FieldReaderRaw<u8, u8>
pub fn carrier2_oshtwth(&self) -> FieldReaderRaw<u8, u8>
Bits 8:11
pub fn carrier2_out_invert(&self) -> BitReaderRaw<bool>
pub fn carrier2_out_invert(&self) -> BitReaderRaw<bool>
Bit 12
pub fn carrier2_in_invert(&self) -> BitReaderRaw<bool>
pub fn carrier2_in_invert(&self) -> BitReaderRaw<bool>
Bit 13
Methods from Deref<Target = R<CARRIER2_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<CARRIER2_CFG_SPEC>> for R
impl From<R<CARRIER2_CFG_SPEC>> for R
§fn from(reader: R<CARRIER2_CFG_SPEC>) -> R
fn from(reader: R<CARRIER2_CFG_SPEC>) -> R
Converts to this type from the input type.