pub enum Port {
A = 0,
B = 1,
}Expand description
GPIO port enumeration.
Variants§
Implementations§
Source§impl Port
impl Port
pub const fn max_offset(&self) -> usize
Sourcepub unsafe fn steal_gpio(&self) -> MmioGpio<'static>
pub unsafe fn steal_gpio(&self) -> MmioGpio<'static>
Unsafely steal the GPIO peripheral block for the given port.
§Safety
Circumvents ownership and safety guarantees by the HAL.
Trait Implementations§
impl Copy for Port
impl Eq for Port
impl StructuralPartialEq for Port
Auto Trait Implementations§
impl Freeze for Port
impl RefUnwindSafe for Port
impl Send for Port
impl Sync for Port
impl Unpin for Port
impl UnwindSafe for Port
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