Skip to main content

ShrtimerCommon

Struct ShrtimerCommon 

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

SHRTIMER Common registers

Implementations§

Source§

impl ShrtimerCommon

Source

pub const PTR: *const RegisterBlock

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

Source

pub fn ctl0(&self) -> &Ctl0

0x00 - SHRTIMER control register 0

Source

pub fn ctl1(&self) -> &Ctl1

0x04 - SHRTIMER control register 1

Source

pub fn intf(&self) -> &Intf

0x08 - SHRTIMER interrupt flag register

Source

pub fn intc(&self) -> &Intc

0x0c - SHRTIMER interrupt flag clear register

Source

pub fn inten(&self) -> &Inten

0x10 - SHRTIMER interrupt enable register

Source

pub fn chouten(&self) -> &Chouten

0x14 - SHRTIMER channel output enable register

Source

pub fn choutdis(&self) -> &Choutdis

0x18 - SHRTIMER channel output disable register

Source

pub fn choutdisf(&self) -> &Choutdisf

0x1c - SHRTIMER channel output disable flag register

Source

pub fn bmctl(&self) -> &Bmctl

0x20 - SHRTIMER bunch mode control register

Source

pub fn bmstrg(&self) -> &Bmstrg

0x24 - SHRTIMER bunch mode start trigger register

Source

pub fn bmcmpv(&self) -> &Bmcmpv

0x28 - SHRTIMER bunch mode compare value register

Source

pub fn bmcar(&self) -> &Bmcar

0x2c - SHRTIMER bunch mode counter auto reload register

Source

pub fn exevcfg0(&self) -> &Exevcfg0

0x30 - SHRTIMER external event configuration register 0

Source

pub fn exevcfg1(&self) -> &Exevcfg1

0x34 - SHRTIMER external event configuration register 1

Source

pub fn exevdfctl(&self) -> &Exevdfctl

0x38 - SHRTIMER external event digital filter control register

Source

pub fn adctrigs0(&self) -> &Adctrigs0

0x3c - SHRTIMER trigger source 0 to ADC register

Source

pub fn adctrigs1(&self) -> &Adctrigs1

0x40 - SHRTIMER trigger source 1 to ADC register

Source

pub fn adctrigs2(&self) -> &Adctrigs2

0x44 - SHRTIMER trigger source 2 to ADC register

Source

pub fn adctrigs3(&self) -> &Adctrigs3

0x48 - SHRTIMER trigger source 3 to ADC register

Source

pub fn dllcctl(&self) -> &Dllcctl

0x4c - SHRTIMER DLL calibration control register

Source

pub fn fltincfg0(&self) -> &Fltincfg0

0x50 - SHRTIMER fault input configuration register 0

Source

pub fn fltincfg1(&self) -> &Fltincfg1

0x54 - SHRTIMER fault input configuration register 1

Source

pub fn dmaupmtr(&self) -> &Dmaupmtr

0x58 - SHRTIMER DMA update Master_TIMER register

Source

pub fn dmaupst0r(&self) -> &Dmaupst0r

0x5c - SHRTIMER DMA update Slave_TIMER0 register

Source

pub fn dmaupst1r(&self) -> &Dmaupst1r

0x60 - SHRTIMER DMA update Slave_TIMER1 register

Source

pub fn dmaupst2r(&self) -> &Dmaupst2r

0x64 - SHRTIMER DMA update Slave_TIMER2 register

Source

pub fn dmaupst3r(&self) -> &Dmaupst3r

0x68 - SHRTIMER DMA update Slave_TIMER3 register

Source

pub fn dmaupst4r(&self) -> &Dmaupst4r

0x6c - SHRTIMER DMA update Slave_TIMER4 register

Source

pub fn dmatb(&self) -> &Dmatb

0x70 - SHRTIMER DMA transfer buffer register

Trait Implementations§

Source§

impl Debug for ShrtimerCommon

Source§

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

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

impl Deref for ShrtimerCommon

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for ShrtimerCommon

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<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 = !

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.