pub struct Pin<'a, B, R, M, A>{ /* private fields */ }
Expand description
Individual GPIO pin
Implementations§
source§impl<'a, B, R> Pin<'a, B, R, Input, RefreshMode>
impl<'a, B, R> Pin<'a, B, R, Input, RefreshMode>
pub fn refreshable(expander: &'a R, bank: Bank, id: PinID) -> Self
Trait Implementations§
source§impl<'a, B, M, R> IoPin<Pin<'a, B, R, Input, RefreshMode>, Pin<'a, B, R, Output, RefreshMode>> for Pin<'a, B, R, M, RefreshMode>
impl<'a, B, M, R> IoPin<Pin<'a, B, R, Input, RefreshMode>, Pin<'a, B, R, Output, RefreshMode>> for Pin<'a, B, R, M, RefreshMode>
source§fn into_input_pin(
self
) -> Result<Pin<'a, B, R, Input, RefreshMode>, Self::Error>
fn into_input_pin( self ) -> Result<Pin<'a, B, R, Input, RefreshMode>, Self::Error>
Tries to convert this pin to input mode. Read more
source§fn into_output_pin(
self,
state: PinState
) -> Result<Pin<'a, B, R, Output, RefreshMode>, Self::Error>
fn into_output_pin( self, state: PinState ) -> Result<Pin<'a, B, R, Output, RefreshMode>, Self::Error>
Tries to convert this pin to output mode with the given initial state. Read more
source§impl<'a, B, M, R> IoPin<Pin<'a, B, R, Input, RegularAccessMode>, Pin<'a, B, R, Output, RegularAccessMode>> for Pin<'a, B, R, M, RegularAccessMode>
impl<'a, B, M, R> IoPin<Pin<'a, B, R, Input, RegularAccessMode>, Pin<'a, B, R, Output, RegularAccessMode>> for Pin<'a, B, R, M, RegularAccessMode>
source§fn into_input_pin(
self
) -> Result<Pin<'a, B, R, Input, RegularAccessMode>, Self::Error>
fn into_input_pin( self ) -> Result<Pin<'a, B, R, Input, RegularAccessMode>, Self::Error>
Tries to convert this pin to input mode. Read more
source§fn into_output_pin(
self,
state: PinState
) -> Result<Pin<'a, B, R, Output, RegularAccessMode>, Self::Error>
fn into_output_pin( self, state: PinState ) -> Result<Pin<'a, B, R, Output, RegularAccessMode>, Self::Error>
Tries to convert this pin to output mode with the given initial state. Read more
source§impl<'a, B, R> OutputPin for Pin<'a, B, R, Output, RefreshMode>
impl<'a, B, R> OutputPin for Pin<'a, B, R, Output, RefreshMode>
§type Error = Infallible
type Error = Infallible
Error type
source§impl<'a, B, R> RefreshableInputPin for Pin<'a, B, R, Input, RefreshMode>
impl<'a, B, R> RefreshableInputPin for Pin<'a, B, R, Input, RefreshMode>
source§fn refresh_bank(&self) -> Result<(), Self::Error>
fn refresh_bank(&self) -> Result<(), Self::Error>
Refreshes the input state of all pins of the same bank
source§fn refresh_all(&self) -> Result<(), Self::Error>
fn refresh_all(&self) -> Result<(), Self::Error>
Refreshes the input state of all pins (on all banks)
type Error = RefreshInputError<B>
source§impl<'a, B, R> RefreshableOutputPin for Pin<'a, B, R, Output, RefreshMode>
impl<'a, B, R> RefreshableOutputPin for Pin<'a, B, R, Output, RefreshMode>
source§impl<'a, B, R> StatefulOutputPin for Pin<'a, B, R, Output, RefreshMode>
impl<'a, B, R> StatefulOutputPin for Pin<'a, B, R, Output, RefreshMode>
source§impl<'a, B, R> StatefulOutputPin for Pin<'a, B, R, Output, RegularAccessMode>
impl<'a, B, R> StatefulOutputPin for Pin<'a, B, R, Output, RegularAccessMode>
impl<'a, B, R> Default for Pin<'a, B, R, Output, RefreshMode>
impl<'a, B, R> Default for Pin<'a, B, R, Output, RegularAccessMode>
Auto Trait Implementations§
impl<'a, B, R, M, A> RefUnwindSafe for Pin<'a, B, R, M, A>
impl<'a, B, R, M, A> Send for Pin<'a, B, R, M, A>
impl<'a, B, R, M, A> Sync for Pin<'a, B, R, M, A>
impl<'a, B, R, M, A> Unpin for Pin<'a, B, R, M, A>
impl<'a, B, R, M, A> UnwindSafe for Pin<'a, B, R, M, A>
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