pub struct Gpio { /* private fields */ }Expand description
General Purpose I/O (GPIO).
Implementations§
Source§impl Gpio
impl Gpio
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn mpin(self, n: usize) -> Reg<Mpin, RW>
pub const fn mpin(self, n: usize) -> Reg<Mpin, RW>
Masked port register for all port GPIO pins.
Trait Implementations§
impl Copy for Gpio
impl Eq for Gpio
impl Send for Gpio
impl StructuralPartialEq for Gpio
impl Sync for Gpio
Auto Trait Implementations§
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