Struct esp32_hal::peripherals::LEDC

source ·
pub struct LEDC { /* private fields */ }

Implementations§

source§

impl LEDC

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 PTR: *const <LEDC as Deref>::Target = {0x3ff59000 as *const <esp32::LEDC as core::ops::Deref>::Target}

Pointer to the register block

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 hsch_conf0(&self, n: usize) -> &Reg<HSCH_CONF0_SPEC>

0x00..0x20 -

source

pub fn hsch_conf0_iter(&self) -> impl Iterator<Item = &Reg<HSCH_CONF0_SPEC>>

Iterator for array of: 0x00..0x20 -

source

pub fn hsch0_conf0(&self) -> &Reg<HSCH_CONF0_SPEC>

0x00 - HSCH0_CONF0

source

pub fn hsch1_conf0(&self) -> &Reg<HSCH_CONF0_SPEC>

0x14 - HSCH1_CONF0

source

pub fn hsch2_conf0(&self) -> &Reg<HSCH_CONF0_SPEC>

0x28 - HSCH2_CONF0

source

pub fn hsch3_conf0(&self) -> &Reg<HSCH_CONF0_SPEC>

0x3c - HSCH3_CONF0

source

pub fn hsch4_conf0(&self) -> &Reg<HSCH_CONF0_SPEC>

0x50 - HSCH4_CONF0

source

pub fn hsch5_conf0(&self) -> &Reg<HSCH_CONF0_SPEC>

0x64 - HSCH5_CONF0

source

pub fn hsch6_conf0(&self) -> &Reg<HSCH_CONF0_SPEC>

0x78 - HSCH6_CONF0

source

pub fn hsch7_conf0(&self) -> &Reg<HSCH_CONF0_SPEC>

0x8c - HSCH7_CONF0

source

pub fn hsch_hpoint(&self, n: usize) -> &Reg<HSCH_HPOINT_SPEC>

0x04..0x24 -

source

pub fn hsch_hpoint_iter(&self) -> impl Iterator<Item = &Reg<HSCH_HPOINT_SPEC>>

Iterator for array of: 0x04..0x24 -

source

pub fn hsch0_hpoint(&self) -> &Reg<HSCH_HPOINT_SPEC>

0x04 - HSCH0_HPOINT

source

pub fn hsch1_hpoint(&self) -> &Reg<HSCH_HPOINT_SPEC>

0x18 - HSCH1_HPOINT

source

pub fn hsch2_hpoint(&self) -> &Reg<HSCH_HPOINT_SPEC>

0x2c - HSCH2_HPOINT

source

pub fn hsch3_hpoint(&self) -> &Reg<HSCH_HPOINT_SPEC>

0x40 - HSCH3_HPOINT

source

pub fn hsch4_hpoint(&self) -> &Reg<HSCH_HPOINT_SPEC>

0x54 - HSCH4_HPOINT

source

pub fn hsch5_hpoint(&self) -> &Reg<HSCH_HPOINT_SPEC>

0x68 - HSCH5_HPOINT

source

pub fn hsch6_hpoint(&self) -> &Reg<HSCH_HPOINT_SPEC>

0x7c - HSCH6_HPOINT

source

pub fn hsch7_hpoint(&self) -> &Reg<HSCH_HPOINT_SPEC>

0x90 - HSCH7_HPOINT

source

pub fn hsch_duty(&self, n: usize) -> &Reg<HSCH_DUTY_SPEC>

0x08..0x28 -

source

pub fn hsch_duty_iter(&self) -> impl Iterator<Item = &Reg<HSCH_DUTY_SPEC>>

Iterator for array of: 0x08..0x28 -

source

pub fn hsch0_duty(&self) -> &Reg<HSCH_DUTY_SPEC>

0x08 - HSCH0_DUTY

source

pub fn hsch1_duty(&self) -> &Reg<HSCH_DUTY_SPEC>

0x1c - HSCH1_DUTY

source

pub fn hsch2_duty(&self) -> &Reg<HSCH_DUTY_SPEC>

0x30 - HSCH2_DUTY

source

pub fn hsch3_duty(&self) -> &Reg<HSCH_DUTY_SPEC>

0x44 - HSCH3_DUTY

source

pub fn hsch4_duty(&self) -> &Reg<HSCH_DUTY_SPEC>

0x58 - HSCH4_DUTY

source

pub fn hsch5_duty(&self) -> &Reg<HSCH_DUTY_SPEC>

0x6c - HSCH5_DUTY

source

pub fn hsch6_duty(&self) -> &Reg<HSCH_DUTY_SPEC>

0x80 - HSCH6_DUTY

source

pub fn hsch7_duty(&self) -> &Reg<HSCH_DUTY_SPEC>

0x94 - HSCH7_DUTY

source

pub fn hsch_conf1(&self, n: usize) -> &Reg<HSCH_CONF1_SPEC>

0x0c..0x2c -

source

pub fn hsch_conf1_iter(&self) -> impl Iterator<Item = &Reg<HSCH_CONF1_SPEC>>

Iterator for array of: 0x0c..0x2c -

source

pub fn hsch0_conf1(&self) -> &Reg<HSCH_CONF1_SPEC>

0x0c - HSCH0_CONF1

source

pub fn hsch1_conf1(&self) -> &Reg<HSCH_CONF1_SPEC>

0x20 - HSCH1_CONF1

source

pub fn hsch2_conf1(&self) -> &Reg<HSCH_CONF1_SPEC>

0x34 - HSCH2_CONF1

source

pub fn hsch3_conf1(&self) -> &Reg<HSCH_CONF1_SPEC>

0x48 - HSCH3_CONF1

source

pub fn hsch4_conf1(&self) -> &Reg<HSCH_CONF1_SPEC>

0x5c - HSCH4_CONF1

source

pub fn hsch5_conf1(&self) -> &Reg<HSCH_CONF1_SPEC>

0x70 - HSCH5_CONF1

source

pub fn hsch6_conf1(&self) -> &Reg<HSCH_CONF1_SPEC>

0x84 - HSCH6_CONF1

source

pub fn hsch7_conf1(&self) -> &Reg<HSCH_CONF1_SPEC>

0x98 - HSCH7_CONF1

source

pub fn hsch_duty_r(&self, n: usize) -> &Reg<HSCH_DUTY_R_SPEC>

0x10..0x30 -

source

pub fn hsch_duty_r_iter(&self) -> impl Iterator<Item = &Reg<HSCH_DUTY_R_SPEC>>

Iterator for array of: 0x10..0x30 -

source

pub fn hsch0_duty_r(&self) -> &Reg<HSCH_DUTY_R_SPEC>

0x10 - HSCH0_DUTY_R

source

pub fn hsch1_duty_r(&self) -> &Reg<HSCH_DUTY_R_SPEC>

0x24 - HSCH1_DUTY_R

source

pub fn hsch2_duty_r(&self) -> &Reg<HSCH_DUTY_R_SPEC>

0x38 - HSCH2_DUTY_R

source

pub fn hsch3_duty_r(&self) -> &Reg<HSCH_DUTY_R_SPEC>

0x4c - HSCH3_DUTY_R

source

pub fn hsch4_duty_r(&self) -> &Reg<HSCH_DUTY_R_SPEC>

0x60 - HSCH4_DUTY_R

source

pub fn hsch5_duty_r(&self) -> &Reg<HSCH_DUTY_R_SPEC>

0x74 - HSCH5_DUTY_R

source

pub fn hsch6_duty_r(&self) -> &Reg<HSCH_DUTY_R_SPEC>

0x88 - HSCH6_DUTY_R

source

pub fn hsch7_duty_r(&self) -> &Reg<HSCH_DUTY_R_SPEC>

0x9c - HSCH7_DUTY_R

source

pub fn lsch_conf0(&self, n: usize) -> &Reg<LSCH_CONF0_SPEC>

0xa0..0xc0 -

source

pub fn lsch_conf0_iter(&self) -> impl Iterator<Item = &Reg<LSCH_CONF0_SPEC>>

Iterator for array of: 0xa0..0xc0 -

source

pub fn lsch0_conf0(&self) -> &Reg<LSCH_CONF0_SPEC>

0xa0 - LSCH0_CONF0

source

pub fn lsch1_conf0(&self) -> &Reg<LSCH_CONF0_SPEC>

0xb4 - LSCH1_CONF0

source

pub fn lsch2_conf0(&self) -> &Reg<LSCH_CONF0_SPEC>

0xc8 - LSCH2_CONF0

source

pub fn lsch3_conf0(&self) -> &Reg<LSCH_CONF0_SPEC>

0xdc - LSCH3_CONF0

source

pub fn lsch4_conf0(&self) -> &Reg<LSCH_CONF0_SPEC>

0xf0 - LSCH4_CONF0

source

pub fn lsch5_conf0(&self) -> &Reg<LSCH_CONF0_SPEC>

0x104 - LSCH5_CONF0

source

pub fn lsch6_conf0(&self) -> &Reg<LSCH_CONF0_SPEC>

0x118 - LSCH6_CONF0

source

pub fn lsch7_conf0(&self) -> &Reg<LSCH_CONF0_SPEC>

0x12c - LSCH7_CONF0

source

pub fn lsch_hpoint(&self, n: usize) -> &Reg<LSCH_HPOINT_SPEC>

0xa4..0xc4 -

source

pub fn lsch_hpoint_iter(&self) -> impl Iterator<Item = &Reg<LSCH_HPOINT_SPEC>>

Iterator for array of: 0xa4..0xc4 -

source

pub fn lsch0_hpoint(&self) -> &Reg<LSCH_HPOINT_SPEC>

0xa4 - LSCH0_HPOINT

source

pub fn lsch1_hpoint(&self) -> &Reg<LSCH_HPOINT_SPEC>

0xb8 - LSCH1_HPOINT

source

pub fn lsch2_hpoint(&self) -> &Reg<LSCH_HPOINT_SPEC>

0xcc - LSCH2_HPOINT

source

pub fn lsch3_hpoint(&self) -> &Reg<LSCH_HPOINT_SPEC>

0xe0 - LSCH3_HPOINT

source

pub fn lsch4_hpoint(&self) -> &Reg<LSCH_HPOINT_SPEC>

0xf4 - LSCH4_HPOINT

source

pub fn lsch5_hpoint(&self) -> &Reg<LSCH_HPOINT_SPEC>

0x108 - LSCH5_HPOINT

source

pub fn lsch6_hpoint(&self) -> &Reg<LSCH_HPOINT_SPEC>

0x11c - LSCH6_HPOINT

source

pub fn lsch7_hpoint(&self) -> &Reg<LSCH_HPOINT_SPEC>

0x130 - LSCH7_HPOINT

source

pub fn lsch_duty(&self, n: usize) -> &Reg<LSCH_DUTY_SPEC>

0xa8..0xc8 -

source

pub fn lsch_duty_iter(&self) -> impl Iterator<Item = &Reg<LSCH_DUTY_SPEC>>

Iterator for array of: 0xa8..0xc8 -

source

pub fn lsch0_duty(&self) -> &Reg<LSCH_DUTY_SPEC>

0xa8 - LSCH0_DUTY

source

pub fn lsch1_duty(&self) -> &Reg<LSCH_DUTY_SPEC>

0xbc - LSCH1_DUTY

source

pub fn lsch2_duty(&self) -> &Reg<LSCH_DUTY_SPEC>

0xd0 - LSCH2_DUTY

source

pub fn lsch3_duty(&self) -> &Reg<LSCH_DUTY_SPEC>

0xe4 - LSCH3_DUTY

source

pub fn lsch4_duty(&self) -> &Reg<LSCH_DUTY_SPEC>

0xf8 - LSCH4_DUTY

source

pub fn lsch5_duty(&self) -> &Reg<LSCH_DUTY_SPEC>

0x10c - LSCH5_DUTY

source

pub fn lsch6_duty(&self) -> &Reg<LSCH_DUTY_SPEC>

0x120 - LSCH6_DUTY

source

pub fn lsch7_duty(&self) -> &Reg<LSCH_DUTY_SPEC>

0x134 - LSCH7_DUTY

source

pub fn lsch_conf1(&self, n: usize) -> &Reg<LSCH_CONF1_SPEC>

0xac..0xcc -

source

pub fn lsch_conf1_iter(&self) -> impl Iterator<Item = &Reg<LSCH_CONF1_SPEC>>

Iterator for array of: 0xac..0xcc -

source

pub fn lsch0_conf1(&self) -> &Reg<LSCH_CONF1_SPEC>

0xac - LSCH0_CONF1

source

pub fn lsch1_conf1(&self) -> &Reg<LSCH_CONF1_SPEC>

0xc0 - LSCH1_CONF1

source

pub fn lsch2_conf1(&self) -> &Reg<LSCH_CONF1_SPEC>

0xd4 - LSCH2_CONF1

source

pub fn lsch3_conf1(&self) -> &Reg<LSCH_CONF1_SPEC>

0xe8 - LSCH3_CONF1

source

pub fn lsch4_conf1(&self) -> &Reg<LSCH_CONF1_SPEC>

0xfc - LSCH4_CONF1

source

pub fn lsch5_conf1(&self) -> &Reg<LSCH_CONF1_SPEC>

0x110 - LSCH5_CONF1

source

pub fn lsch6_conf1(&self) -> &Reg<LSCH_CONF1_SPEC>

0x124 - LSCH6_CONF1

source

pub fn lsch7_conf1(&self) -> &Reg<LSCH_CONF1_SPEC>

0x138 - LSCH7_CONF1

source

pub fn lsch_duty_r(&self, n: usize) -> &Reg<LSCH_DUTY_R_SPEC>

0xb0..0xd0 -

source

pub fn lsch_duty_r_iter(&self) -> impl Iterator<Item = &Reg<LSCH_DUTY_R_SPEC>>

Iterator for array of: 0xb0..0xd0 -

source

pub fn lsch0_duty_r(&self) -> &Reg<LSCH_DUTY_R_SPEC>

0xb0 - LSCH0_DUTY_R

source

pub fn lsch1_duty_r(&self) -> &Reg<LSCH_DUTY_R_SPEC>

0xc4 - LSCH1_DUTY_R

source

pub fn lsch2_duty_r(&self) -> &Reg<LSCH_DUTY_R_SPEC>

0xd8 - LSCH2_DUTY_R

source

pub fn lsch3_duty_r(&self) -> &Reg<LSCH_DUTY_R_SPEC>

0xec - LSCH3_DUTY_R

source

pub fn lsch4_duty_r(&self) -> &Reg<LSCH_DUTY_R_SPEC>

0x100 - LSCH4_DUTY_R

source

pub fn lsch5_duty_r(&self) -> &Reg<LSCH_DUTY_R_SPEC>

0x114 - LSCH5_DUTY_R

source

pub fn lsch6_duty_r(&self) -> &Reg<LSCH_DUTY_R_SPEC>

0x128 - LSCH6_DUTY_R

source

pub fn lsch7_duty_r(&self) -> &Reg<LSCH_DUTY_R_SPEC>

0x13c - LSCH7_DUTY_R

source

pub fn hstimer_conf(&self, n: usize) -> &Reg<HSTIMER_CONF_SPEC>

0x140..0x150 -

source

pub fn hstimer_conf_iter(&self) -> impl Iterator<Item = &Reg<HSTIMER_CONF_SPEC>>

Iterator for array of: 0x140..0x150 -

source

pub fn hstimer0_conf(&self) -> &Reg<HSTIMER_CONF_SPEC>

0x140 - HSTIMER0_CONF

source

pub fn hstimer1_conf(&self) -> &Reg<HSTIMER_CONF_SPEC>

0x148 - HSTIMER1_CONF

source

pub fn hstimer2_conf(&self) -> &Reg<HSTIMER_CONF_SPEC>

0x150 - HSTIMER2_CONF

source

pub fn hstimer3_conf(&self) -> &Reg<HSTIMER_CONF_SPEC>

0x158 - HSTIMER3_CONF

source

pub fn hstimer_value(&self, n: usize) -> &Reg<HSTIMER_VALUE_SPEC>

0x144..0x154 -

source

pub fn hstimer_value_iter( &self ) -> impl Iterator<Item = &Reg<HSTIMER_VALUE_SPEC>>

Iterator for array of: 0x144..0x154 -

source

pub fn hstimer0_value(&self) -> &Reg<HSTIMER_VALUE_SPEC>

0x144 - HSTIMER0_VALUE

source

pub fn hstimer1_value(&self) -> &Reg<HSTIMER_VALUE_SPEC>

0x14c - HSTIMER1_VALUE

source

pub fn hstimer2_value(&self) -> &Reg<HSTIMER_VALUE_SPEC>

0x154 - HSTIMER2_VALUE

source

pub fn hstimer3_value(&self) -> &Reg<HSTIMER_VALUE_SPEC>

0x15c - HSTIMER3_VALUE

source

pub fn lstimer_conf(&self, n: usize) -> &Reg<LSTIMER_CONF_SPEC>

0x160..0x170 -

source

pub fn lstimer_conf_iter(&self) -> impl Iterator<Item = &Reg<LSTIMER_CONF_SPEC>>

Iterator for array of: 0x160..0x170 -

source

pub fn lstimer0_conf(&self) -> &Reg<LSTIMER_CONF_SPEC>

0x160 - LSTIMER0_CONF

source

pub fn lstimer1_conf(&self) -> &Reg<LSTIMER_CONF_SPEC>

0x168 - LSTIMER1_CONF

source

pub fn lstimer2_conf(&self) -> &Reg<LSTIMER_CONF_SPEC>

0x170 - LSTIMER2_CONF

source

pub fn lstimer3_conf(&self) -> &Reg<LSTIMER_CONF_SPEC>

0x178 - LSTIMER3_CONF

source

pub fn lstimer_value(&self, n: usize) -> &Reg<LSTIMER_VALUE_SPEC>

0x164..0x174 -

source

pub fn lstimer_value_iter( &self ) -> impl Iterator<Item = &Reg<LSTIMER_VALUE_SPEC>>

Iterator for array of: 0x164..0x174 -

source

pub fn lstimer0_value(&self) -> &Reg<LSTIMER_VALUE_SPEC>

0x164 - LSTIMER0_VALUE

source

pub fn lstimer1_value(&self) -> &Reg<LSTIMER_VALUE_SPEC>

0x16c - LSTIMER1_VALUE

source

pub fn lstimer2_value(&self) -> &Reg<LSTIMER_VALUE_SPEC>

0x174 - LSTIMER2_VALUE

source

pub fn lstimer3_value(&self) -> &Reg<LSTIMER_VALUE_SPEC>

0x17c - LSTIMER3_VALUE

source

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

0x180 -

source

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

0x184 -

source

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

0x188 -

source

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

0x18c -

source

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

0x190 -

source

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

0x1fc -

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

§

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

§

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