pub struct GpioPin {
pub port: u32,
pub pin: u32,
}Expand description
A GPIO pin identified by port and pin number.
Bundles (port, pin) into a single type to prevent accidental argument
swaps at the call site.
Fields§
§port: u32Zero-based port index.
pin: u32Zero-based pin index within the port.
Implementations§
Trait Implementations§
impl Copy for GpioPin
impl Eq for GpioPin
impl StructuralPartialEq for GpioPin
Auto Trait Implementations§
impl Freeze for GpioPin
impl RefUnwindSafe for GpioPin
impl Send for GpioPin
impl Sync for GpioPin
impl Unpin for GpioPin
impl UnsafeUnpin for GpioPin
impl UnwindSafe for GpioPin
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