[−][src]Struct lpc81x_hal::pins::pin::Pin9
Methods
impl<MODE: PinMode> Pin9<MODE>
[src]
pub fn digital_input(&self) -> Pin9<DigitalInput>
[src]
Obtain the input portion of the pin.
Input functions can coexist on the same pin, so the input portion can be freely copied and shared even though the other portions are subject to ownership and move semantics.
The result of this method implements the embedded-hal digital
v2 InputPin
trait.
impl Pin9<Unassigned>
[src]
pub fn to_digital_output(self, high: bool) -> Pin9<DigitalOutput>
[src]
Configure the pin's output portion for general-purpose digital output.
The result of this method implements the embedded-hal digital
v2 OutputPin
trait.
If high
is set then the output will be driving the line high
once activated. Otherwise, it will be driving the line low.
Use the OutputPin
trait methods to change the pin state after
initial configuration.
Trait Implementations
impl<MODE: PinMode> Pin for Pin9<MODE>
[src]
impl UnassignedPin for Pin9<Unassigned>
[src]
impl InputPin for Pin9<DigitalInput>
[src]
impl InputPin for Pin9<Unassigned>
[src]
impl Copy for Pin9<DigitalInput>
[src]
The input portion of a pin can be freely copied, because multiple input functions can coexist on the same pin.
impl<MODE: PinMode> !Sync for Pin9<MODE>
[src]
impl Clone for Pin9<DigitalInput>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl OutputPin for Pin9<DigitalOutput>
[src]
type Error = !
Error type
fn set_high(&mut self) -> Result<(), !>
[src]
fn set_low(&mut self) -> Result<(), !>
[src]
impl ToggleableOutputPin for Pin9<DigitalOutput>
[src]
impl InputPin for Pin9<DigitalInput>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> OutputPin for T where
T: OutputPin,
[src]
T: OutputPin,
type Error = ()
Error type
fn set_low(&mut self) -> Result<(), <T as OutputPin>::Error>
[src]
fn set_high(&mut self) -> Result<(), <T as OutputPin>::Error>
[src]
impl<P> ToggleableOutputPin for P where
P: Default,
[src]
P: Default,
type Error = <P as OutputPin>::Error
Error type
fn toggle(&mut self) -> Result<(), <P as ToggleableOutputPin>::Error>
[src]
Toggle pin output
impl<T> InputPin for T where
T: InputPin,
[src]
T: InputPin,