nxp-pac

Crates

git

Versions

mimxrt1064

Flavors

Sctrl0

Struct Sctrl0 

Source
#[repr(transparent)]
pub struct Sctrl0(pub u16);
Expand description

Timer Channel Status and Control Register.

Tuple Fields§

§0: u16

Implementations§

Source§

impl Sctrl0

Source

pub const fn oen(&self) -> Sctrl0Oen

Output Enable.

Source

pub const fn set_oen(&mut self, val: Sctrl0Oen)

Output Enable.

Source

pub const fn ops(&self) -> Sctrl0Ops

Output Polarity Select.

Source

pub const fn set_ops(&mut self, val: Sctrl0Ops)

Output Polarity Select.

Source

pub const fn force(&self) -> bool

Force OFLAG Output.

Source

pub const fn set_force(&mut self, val: bool)

Force OFLAG Output.

Source

pub const fn val(&self) -> bool

Forced OFLAG Value.

Source

pub const fn set_val(&mut self, val: bool)

Forced OFLAG Value.

Source

pub const fn eeof(&self) -> bool

Enable External OFLAG Force.

Source

pub const fn set_eeof(&mut self, val: bool)

Enable External OFLAG Force.

Source

pub const fn mstr(&self) -> bool

Master Mode.

Source

pub const fn set_mstr(&mut self, val: bool)

Master Mode.

Source

pub const fn capture_mode(&self) -> Sctrl0CaptureMode

Input Capture Mode.

Source

pub const fn set_capture_mode(&mut self, val: Sctrl0CaptureMode)

Input Capture Mode.

Source

pub const fn input(&self) -> bool

External Input Signal.

Source

pub const fn set_input(&mut self, val: bool)

External Input Signal.

Source

pub const fn ips(&self) -> bool

Input Polarity Select.

Source

pub const fn set_ips(&mut self, val: bool)

Input Polarity Select.

Source

pub const fn iefie(&self) -> bool

Input Edge Flag Interrupt Enable.

Source

pub const fn set_iefie(&mut self, val: bool)

Input Edge Flag Interrupt Enable.

Source

pub const fn ief(&self) -> bool

Input Edge Flag.

Source

pub const fn set_ief(&mut self, val: bool)

Input Edge Flag.

Source

pub const fn tofie(&self) -> bool

Timer Overflow Flag Interrupt Enable.

Source

pub const fn set_tofie(&mut self, val: bool)

Timer Overflow Flag Interrupt Enable.

Source

pub const fn tof(&self) -> bool

Timer Overflow Flag.

Source

pub const fn set_tof(&mut self, val: bool)

Timer Overflow Flag.

Source

pub const fn tcfie(&self) -> bool

Timer Compare Flag Interrupt Enable.

Source

pub const fn set_tcfie(&mut self, val: bool)

Timer Compare Flag Interrupt Enable.

Source

pub const fn tcf(&self) -> bool

Timer Compare Flag.

Source

pub const fn set_tcf(&mut self, val: bool)

Timer Compare Flag.

Trait Implementations§

Source§

impl Clone for Sctrl0

Source§

fn clone(&self) -> Sctrl0

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Sctrl0

Source§

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

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

impl Default for Sctrl0

Source§

fn default() -> Sctrl0

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Sctrl0

Source§

fn eq(&self, other: &Sctrl0) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Sctrl0

Source§

impl Eq for Sctrl0

Source§

impl StructuralPartialEq for Sctrl0

Auto Trait Implementations§

§

impl Freeze for Sctrl0

§

impl RefUnwindSafe for Sctrl0

§

impl Send for Sctrl0

§

impl Sync for Sctrl0

§

impl Unpin for Sctrl0

§

impl UnwindSafe for Sctrl0

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.