Struct esp32::ledc::RegisterBlock

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

Register block

Implementations§

source§

impl RegisterBlock

source

pub const fn hsch_conf0(&self, n: usize) -> &HSCH_CONF0

0x00..0x20 -

source

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

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

source

pub const fn hsch0_conf0(&self) -> &HSCH_CONF0

0x00 - HSCH0_CONF0

source

pub const fn hsch1_conf0(&self) -> &HSCH_CONF0

0x14 - HSCH1_CONF0

source

pub const fn hsch2_conf0(&self) -> &HSCH_CONF0

0x28 - HSCH2_CONF0

source

pub const fn hsch3_conf0(&self) -> &HSCH_CONF0

0x3c - HSCH3_CONF0

source

pub const fn hsch4_conf0(&self) -> &HSCH_CONF0

0x50 - HSCH4_CONF0

source

pub const fn hsch5_conf0(&self) -> &HSCH_CONF0

0x64 - HSCH5_CONF0

source

pub const fn hsch6_conf0(&self) -> &HSCH_CONF0

0x78 - HSCH6_CONF0

source

pub const fn hsch7_conf0(&self) -> &HSCH_CONF0

0x8c - HSCH7_CONF0

source

pub const fn hsch_hpoint(&self, n: usize) -> &HSCH_HPOINT

0x04..0x24 -

source

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

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

source

pub const fn hsch0_hpoint(&self) -> &HSCH_HPOINT

0x04 - HSCH0_HPOINT

source

pub const fn hsch1_hpoint(&self) -> &HSCH_HPOINT

0x18 - HSCH1_HPOINT

source

pub const fn hsch2_hpoint(&self) -> &HSCH_HPOINT

0x2c - HSCH2_HPOINT

source

pub const fn hsch3_hpoint(&self) -> &HSCH_HPOINT

0x40 - HSCH3_HPOINT

source

pub const fn hsch4_hpoint(&self) -> &HSCH_HPOINT

0x54 - HSCH4_HPOINT

source

pub const fn hsch5_hpoint(&self) -> &HSCH_HPOINT

0x68 - HSCH5_HPOINT

source

pub const fn hsch6_hpoint(&self) -> &HSCH_HPOINT

0x7c - HSCH6_HPOINT

source

pub const fn hsch7_hpoint(&self) -> &HSCH_HPOINT

0x90 - HSCH7_HPOINT

source

pub const fn hsch_duty(&self, n: usize) -> &HSCH_DUTY

0x08..0x28 -

source

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

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

source

pub const fn hsch0_duty(&self) -> &HSCH_DUTY

0x08 - HSCH0_DUTY

source

pub const fn hsch1_duty(&self) -> &HSCH_DUTY

0x1c - HSCH1_DUTY

source

pub const fn hsch2_duty(&self) -> &HSCH_DUTY

0x30 - HSCH2_DUTY

source

pub const fn hsch3_duty(&self) -> &HSCH_DUTY

0x44 - HSCH3_DUTY

source

pub const fn hsch4_duty(&self) -> &HSCH_DUTY

0x58 - HSCH4_DUTY

source

pub const fn hsch5_duty(&self) -> &HSCH_DUTY

0x6c - HSCH5_DUTY

source

pub const fn hsch6_duty(&self) -> &HSCH_DUTY

0x80 - HSCH6_DUTY

source

pub const fn hsch7_duty(&self) -> &HSCH_DUTY

0x94 - HSCH7_DUTY

source

pub const fn hsch_conf1(&self, n: usize) -> &HSCH_CONF1

0x0c..0x2c -

source

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

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

source

pub const fn hsch0_conf1(&self) -> &HSCH_CONF1

0x0c - HSCH0_CONF1

source

pub const fn hsch1_conf1(&self) -> &HSCH_CONF1

0x20 - HSCH1_CONF1

source

pub const fn hsch2_conf1(&self) -> &HSCH_CONF1

0x34 - HSCH2_CONF1

source

pub const fn hsch3_conf1(&self) -> &HSCH_CONF1

0x48 - HSCH3_CONF1

source

pub const fn hsch4_conf1(&self) -> &HSCH_CONF1

0x5c - HSCH4_CONF1

source

pub const fn hsch5_conf1(&self) -> &HSCH_CONF1

0x70 - HSCH5_CONF1

source

pub const fn hsch6_conf1(&self) -> &HSCH_CONF1

0x84 - HSCH6_CONF1

source

pub const fn hsch7_conf1(&self) -> &HSCH_CONF1

0x98 - HSCH7_CONF1

source

pub const fn hsch_duty_r(&self, n: usize) -> &HSCH_DUTY_R

0x10..0x30 -

source

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

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

source

pub const fn hsch0_duty_r(&self) -> &HSCH_DUTY_R

0x10 - HSCH0_DUTY_R

source

pub const fn hsch1_duty_r(&self) -> &HSCH_DUTY_R

0x24 - HSCH1_DUTY_R

source

pub const fn hsch2_duty_r(&self) -> &HSCH_DUTY_R

0x38 - HSCH2_DUTY_R

source

pub const fn hsch3_duty_r(&self) -> &HSCH_DUTY_R

0x4c - HSCH3_DUTY_R

source

pub const fn hsch4_duty_r(&self) -> &HSCH_DUTY_R

0x60 - HSCH4_DUTY_R

source

pub const fn hsch5_duty_r(&self) -> &HSCH_DUTY_R

0x74 - HSCH5_DUTY_R

source

pub const fn hsch6_duty_r(&self) -> &HSCH_DUTY_R

0x88 - HSCH6_DUTY_R

source

pub const fn hsch7_duty_r(&self) -> &HSCH_DUTY_R

0x9c - HSCH7_DUTY_R

source

pub const fn lsch_conf0(&self, n: usize) -> &LSCH_CONF0

0xa0..0xc0 -

source

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

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

source

pub const fn lsch0_conf0(&self) -> &LSCH_CONF0

0xa0 - LSCH0_CONF0

source

pub const fn lsch1_conf0(&self) -> &LSCH_CONF0

0xb4 - LSCH1_CONF0

source

pub const fn lsch2_conf0(&self) -> &LSCH_CONF0

0xc8 - LSCH2_CONF0

source

pub const fn lsch3_conf0(&self) -> &LSCH_CONF0

0xdc - LSCH3_CONF0

source

pub const fn lsch4_conf0(&self) -> &LSCH_CONF0

0xf0 - LSCH4_CONF0

source

pub const fn lsch5_conf0(&self) -> &LSCH_CONF0

0x104 - LSCH5_CONF0

source

pub const fn lsch6_conf0(&self) -> &LSCH_CONF0

0x118 - LSCH6_CONF0

source

pub const fn lsch7_conf0(&self) -> &LSCH_CONF0

0x12c - LSCH7_CONF0

source

pub const fn lsch_hpoint(&self, n: usize) -> &LSCH_HPOINT

0xa4..0xc4 -

source

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

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

source

pub const fn lsch0_hpoint(&self) -> &LSCH_HPOINT

0xa4 - LSCH0_HPOINT

source

pub const fn lsch1_hpoint(&self) -> &LSCH_HPOINT

0xb8 - LSCH1_HPOINT

source

pub const fn lsch2_hpoint(&self) -> &LSCH_HPOINT

0xcc - LSCH2_HPOINT

source

pub const fn lsch3_hpoint(&self) -> &LSCH_HPOINT

0xe0 - LSCH3_HPOINT

source

pub const fn lsch4_hpoint(&self) -> &LSCH_HPOINT

0xf4 - LSCH4_HPOINT

source

pub const fn lsch5_hpoint(&self) -> &LSCH_HPOINT

0x108 - LSCH5_HPOINT

source

pub const fn lsch6_hpoint(&self) -> &LSCH_HPOINT

0x11c - LSCH6_HPOINT

source

pub const fn lsch7_hpoint(&self) -> &LSCH_HPOINT

0x130 - LSCH7_HPOINT

source

pub const fn lsch_duty(&self, n: usize) -> &LSCH_DUTY

0xa8..0xc8 -

source

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

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

source

pub const fn lsch0_duty(&self) -> &LSCH_DUTY

0xa8 - LSCH0_DUTY

source

pub const fn lsch1_duty(&self) -> &LSCH_DUTY

0xbc - LSCH1_DUTY

source

pub const fn lsch2_duty(&self) -> &LSCH_DUTY

0xd0 - LSCH2_DUTY

source

pub const fn lsch3_duty(&self) -> &LSCH_DUTY

0xe4 - LSCH3_DUTY

source

pub const fn lsch4_duty(&self) -> &LSCH_DUTY

0xf8 - LSCH4_DUTY

source

pub const fn lsch5_duty(&self) -> &LSCH_DUTY

0x10c - LSCH5_DUTY

source

pub const fn lsch6_duty(&self) -> &LSCH_DUTY

0x120 - LSCH6_DUTY

source

pub const fn lsch7_duty(&self) -> &LSCH_DUTY

0x134 - LSCH7_DUTY

source

pub const fn lsch_conf1(&self, n: usize) -> &LSCH_CONF1

0xac..0xcc -

source

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

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

source

pub const fn lsch0_conf1(&self) -> &LSCH_CONF1

0xac - LSCH0_CONF1

source

pub const fn lsch1_conf1(&self) -> &LSCH_CONF1

0xc0 - LSCH1_CONF1

source

pub const fn lsch2_conf1(&self) -> &LSCH_CONF1

0xd4 - LSCH2_CONF1

source

pub const fn lsch3_conf1(&self) -> &LSCH_CONF1

0xe8 - LSCH3_CONF1

source

pub const fn lsch4_conf1(&self) -> &LSCH_CONF1

0xfc - LSCH4_CONF1

source

pub const fn lsch5_conf1(&self) -> &LSCH_CONF1

0x110 - LSCH5_CONF1

source

pub const fn lsch6_conf1(&self) -> &LSCH_CONF1

0x124 - LSCH6_CONF1

source

pub const fn lsch7_conf1(&self) -> &LSCH_CONF1

0x138 - LSCH7_CONF1

source

pub const fn lsch_duty_r(&self, n: usize) -> &LSCH_DUTY_R

0xb0..0xd0 -

source

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

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

source

pub const fn lsch0_duty_r(&self) -> &LSCH_DUTY_R

0xb0 - LSCH0_DUTY_R

source

pub const fn lsch1_duty_r(&self) -> &LSCH_DUTY_R

0xc4 - LSCH1_DUTY_R

source

pub const fn lsch2_duty_r(&self) -> &LSCH_DUTY_R

0xd8 - LSCH2_DUTY_R

source

pub const fn lsch3_duty_r(&self) -> &LSCH_DUTY_R

0xec - LSCH3_DUTY_R

source

pub const fn lsch4_duty_r(&self) -> &LSCH_DUTY_R

0x100 - LSCH4_DUTY_R

source

pub const fn lsch5_duty_r(&self) -> &LSCH_DUTY_R

0x114 - LSCH5_DUTY_R

source

pub const fn lsch6_duty_r(&self) -> &LSCH_DUTY_R

0x128 - LSCH6_DUTY_R

source

pub const fn lsch7_duty_r(&self) -> &LSCH_DUTY_R

0x13c - LSCH7_DUTY_R

source

pub const fn hstimer_conf(&self, n: usize) -> &HSTIMER_CONF

0x140..0x150 -

source

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

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

source

pub const fn hstimer0_conf(&self) -> &HSTIMER_CONF

0x140 - HSTIMER0_CONF

source

pub const fn hstimer1_conf(&self) -> &HSTIMER_CONF

0x148 - HSTIMER1_CONF

source

pub const fn hstimer2_conf(&self) -> &HSTIMER_CONF

0x150 - HSTIMER2_CONF

source

pub const fn hstimer3_conf(&self) -> &HSTIMER_CONF

0x158 - HSTIMER3_CONF

source

pub const fn hstimer_value(&self, n: usize) -> &HSTIMER_VALUE

0x144..0x154 -

source

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

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

source

pub const fn hstimer0_value(&self) -> &HSTIMER_VALUE

0x144 - HSTIMER0_VALUE

source

pub const fn hstimer1_value(&self) -> &HSTIMER_VALUE

0x14c - HSTIMER1_VALUE

source

pub const fn hstimer2_value(&self) -> &HSTIMER_VALUE

0x154 - HSTIMER2_VALUE

source

pub const fn hstimer3_value(&self) -> &HSTIMER_VALUE

0x15c - HSTIMER3_VALUE

source

pub const fn lstimer_conf(&self, n: usize) -> &LSTIMER_CONF

0x160..0x170 -

source

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

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

source

pub const fn lstimer0_conf(&self) -> &LSTIMER_CONF

0x160 - LSTIMER0_CONF

source

pub const fn lstimer1_conf(&self) -> &LSTIMER_CONF

0x168 - LSTIMER1_CONF

source

pub const fn lstimer2_conf(&self) -> &LSTIMER_CONF

0x170 - LSTIMER2_CONF

source

pub const fn lstimer3_conf(&self) -> &LSTIMER_CONF

0x178 - LSTIMER3_CONF

source

pub const fn lstimer_value(&self, n: usize) -> &LSTIMER_VALUE

0x164..0x174 -

source

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

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

source

pub const fn lstimer0_value(&self) -> &LSTIMER_VALUE

0x164 - LSTIMER0_VALUE

source

pub const fn lstimer1_value(&self) -> &LSTIMER_VALUE

0x16c - LSTIMER1_VALUE

source

pub const fn lstimer2_value(&self) -> &LSTIMER_VALUE

0x174 - LSTIMER2_VALUE

source

pub const fn lstimer3_value(&self) -> &LSTIMER_VALUE

0x17c - LSTIMER3_VALUE

source

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

0x180 -

source

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

0x184 -

source

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

0x188 -

source

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

0x18c -

source

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

0x190 -

source

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

0x1fc -

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.