Struct esp32::ledc::lsch_conf1::W
source · pub struct W(_);
Expand description
Register LSCH%s_CONF1
writer
Implementations§
source§impl W
impl W
sourcepub fn duty_scale(&mut self) -> DUTY_SCALE_W<'_, 0>
pub fn duty_scale(&mut self) -> DUTY_SCALE_W<'_, 0>
Bits 0:9 - This register controls the increase or decrease step scale for low speed channel0.
sourcepub fn duty_cycle(&mut self) -> DUTY_CYCLE_W<'_, 10>
pub fn duty_cycle(&mut self) -> DUTY_CYCLE_W<'_, 10>
Bits 10:19 - This register is used to increase or decrease the duty every reg_duty_cycle_lsch0 cycles for low speed channel0.
sourcepub fn duty_num(&mut self) -> DUTY_NUM_W<'_, 20>
pub fn duty_num(&mut self) -> DUTY_NUM_W<'_, 20>
Bits 20:29 - This register is used to control the num of increased or decreased times for low speed channel6.
sourcepub fn duty_inc(&mut self) -> DUTY_INC_W<'_, 30>
pub fn duty_inc(&mut self) -> DUTY_INC_W<'_, 30>
Bit 30 - This register is used to increase the duty of output signal or decrease the duty of output signal for low speed channel6.
sourcepub fn duty_start(&mut self) -> DUTY_START_W<'_, 31>
pub fn duty_start(&mut self) -> DUTY_START_W<'_, 31>
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 = W<LSCH_CONF1_SPEC>>§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more