[−][src]Type Definition esp32::ledc::ledc_lsch2_duty_reg::R
type R = R<u32, LEDC_LSCH2_DUTY_REG>;
Reader of register LEDC_LSCH2_DUTY_REG
Methods
impl R
[src]
pub fn ledc_duty_lsch2(&self) -> LEDC_DUTY_LSCH2_R
[src]
Bits 0:24 - The register is used to control output duty. When lstimerx(x=[0 3]) choosed by low speed channel2 has reached reg_lpoint_lsch2 the output signal changes to low. reg_lpoint_lsch2=(reg_hpoint_lsch2[19:0]+reg_duty_lsch2[24:4]) (1) reg_lpoint_lsch2=(reg_hpoint_lsch2[19:0]+reg_duty_lsch2[24:4] +1) (2) The least four bits in this register represent the decimal part and determines when to choose (1) or (2)