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

type W = W<u32, LEDC_HSCH5_DUTY_REG>;

Writer for register LEDC_HSCH5_DUTY_REG

Methods

impl W[src]

pub fn ledc_duty_hsch5(&mut self) -> LEDC_DUTY_HSCH5_W[src]

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