nxp-pac

Crates

git

Versions

lpc55s69_cm33_core1

Flavors

Pio

Struct Pio 

Source
#[repr(transparent)]
pub struct Pio(pub u32);
Expand description

Digital I/O control for port 0 pins PIO0_13

Tuple Fields§

§0: u32

Implementations§

Source§

impl Pio

Source

pub const fn func(&self) -> PioFunc

Selects pin function.

Source

pub const fn set_func(&mut self, val: PioFunc)

Selects pin function.

Source

pub const fn mode(&self) -> PioMode

Selects function mode (on-chip pull-up/pull-down resistor control).

Source

pub const fn set_mode(&mut self, val: PioMode)

Selects function mode (on-chip pull-up/pull-down resistor control).

Source

pub const fn slew(&self) -> PioSlew

Driver slew rate.

Source

pub const fn set_slew(&mut self, val: PioSlew)

Driver slew rate.

Source

pub const fn invert(&self) -> bool

Input polarity.

Source

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

Input polarity.

Source

pub const fn digimode(&self) -> PioDigimode

Select Digital mode.

Source

pub const fn set_digimode(&mut self, val: PioDigimode)

Select Digital mode.

Source

pub const fn od(&self) -> PioOd

Controls open-drain mode in standard GPIO mode (EGP = 1). This bit has no effect in I2C mode (EGP=0).

Source

pub const fn set_od(&mut self, val: PioOd)

Controls open-drain mode in standard GPIO mode (EGP = 1). This bit has no effect in I2C mode (EGP=0).

Source

pub const fn asw(&self) -> PioAsw

Analog switch input control.

Source

pub const fn set_asw(&mut self, val: PioAsw)

Analog switch input control.

Source

pub const fn ssel(&self) -> PioSsel

Supply Selection bit.

Source

pub const fn set_ssel(&mut self, val: PioSsel)

Supply Selection bit.

Source

pub const fn filteroff(&self) -> PioFilteroff

Controls input glitch filter.

Source

pub const fn set_filteroff(&mut self, val: PioFilteroff)

Controls input glitch filter.

Source

pub const fn ecs(&self) -> bool

Pull-up current source enable in I2C mode.

Source

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

Pull-up current source enable in I2C mode.

Source

pub const fn egp(&self) -> PioEgp

Switch between GPIO mode and I2C mode.

Source

pub const fn set_egp(&mut self, val: PioEgp)

Switch between GPIO mode and I2C mode.

Source

pub const fn i2cfilter(&self) -> PioI2cfilter

Configures I2C features for standard mode, fast mode, and Fast Mode Plus operation and High-Speed mode operation.

Source

pub const fn set_i2cfilter(&mut self, val: PioI2cfilter)

Configures I2C features for standard mode, fast mode, and Fast Mode Plus operation and High-Speed mode operation.

Trait Implementations§

Source§

impl Clone for Pio

Source§

fn clone(&self) -> Pio

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 Pio

Source§

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

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

impl Default for Pio

Source§

fn default() -> Pio

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

impl PartialEq for Pio

Source§

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

Source§

impl Eq for Pio

Source§

impl StructuralPartialEq for Pio

Auto Trait Implementations§

§

impl Freeze for Pio

§

impl RefUnwindSafe for Pio

§

impl Send for Pio

§

impl Sync for Pio

§

impl Unpin for Pio

§

impl UnwindSafe for Pio

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.