Struct esp32c2_hal::pac::ledc::ch_conf1::R
pub struct R(_);
Expand description
Register CH%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 is used to configure the changing step scale of duty on channel %s.
pub fn duty_cycle(&self) -> FieldReaderRaw<u16, u16>
pub fn duty_cycle(&self) -> FieldReaderRaw<u16, u16>
Bits 10:19 - The duty will change every LEDC_DUTY_CYCLE_CH%s on channel %s.
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 number of times the duty cycle will be changed.
pub fn duty_inc(&self) -> BitReaderRaw<bool>
pub fn duty_inc(&self) -> BitReaderRaw<bool>
Bit 30 - This register is used to increase or decrease the duty of output signal on channel %s. 1: Increase; 0: Decrease.
pub fn duty_start(&self) -> BitReaderRaw<bool>
pub fn duty_start(&self) -> BitReaderRaw<bool>
Bit 31 - Other configured fields in LEDC_CH%s_CONF1_REG will start to take effect when this bit is set to 1.
Methods from Deref<Target = R<CH_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<CH_CONF1_SPEC>> for R
impl From<R<CH_CONF1_SPEC>> for R
§fn from(reader: R<CH_CONF1_SPEC>) -> R
fn from(reader: R<CH_CONF1_SPEC>) -> R
Converts to this type from the input type.