[−][src]Trait nrf52832_hal::prelude::OutputPin
Single digital push-pull output pin
Associated Types
Loading content...Required methods
pub fn set_low(&mut self) -> Result<(), Self::Error>
[src]
Drives the pin low
NOTE the actual electrical state of the pin may not actually be low, e.g. due to external electrical sources
pub fn set_high(&mut self) -> Result<(), Self::Error>
[src]
Drives the pin high
NOTE the actual electrical state of the pin may not actually be high, e.g. due to external electrical sources
Implementors
impl<MODE> OutputPin for P0_00<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_00<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_00<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_00<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_00<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_01<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_01<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_01<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_01<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_01<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_02<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_02<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_02<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_02<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_02<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_03<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_03<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_03<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_03<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_03<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_04<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_04<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_04<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_04<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_04<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_05<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_05<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_05<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_05<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_05<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_06<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_06<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_06<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_06<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_06<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_07<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_07<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_07<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_07<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_07<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_08<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_08<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_08<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_08<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_08<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_09<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_09<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_09<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_09<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_09<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_10<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_10<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_10<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_10<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_10<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_11<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_11<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_11<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_11<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_11<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_12<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_12<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_12<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_12<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_12<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_13<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_13<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_13<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_13<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_13<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_14<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_14<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_14<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_14<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_14<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_15<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_15<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_15<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_15<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_15<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_16<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_16<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_16<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_16<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_16<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_17<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_17<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_17<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_17<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_17<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_18<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_18<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_18<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_18<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_18<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_19<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_19<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_19<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_19<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_19<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_20<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_20<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_20<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_20<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_20<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_21<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_21<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_21<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_21<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_21<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_22<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_22<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_22<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_22<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_22<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_23<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_23<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_23<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_23<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_23<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_24<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_24<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_24<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_24<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_24<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_25<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_25<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_25<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_25<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_25<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_26<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_26<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_26<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_26<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_26<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_27<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_27<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_27<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_27<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_27<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_28<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_28<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_28<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_28<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_28<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_29<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_29<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_29<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_29<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_29<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_30<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_30<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_30<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_30<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_30<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for P0_31<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <P0_31<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_31<Output<MODE>> as OutputPin>::Error>
Set the output as high
pub fn set_low(
&mut self
) -> Result<(), <P0_31<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <P0_31<Output<MODE>> as OutputPin>::Error>
Set the output as low
impl<MODE> OutputPin for Pin<Output<MODE>>
[src]
type Error = Void
pub fn set_high(
&mut self
) -> Result<(), <Pin<Output<MODE>> as OutputPin>::Error>
[src]
&mut self
) -> Result<(), <Pin<Output<MODE>> as OutputPin>::Error>
Set the output as high.
pub fn set_low(&mut self) -> Result<(), <Pin<Output<MODE>> as OutputPin>::Error>
[src]
Set the output as low.
impl<T> OutputPin for T where
T: OutputPin,
[src]
T: OutputPin,
Implementation of fallible v2::OutputPin
for v1::OutputPin
traits