Struct esp32_hal::pac::ledc::hstimer_conf::R
pub struct R(_);
Expand description
Register HSTIMER%s_CONF
reader
Implementations§
§impl R
impl R
pub fn duty_res(&self) -> FieldReaderRaw<u8, u8>
pub fn duty_res(&self) -> FieldReaderRaw<u8, u8>
Bits 0:4 - This register controls the range of the counter in high speed timer0. the counter range is [0 2**reg_hstimer0_lim] the max bit width for counter is 20.
pub fn div_num(&self) -> FieldReaderRaw<u32, u32>
pub fn div_num(&self) -> FieldReaderRaw<u32, u32>
Bits 5:22 - This register is used to configure parameter for divider in high speed timer0 the least significant eight bits represent the decimal part.
pub fn pause(&self) -> BitReaderRaw<bool>
pub fn pause(&self) -> BitReaderRaw<bool>
Bit 23 - This bit is used to pause the counter in high speed timer0
pub fn rst(&self) -> BitReaderRaw<bool>
pub fn rst(&self) -> BitReaderRaw<bool>
Bit 24 - This bit is used to reset high speed timer0 the counter will be 0 after reset.
Methods from Deref<Target = R<HSTIMER_CONF_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<HSTIMER_CONF_SPEC>> for R
impl From<R<HSTIMER_CONF_SPEC>> for R
§fn from(reader: R<HSTIMER_CONF_SPEC>) -> R
fn from(reader: R<HSTIMER_CONF_SPEC>) -> R
Converts to this type from the input type.