[][src]Type Definition esp32::ledc::ledc_lsch7_duty_reg::W

type W = W<u32, LEDC_LSCH7_DUTY_REG>;

Writer for register LEDC_LSCH7_DUTY_REG

Methods

impl W[src]

pub fn ledc_duty_lsch7(&mut self) -> LEDC_DUTY_LSCH7_W[src]

Bits 0:24 - The register is used to control output duty. When lstimerx(x=[0 3]) choosed by low speed channel7 has reached reg_lpoint_lsch7 the output signal changes to low. reg_lpoint_lsch7=(reg_hpoint_lsch7[19:0]+reg_duty_lsch7[24:4]) (1) reg_lpoint_lsch7=(reg_hpoint_lsch7[19:0]+reg_duty_lsch7[24:4] +1) (2) The least four bits in this register represent the decimal part and determines when to choose (1) or (2)