RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn clk_cfg(&self) -> &CLK_CFG

0x00 - PWM clock prescaler register.

Source

pub const fn timer(&self, n: usize) -> &TIMER

0x04..0x34 - Cluster TIMER%s, containing TIMER?_CFG0, TIMER?_CFG1, TIMER?_SYNC, TIMER?_STATUS

Source

pub fn timer_iter(&self) -> impl Iterator<Item = &TIMER>

Iterator for array of: 0x04..0x34 - Cluster TIMER%s, containing TIMER?_CFG0, TIMER?_CFG1, TIMER?_SYNC, TIMER?_STATUS

Source

pub const fn timer_synci_cfg(&self) -> &TIMER_SYNCI_CFG

0x34 - Synchronization input selection register for PWM timers.

Source

pub const fn operator_timersel(&self) -> &OPERATOR_TIMERSEL

0x38 - PWM operator’s timer select register

Source

pub const fn ch(&self, n: usize) -> &CH

0x3c..0xe4 - Cluster CH%s, containing GEN?_STMP_CFG, GEN?_TSTMP_A, GEN?_TSTMP_B, GEN?_CFG0, GEN?_FORCE, GEN?_A, GEN?_B, DT?_CFG, DT?_FED_CFG, DT?_RED_CFG, CARRIER?_CFG, FH?_CFG0, FH?_CFG1, FH?_STATUS

Source

pub fn ch_iter(&self) -> impl Iterator<Item = &CH>

Iterator for array of: 0x3c..0xe4 - Cluster CH%s, containing GEN?_STMP_CFG, GEN?_TSTMP_A, GEN?_TSTMP_B, GEN?_CFG0, GEN?_FORCE, GEN?_A, GEN?_B, DT?_CFG, DT?_FED_CFG, DT?_RED_CFG, CARRIER?_CFG, FH?_CFG0, FH?_CFG1, FH?_STATUS

Source

pub const fn fault_detect(&self) -> &FAULT_DETECT

0xe4 - Fault detection configuration and status register

Source

pub const fn cap_timer_cfg(&self) -> &CAP_TIMER_CFG

0xe8 - Capture timer configuration register

Source

pub const fn cap_timer_phase(&self) -> &CAP_TIMER_PHASE

0xec - Capture timer sync phase register

Source

pub const fn cap_ch_cfg(&self, n: usize) -> &CAP_CH_CFG

0xf0..0xfc - Capture channel %s configuration register

Source

pub fn cap_ch_cfg_iter(&self) -> impl Iterator<Item = &CAP_CH_CFG>

Iterator for array of: 0xf0..0xfc - Capture channel %s configuration register

Source

pub const fn cap_ch0_cfg(&self) -> &CAP_CH_CFG

0xf0 - Capture channel 0 configuration register

Source

pub const fn cap_ch1_cfg(&self) -> &CAP_CH_CFG

0xf4 - Capture channel 1 configuration register

Source

pub const fn cap_ch2_cfg(&self) -> &CAP_CH_CFG

0xf8 - Capture channel 2 configuration register

Source

pub const fn cap_ch(&self, n: usize) -> &CAP_CH

0xfc..0x108 - CAP%s capture value register

Source

pub fn cap_ch_iter(&self) -> impl Iterator<Item = &CAP_CH>

Iterator for array of: 0xfc..0x108 - CAP%s capture value register

Source

pub const fn cap_status(&self) -> &CAP_STATUS

0x108 - Last capture trigger edge information register

Source

pub const fn update_cfg(&self) -> &UPDATE_CFG

0x10c - Generator Update configuration register

Source

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

0x110 - Interrupt enable register

Source

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

0x114 - Interrupt raw status register

Source

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

0x118 - Interrupt masked status register

Source

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

0x11c - Interrupt clear register

Source

pub const fn evt_en(&self) -> &EVT_EN

0x120 - Event enable register

Source

pub const fn task_en(&self) -> &TASK_EN

0x124 - Task enable register

Source

pub const fn evt_en2(&self) -> &EVT_EN2

0x128 - Event enable register2

Source

pub const fn op_tstmp_e1(&self, n: usize) -> &OP_TSTMP_E1

0x12c..0x138 - Generator%s timer stamp E1 value register

Source

pub fn op_tstmp_e1_iter(&self) -> impl Iterator<Item = &OP_TSTMP_E1>

Iterator for array of: 0x12c..0x138 - Generator%s timer stamp E1 value register

Source

pub const fn op0_tstmp_e1(&self) -> &OP_TSTMP_E1

0x12c - Generator0 timer stamp E1 value register

Source

pub const fn op1_tstmp_e1(&self) -> &OP_TSTMP_E1

0x134 - Generator1 timer stamp E1 value register

Source

pub const fn op2_tstmp_e1(&self) -> &OP_TSTMP_E1

0x13c - Generator2 timer stamp E1 value register

Source

pub const fn op_tstmp_e2(&self, n: usize) -> &OP_TSTMP_E2

0x130..0x13c - Generator%s timer stamp E2 value register

Source

pub fn op_tstmp_e2_iter(&self) -> impl Iterator<Item = &OP_TSTMP_E2>

Iterator for array of: 0x130..0x13c - Generator%s timer stamp E2 value register

Source

pub const fn op0_tstmp_e2(&self) -> &OP_TSTMP_E2

0x130 - Generator0 timer stamp E2 value register

Source

pub const fn op1_tstmp_e2(&self) -> &OP_TSTMP_E2

0x138 - Generator1 timer stamp E2 value register

Source

pub const fn op2_tstmp_e2(&self) -> &OP_TSTMP_E2

0x140 - Generator2 timer stamp E2 value register

Source

pub const fn clk(&self) -> &CLK

0x144 - Global configuration register

Source

pub const fn version(&self) -> &VERSION

0x148 - Version register.

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

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.