Struct mcxn947_pac::SCT0

source ·
pub struct SCT0 { /* private fields */ }
Expand description

SCT

Implementations§

source§

impl SCT0

source

pub const PTR: *const RegisterBlock = {0x40091000 as *const sct0::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 config(&self) -> &CONFIG

0x00 - SCT Configuration

source

pub fn ctrl(&self) -> &CTRL

0x04 - SCT Control

source

pub fn limit(&self) -> &LIMIT

0x08 - SCT Limit Event Select

source

pub fn halt(&self) -> &HALT

0x0c - Halt Event Select

source

pub fn stop(&self) -> &STOP

0x10 - Stop Event Select

source

pub fn start(&self) -> &START

0x14 - Start Event Select

source

pub fn dither(&self) -> &DITHER

0x18 - Dither Condition

source

pub fn count(&self) -> &COUNT

0x40 - Counter Value

source

pub fn state(&self) -> &STATE

0x44 - State Variable

source

pub fn input(&self) -> &INPUT

0x48 - Input State

source

pub fn regmode(&self) -> &REGMODE

0x4c - Match and Capture Register Mode

source

pub fn output(&self) -> &OUTPUT

0x50 - Output State

source

pub fn outputdirctrl(&self) -> &OUTPUTDIRCTRL

0x54 - Output Counter Direction Control

source

pub fn res(&self) -> &RES

0x58 - Output Conflict Resolution

source

pub fn dmareq0(&self) -> &DMAREQ0

0x5c - DMA Request 0

source

pub fn dmareq1(&self) -> &DMAREQ1

0x60 - DMA Request 1

source

pub fn even(&self) -> &EVEN

0xf0 - Event Interrupt Enable

source

pub fn evflag(&self) -> &EVFLAG

0xf4 - Event Flag

source

pub fn conen(&self) -> &CONEN

0xf8 - Conflict Interrupt Enable

source

pub fn conflag(&self) -> &CONFLAG

0xfc - Conflict Flag

source

pub fn cap_match_match(&self, n: usize) -> &CAP_MATCH_MATCH

0x100..0x140 - Match Value

source

pub fn cap_match_match_iter(&self) -> impl Iterator<Item = &CAP_MATCH_MATCH>

Iterator for array of: 0x100..0x140 - Match Value

source

pub fn cap_match_cap(&self, n: usize) -> &CAP_MATCH_CAP

0x100..0x140 - Capture Value

source

pub fn cap_match_cap_iter(&self) -> impl Iterator<Item = &CAP_MATCH_CAP>

Iterator for array of: 0x100..0x140 - Capture Value

source

pub fn fracmat(&self, n: usize) -> &FRACMAT

0x140..0x158 - Fractional Match

source

pub fn fracmat_iter(&self) -> impl Iterator<Item = &FRACMAT>

Iterator for array of: 0x140..0x158 - Fractional Match

source

pub fn capctrl_matchrel_matchrel(&self, n: usize) -> &CAPCTRL_MATCHREL_MATCHREL

0x200..0x240 - Match Reload Value

source

pub fn capctrl_matchrel_matchrel_iter( &self ) -> impl Iterator<Item = &CAPCTRL_MATCHREL_MATCHREL>

Iterator for array of: 0x200..0x240 - Match Reload Value

source

pub fn capctrl_matchrel_capctrl(&self, n: usize) -> &CAPCTRL_MATCHREL_CAPCTRL

0x200..0x240 - Capture Control

source

pub fn capctrl_matchrel_capctrl_iter( &self ) -> impl Iterator<Item = &CAPCTRL_MATCHREL_CAPCTRL>

Iterator for array of: 0x200..0x240 - Capture Control

source

pub fn fracmatrel(&self, n: usize) -> &FRACMATREL

0x240..0x258 - Fractional Match Reload

source

pub fn fracmatrel_iter(&self) -> impl Iterator<Item = &FRACMATREL>

Iterator for array of: 0x240..0x258 - Fractional Match Reload

source

pub fn event(&self, n: usize) -> &EVENT

0x300..0x380 - no description available

source

pub fn event_iter(&self) -> impl Iterator<Item = &EVENT>

Iterator for array of: 0x300..0x380 - no description available

source

pub fn out(&self, n: usize) -> &OUT

0x500..0x550 - no description available

source

pub fn out_iter(&self) -> impl Iterator<Item = &OUT>

Iterator for array of: 0x500..0x550 - no description available

Trait Implementations§

source§

impl Debug for SCT0

source§

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

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

impl Deref for SCT0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for SCT0

Auto Trait Implementations§

§

impl RefUnwindSafe for SCT0

§

impl !Sync for SCT0

§

impl Unpin for SCT0

§

impl UnwindSafe for SCT0

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.