#[repr(transparent)]pub struct PortPol(pub u32);Expand description
GPIO grouped interrupt port 0 polarity register
Tuple Fields§
§0: u32Implementations§
Source§impl PortPol
impl PortPol
Sourcepub const fn pol(&self) -> u32
pub const fn pol(&self) -> u32
Configure pin polarity of port m pins for group interrupt. Bit n corresponds to pin PIOm_n of port m. 0 = the pin is active LOW. If the level on this pin is LOW, the pin contributes to the group interrupt. 1 = the pin is active HIGH. If the level on this pin is HIGH, the pin contributes to the group interrupt.
Sourcepub const fn set_pol(&mut self, val: u32)
pub const fn set_pol(&mut self, val: u32)
Configure pin polarity of port m pins for group interrupt. Bit n corresponds to pin PIOm_n of port m. 0 = the pin is active LOW. If the level on this pin is LOW, the pin contributes to the group interrupt. 1 = the pin is active HIGH. If the level on this pin is HIGH, the pin contributes to the group interrupt.
Trait Implementations§
impl Copy for PortPol
impl Eq for PortPol
impl StructuralPartialEq for PortPol
Auto Trait Implementations§
impl Freeze for PortPol
impl RefUnwindSafe for PortPol
impl Send for PortPol
impl Sync for PortPol
impl Unpin for PortPol
impl UnwindSafe for PortPol
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