pub struct InputPin<'memory>(pub UnsafePointerPin<'memory>);
Expand description
Abstraction over GPIO pin set to input (reading) direction.
This is obtainable by using input_pin
method of Device
struct.
You can have multiple leases of input pin in your program as long as you don’t keep an output pin lease for the same PinId.
In such case InputPin
abstraction can’t be instantiated.
Tuple Fields§
§0: UnsafePointerPin<'memory>
Implementations§
Source§impl<'memory> InputPin<'memory>
impl<'memory> InputPin<'memory>
pub fn into_output(self) -> OdroidResult<OutputPin<'memory>>
pub fn get_value(&self) -> Value
Trait Implementations§
Auto Trait Implementations§
impl<'memory> Freeze for InputPin<'memory>
impl<'memory> RefUnwindSafe for InputPin<'memory>
impl<'memory> Send for InputPin<'memory>
impl<'memory> Sync for InputPin<'memory>
impl<'memory> Unpin for InputPin<'memory>
impl<'memory> UnwindSafe for InputPin<'memory>
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