#[repr(transparent)]pub struct GpioStatus(pub u32);
Expand description
GPIO status
Tuple Fields§
§0: u32
Implementations§
Source§impl GpioStatus
impl GpioStatus
Sourcepub const fn outfromperi(&self) -> bool
pub const fn outfromperi(&self) -> bool
output signal from selected peripheral, before register override is applied
Sourcepub fn set_outfromperi(&mut self, val: bool)
pub fn set_outfromperi(&mut self, val: bool)
output signal from selected peripheral, before register override is applied
Sourcepub fn set_outtopad(&mut self, val: bool)
pub fn set_outtopad(&mut self, val: bool)
output signal to pad after register override is applied
Sourcepub const fn oefromperi(&self) -> bool
pub const fn oefromperi(&self) -> bool
output enable from selected peripheral, before register override is applied
Sourcepub fn set_oefromperi(&mut self, val: bool)
pub fn set_oefromperi(&mut self, val: bool)
output enable from selected peripheral, before register override is applied
Sourcepub fn set_oetopad(&mut self, val: bool)
pub fn set_oetopad(&mut self, val: bool)
output enable to pad after register override is applied
Sourcepub fn set_infrompad(&mut self, val: bool)
pub fn set_infrompad(&mut self, val: bool)
input signal from pad, before override is applied
Sourcepub fn set_intoperi(&mut self, val: bool)
pub fn set_intoperi(&mut self, val: bool)
input signal to peripheral, after override is applied
Sourcepub const fn irqfrompad(&self) -> bool
pub const fn irqfrompad(&self) -> bool
interrupt from pad before override is applied
Sourcepub fn set_irqfrompad(&mut self, val: bool)
pub fn set_irqfrompad(&mut self, val: bool)
interrupt from pad before override is applied
Sourcepub fn set_irqtoproc(&mut self, val: bool)
pub fn set_irqtoproc(&mut self, val: bool)
interrupt to processors, after override is applied
Trait Implementations§
Source§impl Clone for GpioStatus
impl Clone for GpioStatus
Source§fn clone(&self) -> GpioStatus
fn clone(&self) -> GpioStatus
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GpioStatus
impl Debug for GpioStatus
Source§impl Default for GpioStatus
impl Default for GpioStatus
Source§fn default() -> GpioStatus
fn default() -> GpioStatus
Returns the “default value” for a type. Read more
Source§impl PartialEq for GpioStatus
impl PartialEq for GpioStatus
impl Copy for GpioStatus
impl Eq for GpioStatus
impl StructuralPartialEq for GpioStatus
Auto Trait Implementations§
impl Freeze for GpioStatus
impl RefUnwindSafe for GpioStatus
impl Send for GpioStatus
impl Sync for GpioStatus
impl Unpin for GpioStatus
impl UnwindSafe for GpioStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more