Struct esp32_hal::pac::ledc::lsch_conf1::R
pub struct R(_);
Expand description
Register LSCH%s_CONF1
reader
Implementations§
§impl R
impl R
pub fn duty_scale(&self) -> FieldReaderRaw<u16, u16>
pub fn duty_scale(&self) -> FieldReaderRaw<u16, u16>
Bits 0:9 - This register controls the increase or decrease step scale for low speed channel0.
pub fn duty_cycle(&self) -> FieldReaderRaw<u16, u16>
pub fn duty_cycle(&self) -> FieldReaderRaw<u16, u16>
Bits 10:19 - This register is used to increase or decrease the duty every reg_duty_cycle_lsch0 cycles for low speed channel0.
pub fn duty_num(&self) -> FieldReaderRaw<u16, u16>
pub fn duty_num(&self) -> FieldReaderRaw<u16, u16>
Bits 20:29 - This register is used to control the num of increased or decreased times for low speed channel6.
pub fn duty_inc(&self) -> BitReaderRaw<bool>
pub fn duty_inc(&self) -> BitReaderRaw<bool>
Bit 30 - This register is used to increase the duty of output signal or decrease the duty of output signal for low speed channel6.
pub fn duty_start(&self) -> BitReaderRaw<bool>
pub fn duty_start(&self) -> BitReaderRaw<bool>
Bit 31 - When reg_duty_num_hsch1 reg_duty_cycle_hsch1 and reg_duty_scale_hsch1 has been configured. these register won’t take effect until set reg_duty_start_hsch1. this bit is automatically cleared by hardware.
Methods from Deref<Target = R<LSCH_CONF1_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<LSCH_CONF1_SPEC>> for R
impl From<R<LSCH_CONF1_SPEC>> for R
§fn from(reader: R<LSCH_CONF1_SPEC>) -> R
fn from(reader: R<LSCH_CONF1_SPEC>) -> R
Converts to this type from the input type.