#[repr(transparent)]pub struct Mask0(pub u32);Expand description
Mask register for all port GPIO pins
Tuple Fields§
§0: u32Implementations§
Source§impl Mask0
impl Mask0
Sourcepub const fn maskp(&self) -> u32
pub const fn maskp(&self) -> u32
Controls which bits corresponding to PIOm_n are active in the MPORT register (bit 0 = PIOn_0, bit 1 = PIOn_1, etc.). Supported pins depends on the specific device and package.0 = Read MPORT: pin state; write MPORT: load output bit. 1 = Read MPORT: 0; write MPORT: output bit not affected.
Sourcepub const fn set_maskp(&mut self, val: u32)
pub const fn set_maskp(&mut self, val: u32)
Controls which bits corresponding to PIOm_n are active in the MPORT register (bit 0 = PIOn_0, bit 1 = PIOn_1, etc.). Supported pins depends on the specific device and package.0 = Read MPORT: pin state; write MPORT: load output bit. 1 = Read MPORT: 0; write MPORT: output bit not affected.
Trait Implementations§
impl Copy for Mask0
impl Eq for Mask0
impl StructuralPartialEq for Mask0
Auto Trait Implementations§
impl Freeze for Mask0
impl RefUnwindSafe for Mask0
impl Send for Mask0
impl Sync for Mask0
impl Unpin for Mask0
impl UnwindSafe for Mask0
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