nxp-pac

Crates

git

Versions

mcxa577

Flavors

Prescale

Enum Prescale 

Source
#[repr(u8)]
pub enum Prescale {
Show 16 variants PRESCALE0000 = 0, PRESCALE0001 = 1, PRESCALE0010 = 2, PRESCALE0011 = 3, PRESCALE0100 = 4, PRESCALE0101 = 5, PRESCALE0110 = 6, PRESCALE0111 = 7, PRESCALE1000 = 8, PRESCALE1001 = 9, PRESCALE1010 = 10, PRESCALE1011 = 11, PRESCALE1100 = 12, PRESCALE1101 = 13, PRESCALE1110 = 14, PRESCALE1111 = 15,
}

Variants§

§

PRESCALE0000 = 0

Prescaler divides the prescaler clock by 2; glitch filter does not support this configuration

§

PRESCALE0001 = 1

Prescaler divides the prescaler clock by 4; glitch filter recognizes change on input pin after two rising clock edges

§

PRESCALE0010 = 2

Prescaler divides the prescaler clock by 8; glitch filter recognizes change on input pin after four rising clock edges

§

PRESCALE0011 = 3

Prescaler divides the prescaler clock by 16; glitch filter recognizes change on input pin after eight rising clock edges

§

PRESCALE0100 = 4

Prescaler divides the prescaler clock by 32; glitch filter recognizes change on input pin after 16 rising clock edges

§

PRESCALE0101 = 5

Prescaler divides the prescaler clock by 64; glitch filter recognizes change on input pin after 32 rising clock edges

§

PRESCALE0110 = 6

Prescaler divides the prescaler clock by 128; glitch filter recognizes change on input pin after 64 rising clock edges

§

PRESCALE0111 = 7

Prescaler divides the prescaler clock by 256; glitch filter recognizes change on input pin after 128 rising clock edges

§

PRESCALE1000 = 8

Prescaler divides the prescaler clock by 512; glitch filter recognizes change on input pin after 256 rising clock edges

§

PRESCALE1001 = 9

Prescaler divides the prescaler clock by 1024; glitch filter recognizes change on input pin after 512 rising clock edges

§

PRESCALE1010 = 10

Prescaler divides the prescaler clock by 2048; glitch filter recognizes change on input pin after 1024 rising clock edges

§

PRESCALE1011 = 11

Prescaler divides the prescaler clock by 4096; glitch filter recognizes change on input pin after 2048 rising clock edges

§

PRESCALE1100 = 12

Prescaler divides the prescaler clock by 8192; glitch filter recognizes change on input pin after 4096 rising clock edges

§

PRESCALE1101 = 13

Prescaler divides the prescaler clock by 16,384; glitch filter recognizes change on input pin after 8192 rising clock edges

§

PRESCALE1110 = 14

Prescaler divides the prescaler clock by 32,768; glitch filter recognizes change on input pin after 16,384 rising clock edges

§

PRESCALE1111 = 15

Prescaler divides the prescaler clock by 65,536; glitch filter recognizes change on input pin after 32,768 rising clock edges

Implementations§

Source§

impl Prescale

Source

pub const fn from_bits(val: u8) -> Prescale

Source

pub const fn to_bits(self) -> u8

Trait Implementations§

Source§

impl Clone for Prescale

Source§

fn clone(&self) -> Prescale

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 Prescale

Source§

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

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

impl From<Prescale> for u8

Source§

fn from(val: Prescale) -> u8

Converts to this type from the input type.
Source§

impl From<u8> for Prescale

Source§

fn from(val: u8) -> Prescale

Converts to this type from the input type.
Source§

impl Ord for Prescale

Source§

fn cmp(&self, other: &Prescale) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Prescale

Source§

fn eq(&self, other: &Prescale) -> 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 PartialOrd for Prescale

Source§

fn partial_cmp(&self, other: &Prescale) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for Prescale

Source§

impl Eq for Prescale

Source§

impl StructuralPartialEq for Prescale

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