Struct esp32c3::ledc::RegisterBlock

source ·
#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

source§

impl RegisterBlock

source

pub const fn ch_conf0(&self, n: usize) -> &CH_CONF0

0x00..0x18 - LEDC_LSCH%s_CONF%s.

source

pub fn ch_conf0_iter(&self) -> impl Iterator<Item = &CH_CONF0>

Iterator for array of: 0x00..0x18 - LEDC_LSCH%s_CONF%s.

source

pub const fn ch0_conf0(&self) -> &CH_CONF0

0x00 - LEDC_LSCH0_CONF0.

source

pub const fn ch1_conf0(&self) -> &CH_CONF0

0x14 - LEDC_LSCH1_CONF1.

source

pub const fn ch2_conf0(&self) -> &CH_CONF0

0x28 - LEDC_LSCH2_CONF2.

source

pub const fn ch3_conf0(&self) -> &CH_CONF0

0x3c - LEDC_LSCH3_CONF3.

source

pub const fn ch4_conf0(&self) -> &CH_CONF0

0x50 - LEDC_LSCH4_CONF4.

source

pub const fn ch5_conf0(&self) -> &CH_CONF0

0x64 - LEDC_LSCH5_CONF5.

source

pub const fn ch_hpoint(&self, n: usize) -> &CH_HPOINT

0x04..0x1c - LEDC_LSCH%s_HPOINT.

source

pub fn ch_hpoint_iter(&self) -> impl Iterator<Item = &CH_HPOINT>

Iterator for array of: 0x04..0x1c - LEDC_LSCH%s_HPOINT.

source

pub const fn ch0_hpoint(&self) -> &CH_HPOINT

0x04 - LEDC_LSCH0_HPOINT.

source

pub const fn ch1_hpoint(&self) -> &CH_HPOINT

0x18 - LEDC_LSCH1_HPOINT.

source

pub const fn ch2_hpoint(&self) -> &CH_HPOINT

0x2c - LEDC_LSCH2_HPOINT.

source

pub const fn ch3_hpoint(&self) -> &CH_HPOINT

0x40 - LEDC_LSCH3_HPOINT.

source

pub const fn ch4_hpoint(&self) -> &CH_HPOINT

0x54 - LEDC_LSCH4_HPOINT.

source

pub const fn ch5_hpoint(&self) -> &CH_HPOINT

0x68 - LEDC_LSCH5_HPOINT.

source

pub const fn ch_duty(&self, n: usize) -> &CH_DUTY

0x08..0x20 - LEDC_LSCH%s_DUTY.

source

pub fn ch_duty_iter(&self) -> impl Iterator<Item = &CH_DUTY>

Iterator for array of: 0x08..0x20 - LEDC_LSCH%s_DUTY.

source

pub const fn ch0_duty(&self) -> &CH_DUTY

0x08 - LEDC_LSCH0_DUTY.

source

pub const fn ch1_duty(&self) -> &CH_DUTY

0x1c - LEDC_LSCH1_DUTY.

source

pub const fn ch2_duty(&self) -> &CH_DUTY

0x30 - LEDC_LSCH2_DUTY.

source

pub const fn ch3_duty(&self) -> &CH_DUTY

0x44 - LEDC_LSCH3_DUTY.

source

pub const fn ch4_duty(&self) -> &CH_DUTY

0x58 - LEDC_LSCH4_DUTY.

source

pub const fn ch5_duty(&self) -> &CH_DUTY

0x6c - LEDC_LSCH5_DUTY.

source

pub const fn ch_conf1(&self, n: usize) -> &CH_CONF1

0x0c..0x24 - LEDC_LSCH%s_CONF1.

source

pub fn ch_conf1_iter(&self) -> impl Iterator<Item = &CH_CONF1>

Iterator for array of: 0x0c..0x24 - LEDC_LSCH%s_CONF1.

source

pub const fn ch0_conf1(&self) -> &CH_CONF1

0x0c - LEDC_LSCH0_CONF1.

source

pub const fn ch1_conf1(&self) -> &CH_CONF1

0x20 - LEDC_LSCH1_CONF1.

source

pub const fn ch2_conf1(&self) -> &CH_CONF1

0x34 - LEDC_LSCH2_CONF1.

source

pub const fn ch3_conf1(&self) -> &CH_CONF1

0x48 - LEDC_LSCH3_CONF1.

source

pub const fn ch4_conf1(&self) -> &CH_CONF1

0x5c - LEDC_LSCH4_CONF1.

source

pub const fn ch5_conf1(&self) -> &CH_CONF1

0x70 - LEDC_LSCH5_CONF1.

source

pub const fn ch_duty_r(&self, n: usize) -> &CH_DUTY_R

0x10..0x28 - LEDC_LSCH%s_DUTY_R.

source

pub fn ch_duty_r_iter(&self) -> impl Iterator<Item = &CH_DUTY_R>

Iterator for array of: 0x10..0x28 - LEDC_LSCH%s_DUTY_R.

source

pub const fn ch0_duty_r(&self) -> &CH_DUTY_R

0x10 - LEDC_LSCH0_DUTY_R.

source

pub const fn ch1_duty_r(&self) -> &CH_DUTY_R

0x24 - LEDC_LSCH1_DUTY_R.

source

pub const fn ch2_duty_r(&self) -> &CH_DUTY_R

0x38 - LEDC_LSCH2_DUTY_R.

source

pub const fn ch3_duty_r(&self) -> &CH_DUTY_R

0x4c - LEDC_LSCH3_DUTY_R.

source

pub const fn ch4_duty_r(&self) -> &CH_DUTY_R

0x60 - LEDC_LSCH4_DUTY_R.

source

pub const fn ch5_duty_r(&self) -> &CH_DUTY_R

0x74 - LEDC_LSCH5_DUTY_R.

source

pub const fn timer_conf(&self, n: usize) -> &TIMER_CONF

0xa0..0xb0 - LEDC_LSTIMER%s_CONF.

source

pub fn timer_conf_iter(&self) -> impl Iterator<Item = &TIMER_CONF>

Iterator for array of: 0xa0..0xb0 - LEDC_LSTIMER%s_CONF.

source

pub const fn timer0_conf(&self) -> &TIMER_CONF

0xa0 - LEDC_LSTIMER0_CONF.

source

pub const fn timer1_conf(&self) -> &TIMER_CONF

0xa8 - LEDC_LSTIMER1_CONF.

source

pub const fn timer2_conf(&self) -> &TIMER_CONF

0xb0 - LEDC_LSTIMER2_CONF.

source

pub const fn timer3_conf(&self) -> &TIMER_CONF

0xb8 - LEDC_LSTIMER3_CONF.

source

pub const fn timer_value(&self, n: usize) -> &TIMER_VALUE

0xa4..0xb4 - LEDC_LSTIMER%s_VALUE.

source

pub fn timer_value_iter(&self) -> impl Iterator<Item = &TIMER_VALUE>

Iterator for array of: 0xa4..0xb4 - LEDC_LSTIMER%s_VALUE.

source

pub const fn timer0_value(&self) -> &TIMER_VALUE

0xa4 - LEDC_LSTIMER0_VALUE.

source

pub const fn timer1_value(&self) -> &TIMER_VALUE

0xac - LEDC_LSTIMER1_VALUE.

source

pub const fn timer2_value(&self) -> &TIMER_VALUE

0xb4 - LEDC_LSTIMER2_VALUE.

source

pub const fn timer3_value(&self) -> &TIMER_VALUE

0xbc - LEDC_LSTIMER3_VALUE.

source

pub const fn int_raw(&self) -> &INT_RAW

0xc0 - LEDC_INT_RAW.

source

pub const fn int_st(&self) -> &INT_ST

0xc4 - LEDC_INT_ST.

source

pub const fn int_ena(&self) -> &INT_ENA

0xc8 - LEDC_INT_ENA.

source

pub const fn int_clr(&self) -> &INT_CLR

0xcc - LEDC_INT_CLR.

source

pub const fn conf(&self) -> &CONF

0xd0 - LEDC_CONF.

source

pub const fn date(&self) -> &DATE

0xfc - LEDC_DATE.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.