pub struct Output<P> { /* private fields */ }
Expand description
An output GPIO.
Implementations§
source§impl<P> Output<P>
impl<P> Output<P>
source§impl Output<()>
impl Output<()>
sourcepub fn without_pin<const N: u8>(port: &mut Port<N>, offset: u32) -> Self
pub fn without_pin<const N: u8>(port: &mut Port<N>, offset: u32) -> Self
Allocate an output GPIO without a pin.
Prefer using Port::output
to create a GPIO ouptut with a
pin resource. That method ensures that pin resources are managed throughout
your program, and that the pin is configured to operate as a GPIO output.
You may use this method to allocate duplicate Output
object for the same
physical GPIO output. This is considered safe, since the Output
API is
reentrant.
If you use this constructor, you’re responsible for configuring the IOMUX multiplexer register.
Trait Implementations§
impl<P: Send> Send for Output<P>
Auto Trait Implementations§
impl<P> !RefUnwindSafe for Output<P>
impl<P> !Sync for Output<P>
impl<P> Unpin for Output<P>where
P: Unpin,
impl<P> !UnwindSafe for Output<P>
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