Struct LEDC

Source
pub struct LEDC { /* private fields */ }

Implementations§

Source§

impl LEDC

Source

pub const PTR: *const <LEDC as Deref>::Target = {0x60007000 as *const <esp32c6::LEDC as core::ops::Deref>::Target}

Pointer to the register block

Source

pub unsafe fn steal() -> LEDC

Unsafely create an instance of this peripheral out of thin air.

§Safety

You must ensure that you’re only using one instance of this type at a time.

Source

pub const fn ptr() -> *const <LEDC as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

Source

pub fn ch_conf0(&self, n: usize) -> &Reg<CH_CONF0_SPEC>

0x00..0x18 - Configuration register 0 for channel %s

Source

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

Iterator for array of: 0x00..0x18 - Configuration register 0 for channel %s

Source

pub fn ch0_conf0(&self) -> &Reg<CH_CONF0_SPEC>

0x00 - Configuration register 0 for channel 0

Source

pub fn ch1_conf0(&self) -> &Reg<CH_CONF0_SPEC>

0x14 - Configuration register 0 for channel 1

Source

pub fn ch2_conf0(&self) -> &Reg<CH_CONF0_SPEC>

0x28 - Configuration register 0 for channel 2

Source

pub fn ch3_conf0(&self) -> &Reg<CH_CONF0_SPEC>

0x3c - Configuration register 0 for channel 3

Source

pub fn ch4_conf0(&self) -> &Reg<CH_CONF0_SPEC>

0x50 - Configuration register 0 for channel 4

Source

pub fn ch5_conf0(&self) -> &Reg<CH_CONF0_SPEC>

0x64 - Configuration register 0 for channel 5

Source

pub fn ch_hpoint(&self, n: usize) -> &Reg<CH_HPOINT_SPEC>

0x04..0x1c - High point register for channel %s

Source

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

Iterator for array of: 0x04..0x1c - High point register for channel %s

Source

pub fn ch0_hpoint(&self) -> &Reg<CH_HPOINT_SPEC>

0x04 - High point register for channel 0

Source

pub fn ch1_hpoint(&self) -> &Reg<CH_HPOINT_SPEC>

0x18 - High point register for channel 1

Source

pub fn ch2_hpoint(&self) -> &Reg<CH_HPOINT_SPEC>

0x2c - High point register for channel 2

Source

pub fn ch3_hpoint(&self) -> &Reg<CH_HPOINT_SPEC>

0x40 - High point register for channel 3

Source

pub fn ch4_hpoint(&self) -> &Reg<CH_HPOINT_SPEC>

0x54 - High point register for channel 4

Source

pub fn ch5_hpoint(&self) -> &Reg<CH_HPOINT_SPEC>

0x68 - High point register for channel 5

Source

pub fn ch_duty(&self, n: usize) -> &Reg<CH_DUTY_SPEC>

0x08..0x20 - Initial duty cycle for channel %s

Source

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

Iterator for array of: 0x08..0x20 - Initial duty cycle for channel %s

Source

pub fn ch0_duty(&self) -> &Reg<CH_DUTY_SPEC>

0x08 - Initial duty cycle for channel 0

Source

pub fn ch1_duty(&self) -> &Reg<CH_DUTY_SPEC>

0x1c - Initial duty cycle for channel 1

Source

pub fn ch2_duty(&self) -> &Reg<CH_DUTY_SPEC>

0x30 - Initial duty cycle for channel 2

Source

pub fn ch3_duty(&self) -> &Reg<CH_DUTY_SPEC>

0x44 - Initial duty cycle for channel 3

Source

pub fn ch4_duty(&self) -> &Reg<CH_DUTY_SPEC>

0x58 - Initial duty cycle for channel 4

Source

pub fn ch5_duty(&self) -> &Reg<CH_DUTY_SPEC>

0x6c - Initial duty cycle for channel 5

Source

pub fn ch_conf1(&self, n: usize) -> &Reg<CH_CONF1_SPEC>

0x0c..0x24 - Configuration register 1 for channel %s

Source

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

Iterator for array of: 0x0c..0x24 - Configuration register 1 for channel %s

Source

pub fn ch0_conf1(&self) -> &Reg<CH_CONF1_SPEC>

0x0c - Configuration register 1 for channel 0

Source

pub fn ch1_conf1(&self) -> &Reg<CH_CONF1_SPEC>

0x20 - Configuration register 1 for channel 1

Source

pub fn ch2_conf1(&self) -> &Reg<CH_CONF1_SPEC>

0x34 - Configuration register 1 for channel 2

Source

pub fn ch3_conf1(&self) -> &Reg<CH_CONF1_SPEC>

0x48 - Configuration register 1 for channel 3

Source

pub fn ch4_conf1(&self) -> &Reg<CH_CONF1_SPEC>

0x5c - Configuration register 1 for channel 4

Source

pub fn ch5_conf1(&self) -> &Reg<CH_CONF1_SPEC>

0x70 - Configuration register 1 for channel 5

Source

pub fn ch_duty_r(&self, n: usize) -> &Reg<CH_DUTY_R_SPEC>

0x10..0x28 - Current duty cycle for channel %s

Source

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

Iterator for array of: 0x10..0x28 - Current duty cycle for channel %s

Source

pub fn ch0_duty_r(&self) -> &Reg<CH_DUTY_R_SPEC>

0x10 - Current duty cycle for channel 0

Source

pub fn ch1_duty_r(&self) -> &Reg<CH_DUTY_R_SPEC>

0x24 - Current duty cycle for channel 1

Source

pub fn ch2_duty_r(&self) -> &Reg<CH_DUTY_R_SPEC>

0x38 - Current duty cycle for channel 2

Source

pub fn ch3_duty_r(&self) -> &Reg<CH_DUTY_R_SPEC>

0x4c - Current duty cycle for channel 3

Source

pub fn ch4_duty_r(&self) -> &Reg<CH_DUTY_R_SPEC>

0x60 - Current duty cycle for channel 4

Source

pub fn ch5_duty_r(&self) -> &Reg<CH_DUTY_R_SPEC>

0x74 - Current duty cycle for channel 5

Source

pub fn timer_conf(&self, n: usize) -> &Reg<TIMER_CONF_SPEC>

0xa0..0xb0 - Timer %s configuration

Source

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

Iterator for array of: 0xa0..0xb0 - Timer %s configuration

Source

pub fn timer0_conf(&self) -> &Reg<TIMER_CONF_SPEC>

0xa0 - Timer 0 configuration

Source

pub fn timer1_conf(&self) -> &Reg<TIMER_CONF_SPEC>

0xa8 - Timer 1 configuration

Source

pub fn timer2_conf(&self) -> &Reg<TIMER_CONF_SPEC>

0xb0 - Timer 2 configuration

Source

pub fn timer3_conf(&self) -> &Reg<TIMER_CONF_SPEC>

0xb8 - Timer 3 configuration

Source

pub fn timer_value(&self, n: usize) -> &Reg<TIMER_VALUE_SPEC>

0xa4..0xb4 - Timer %s current counter value

Source

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

Iterator for array of: 0xa4..0xb4 - Timer %s current counter value

Source

pub fn timer0_value(&self) -> &Reg<TIMER_VALUE_SPEC>

0xa4 - Timer 0 current counter value

Source

pub fn timer1_value(&self) -> &Reg<TIMER_VALUE_SPEC>

0xac - Timer 1 current counter value

Source

pub fn timer2_value(&self) -> &Reg<TIMER_VALUE_SPEC>

0xb4 - Timer 2 current counter value

Source

pub fn timer3_value(&self) -> &Reg<TIMER_VALUE_SPEC>

0xbc - Timer 3 current counter value

Source

pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>

0xc0 - Raw interrupt status

Source

pub fn int_st(&self) -> &Reg<INT_ST_SPEC>

0xc4 - Masked interrupt status

Source

pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>

0xc8 - Interrupt enable bits

Source

pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>

0xcc - Interrupt clear bits

Source

pub fn ch_gamma_wr(&self, n: usize) -> &Reg<CH_GAMMA_WR_SPEC>

0x100..0x118 - Ledc ch%s gamma ram write register.

Source

pub fn ch_gamma_wr_iter(&self) -> impl Iterator<Item = &Reg<CH_GAMMA_WR_SPEC>>

Iterator for array of: 0x100..0x118 - Ledc ch%s gamma ram write register.

Source

pub fn ch0_gamma_wr(&self) -> &Reg<CH_GAMMA_WR_SPEC>

0x100 - Ledc ch0 gamma ram write register.

Source

pub fn ch1_gamma_wr(&self) -> &Reg<CH_GAMMA_WR_SPEC>

0x110 - Ledc ch1 gamma ram write register.

Source

pub fn ch2_gamma_wr(&self) -> &Reg<CH_GAMMA_WR_SPEC>

0x120 - Ledc ch2 gamma ram write register.

Source

pub fn ch3_gamma_wr(&self) -> &Reg<CH_GAMMA_WR_SPEC>

0x130 - Ledc ch3 gamma ram write register.

Source

pub fn ch4_gamma_wr(&self) -> &Reg<CH_GAMMA_WR_SPEC>

0x140 - Ledc ch4 gamma ram write register.

Source

pub fn ch5_gamma_wr(&self) -> &Reg<CH_GAMMA_WR_SPEC>

0x150 - Ledc ch5 gamma ram write register.

Source

pub fn ch_gamma_wr_addr(&self, n: usize) -> &Reg<CH_GAMMA_WR_ADDR_SPEC>

0x104..0x11c - Ledc ch%s gamma ram write address register.

Source

pub fn ch_gamma_wr_addr_iter( &self, ) -> impl Iterator<Item = &Reg<CH_GAMMA_WR_ADDR_SPEC>>

Iterator for array of: 0x104..0x11c - Ledc ch%s gamma ram write address register.

Source

pub fn ch0_gamma_wr_addr(&self) -> &Reg<CH_GAMMA_WR_ADDR_SPEC>

0x104 - Ledc ch0 gamma ram write address register.

Source

pub fn ch1_gamma_wr_addr(&self) -> &Reg<CH_GAMMA_WR_ADDR_SPEC>

0x114 - Ledc ch1 gamma ram write address register.

Source

pub fn ch2_gamma_wr_addr(&self) -> &Reg<CH_GAMMA_WR_ADDR_SPEC>

0x124 - Ledc ch2 gamma ram write address register.

Source

pub fn ch3_gamma_wr_addr(&self) -> &Reg<CH_GAMMA_WR_ADDR_SPEC>

0x134 - Ledc ch3 gamma ram write address register.

Source

pub fn ch4_gamma_wr_addr(&self) -> &Reg<CH_GAMMA_WR_ADDR_SPEC>

0x144 - Ledc ch4 gamma ram write address register.

Source

pub fn ch5_gamma_wr_addr(&self) -> &Reg<CH_GAMMA_WR_ADDR_SPEC>

0x154 - Ledc ch5 gamma ram write address register.

Source

pub fn ch_gamma_rd_addr(&self, n: usize) -> &Reg<CH_GAMMA_RD_ADDR_SPEC>

0x108..0x120 - Ledc ch%s gamma ram read address register.

Source

pub fn ch_gamma_rd_addr_iter( &self, ) -> impl Iterator<Item = &Reg<CH_GAMMA_RD_ADDR_SPEC>>

Iterator for array of: 0x108..0x120 - Ledc ch%s gamma ram read address register.

Source

pub fn ch0_gamma_rd_addr(&self) -> &Reg<CH_GAMMA_RD_ADDR_SPEC>

0x108 - Ledc ch0 gamma ram read address register.

Source

pub fn ch1_gamma_rd_addr(&self) -> &Reg<CH_GAMMA_RD_ADDR_SPEC>

0x118 - Ledc ch1 gamma ram read address register.

Source

pub fn ch2_gamma_rd_addr(&self) -> &Reg<CH_GAMMA_RD_ADDR_SPEC>

0x128 - Ledc ch2 gamma ram read address register.

Source

pub fn ch3_gamma_rd_addr(&self) -> &Reg<CH_GAMMA_RD_ADDR_SPEC>

0x138 - Ledc ch3 gamma ram read address register.

Source

pub fn ch4_gamma_rd_addr(&self) -> &Reg<CH_GAMMA_RD_ADDR_SPEC>

0x148 - Ledc ch4 gamma ram read address register.

Source

pub fn ch5_gamma_rd_addr(&self) -> &Reg<CH_GAMMA_RD_ADDR_SPEC>

0x158 - Ledc ch5 gamma ram read address register.

Source

pub fn ch_gamma_rd_data(&self, n: usize) -> &Reg<CH_GAMMA_RD_DATA_SPEC>

0x10c..0x124 - Ledc ch%s gamma ram read data register.

Source

pub fn ch_gamma_rd_data_iter( &self, ) -> impl Iterator<Item = &Reg<CH_GAMMA_RD_DATA_SPEC>>

Iterator for array of: 0x10c..0x124 - Ledc ch%s gamma ram read data register.

Source

pub fn ch0_gamma_rd_data(&self) -> &Reg<CH_GAMMA_RD_DATA_SPEC>

0x10c - Ledc ch0 gamma ram read data register.

Source

pub fn ch1_gamma_rd_data(&self) -> &Reg<CH_GAMMA_RD_DATA_SPEC>

0x11c - Ledc ch1 gamma ram read data register.

Source

pub fn ch2_gamma_rd_data(&self) -> &Reg<CH_GAMMA_RD_DATA_SPEC>

0x12c - Ledc ch2 gamma ram read data register.

Source

pub fn ch3_gamma_rd_data(&self) -> &Reg<CH_GAMMA_RD_DATA_SPEC>

0x13c - Ledc ch3 gamma ram read data register.

Source

pub fn ch4_gamma_rd_data(&self) -> &Reg<CH_GAMMA_RD_DATA_SPEC>

0x14c - Ledc ch4 gamma ram read data register.

Source

pub fn ch5_gamma_rd_data(&self) -> &Reg<CH_GAMMA_RD_DATA_SPEC>

0x15c - Ledc ch5 gamma ram read data register.

Source

pub fn ch_gamma_conf(&self, n: usize) -> &Reg<CH_GAMMA_CONF_SPEC>

0x180..0x198 - Ledc ch%s gamma config register.

Source

pub fn ch_gamma_conf_iter( &self, ) -> impl Iterator<Item = &Reg<CH_GAMMA_CONF_SPEC>>

Iterator for array of: 0x180..0x198 - Ledc ch%s gamma config register.

Source

pub fn ch0_gamma_conf(&self) -> &Reg<CH_GAMMA_CONF_SPEC>

0x180 - Ledc ch0 gamma config register.

Source

pub fn ch1_gamma_conf(&self) -> &Reg<CH_GAMMA_CONF_SPEC>

0x184 - Ledc ch1 gamma config register.

Source

pub fn ch2_gamma_conf(&self) -> &Reg<CH_GAMMA_CONF_SPEC>

0x188 - Ledc ch2 gamma config register.

Source

pub fn ch3_gamma_conf(&self) -> &Reg<CH_GAMMA_CONF_SPEC>

0x18c - Ledc ch3 gamma config register.

Source

pub fn ch4_gamma_conf(&self) -> &Reg<CH_GAMMA_CONF_SPEC>

0x190 - Ledc ch4 gamma config register.

Source

pub fn ch5_gamma_conf(&self) -> &Reg<CH_GAMMA_CONF_SPEC>

0x194 - Ledc ch5 gamma config register.

Source

pub fn evt_task_en0(&self) -> &Reg<EVT_TASK_EN0_SPEC>

0x1a0 - Ledc event task enable bit register0.

Source

pub fn evt_task_en1(&self) -> &Reg<EVT_TASK_EN1_SPEC>

0x1a4 - Ledc event task enable bit register1.

Source

pub fn evt_task_en2(&self) -> &Reg<EVT_TASK_EN2_SPEC>

0x1a8 - Ledc event task enable bit register2.

Source

pub fn timer_cmp(&self, n: usize) -> &Reg<TIMER_CMP_SPEC>

0x1b0..0x1c0 - Ledc timer%s compare value register.

Source

pub fn timer_cmp_iter(&self) -> impl Iterator<Item = &Reg<TIMER_CMP_SPEC>>

Iterator for array of: 0x1b0..0x1c0 - Ledc timer%s compare value register.

Source

pub fn timer0_cmp(&self) -> &Reg<TIMER_CMP_SPEC>

0x1b0 - Ledc timer0 compare value register.

Source

pub fn timer1_cmp(&self) -> &Reg<TIMER_CMP_SPEC>

0x1b4 - Ledc timer1 compare value register.

Source

pub fn timer2_cmp(&self) -> &Reg<TIMER_CMP_SPEC>

0x1b8 - Ledc timer2 compare value register.

Source

pub fn timer3_cmp(&self) -> &Reg<TIMER_CMP_SPEC>

0x1bc - Ledc timer3 compare value register.

Source

pub fn timer_cnt_cap(&self, n: usize) -> &Reg<TIMER_CNT_CAP_SPEC>

0x1c0..0x1d0 - Ledc timer%s count value capture register.

Source

pub fn timer_cnt_cap_iter( &self, ) -> impl Iterator<Item = &Reg<TIMER_CNT_CAP_SPEC>>

Iterator for array of: 0x1c0..0x1d0 - Ledc timer%s count value capture register.

Source

pub fn timer0_cnt_cap(&self) -> &Reg<TIMER_CNT_CAP_SPEC>

0x1c0 - Ledc timer0 count value capture register.

Source

pub fn timer1_cnt_cap(&self) -> &Reg<TIMER_CNT_CAP_SPEC>

0x1c4 - Ledc timer1 count value capture register.

Source

pub fn timer2_cnt_cap(&self) -> &Reg<TIMER_CNT_CAP_SPEC>

0x1c8 - Ledc timer2 count value capture register.

Source

pub fn timer3_cnt_cap(&self) -> &Reg<TIMER_CNT_CAP_SPEC>

0x1cc - Ledc timer3 count value capture register.

Source

pub fn conf(&self) -> &Reg<CONF_SPEC>

0x1f0 - Global ledc configuration register

Source

pub fn date(&self) -> &Reg<DATE_SPEC>

0x1fc - Version control register

Trait Implementations§

Source§

impl Debug for LEDC

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Deref for LEDC

Source§

type Target = <LEDC as Deref>::Target

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<LEDC as Deref>::Target

Dereferences the value.
Source§

impl DerefMut for LEDC

Source§

fn deref_mut(&mut self) -> &mut <LEDC as Deref>::Target

Mutably dereferences the value.
Source§

impl Peripheral for LEDC

Source§

type P = LEDC

Peripheral singleton type
Source§

unsafe fn clone_unchecked(&mut self) -> <LEDC as Peripheral>::P

Unsafely clone (duplicate) a peripheral singleton. Read more
Source§

fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>
where Self: 'a,

Convert a value into a PeripheralRef. Read more

Auto Trait Implementations§

§

impl Freeze for LEDC

§

impl RefUnwindSafe for LEDC

§

impl Send for LEDC

§

impl Sync for LEDC

§

impl Unpin for LEDC

§

impl UnwindSafe for LEDC

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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>,

Source§

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.