[−][src]Struct pygamer::gpio::Pb26
Represents the IO pin with the matching name.
Implementations
impl<MODE> Pb26<MODE>
[src]
pub fn into_floating_input(self, port: &mut Port) -> Pb26<Input<Floating>>
[src]
Configures the pin to operate as a floating input
pub fn into_pull_down_input(self, port: &mut Port) -> Pb26<Input<PullDown>>
[src]
Configures the pin to operate as a pulled down input pin
pub fn into_pull_up_input(self, port: &mut Port) -> Pb26<Input<PullUp>>
[src]
Configures the pin to operate as a pulled up input pin
pub fn into_open_drain_output(self, port: &mut Port) -> Pb26<Output<OpenDrain>>
[src]
Configures the pin to operate as an open drain output
pub fn into_readable_open_drain_output(
self,
port: &mut Port
) -> Pb26<Output<ReadableOpenDrain>>
[src]
self,
port: &mut Port
) -> Pb26<Output<ReadableOpenDrain>>
Configures the pin to operate as an open drain output which can be read
pub fn into_push_pull_output(self, port: &mut Port) -> Pb26<Output<PushPull>>
[src]
Configures the pin to operate as a push-pull output
impl Pb26<Output<OpenDrain>>
[src]
pub fn internal_pull_up(&mut self, port: &mut Port, on: bool)
[src]
Control state of the internal pull up
impl<MODE> Pb26<Output<MODE>>
[src]
pub fn toggle(&mut self)
[src]
Toggle the logic level of the pin; if it is currently high, set it low and vice versa.
impl<MODE> Pb26<MODE>
[src]
pub fn into_function_a(self, port: &mut Port) -> Pb26<PfA>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pb26<MODE>
[src]
pub fn into_function_b(self, port: &mut Port) -> Pb26<PfB>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pb26<MODE>
[src]
pub fn into_function_c(self, port: &mut Port) -> Pb26<PfC>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pb26<MODE>
[src]
pub fn into_function_d(self, port: &mut Port) -> Pb26<PfD>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pb26<MODE>
[src]
pub fn into_function_e(self, port: &mut Port) -> Pb26<PfE>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pb26<MODE>
[src]
pub fn into_function_f(self, port: &mut Port) -> Pb26<PfF>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pb26<MODE>
[src]
pub fn into_function_g(self, port: &mut Port) -> Pb26<PfG>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pb26<MODE>
[src]
pub fn into_function_h(self, port: &mut Port) -> Pb26<PfH>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pb26<MODE>
[src]
pub fn into_function_i(self, port: &mut Port) -> Pb26<PfI>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pb26<MODE>
[src]
pub fn into_function_j(self, port: &mut Port) -> Pb26<PfJ>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pb26<MODE>
[src]
pub fn into_function_k(self, port: &mut Port) -> Pb26<PfK>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pb26<MODE>
[src]
pub fn into_function_l(self, port: &mut Port) -> Pb26<PfL>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pb26<MODE>
[src]
pub fn into_function_m(self, port: &mut Port) -> Pb26<PfM>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pb26<MODE>
[src]
pub fn into_function_n(self, port: &mut Port) -> Pb26<PfN>
[src]
Configures the pin to operate with a peripheral
Trait Implementations
impl InputPin for Pb26<Output<ReadableOpenDrain>>
[src]
type Error = ()
Error type
fn is_high(
&self
) -> Result<bool, <Pb26<Output<ReadableOpenDrain>> as InputPin>::Error>
[src]
&self
) -> Result<bool, <Pb26<Output<ReadableOpenDrain>> as InputPin>::Error>
fn is_low(
&self
) -> Result<bool, <Pb26<Output<ReadableOpenDrain>> as InputPin>::Error>
[src]
&self
) -> Result<bool, <Pb26<Output<ReadableOpenDrain>> as InputPin>::Error>
impl<MODE> InputPin for Pb26<Input<MODE>>
[src]
type Error = ()
Error type
fn is_high(&self) -> Result<bool, <Pb26<Input<MODE>> as InputPin>::Error>
[src]
fn is_low(&self) -> Result<bool, <Pb26<Input<MODE>> as InputPin>::Error>
[src]
impl<MODE> IntoFunction<Pb26<PfA>> for Pb26<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pb26<PfA>
[src]
impl<MODE> IntoFunction<Pb26<PfB>> for Pb26<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pb26<PfB>
[src]
impl<MODE> IntoFunction<Pb26<PfC>> for Pb26<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pb26<PfC>
[src]
impl<MODE> IntoFunction<Pb26<PfD>> for Pb26<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pb26<PfD>
[src]
impl<MODE> IntoFunction<Pb26<PfE>> for Pb26<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pb26<PfE>
[src]
impl<MODE> IntoFunction<Pb26<PfF>> for Pb26<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pb26<PfF>
[src]
impl<MODE> IntoFunction<Pb26<PfG>> for Pb26<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pb26<PfG>
[src]
impl<MODE> IntoFunction<Pb26<PfH>> for Pb26<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pb26<PfH>
[src]
impl<MODE> IntoFunction<Pb26<PfI>> for Pb26<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pb26<PfI>
[src]
impl<MODE> IntoFunction<Pb26<PfJ>> for Pb26<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pb26<PfJ>
[src]
impl<MODE> IntoFunction<Pb26<PfK>> for Pb26<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pb26<PfK>
[src]
impl<MODE> IntoFunction<Pb26<PfL>> for Pb26<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pb26<PfL>
[src]
impl<MODE> IntoFunction<Pb26<PfM>> for Pb26<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pb26<PfM>
[src]
impl<MODE> IntoFunction<Pb26<PfN>> for Pb26<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pb26<PfN>
[src]
impl<MODE> OutputPin for Pb26<Output<MODE>>
[src]
type Error = ()
Error type
fn set_high(&mut self) -> Result<(), <Pb26<Output<MODE>> as OutputPin>::Error>
[src]
fn set_low(&mut self) -> Result<(), <Pb26<Output<MODE>> as OutputPin>::Error>
[src]
impl<MODE> StatefulOutputPin for Pb26<Output<MODE>>
[src]
fn is_set_high(&self) -> Result<bool, <Pb26<Output<MODE>> as OutputPin>::Error>
[src]
fn is_set_low(&self) -> Result<bool, <Pb26<Output<MODE>> as OutputPin>::Error>
[src]
impl<MODE> ToggleableOutputPin for Pb26<Output<MODE>>
[src]
Auto Trait Implementations
impl<MODE> Send for Pb26<MODE> where
MODE: Send,
MODE: Send,
impl<MODE> Sync for Pb26<MODE> where
MODE: Sync,
MODE: Sync,
impl<MODE> Unpin for Pb26<MODE> where
MODE: Unpin,
MODE: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T> InputPin for T where
T: InputPin,
[src]
T: InputPin,
type Error = ()
Error type
fn is_low(&self) -> Result<bool, <T as InputPin>::Error>
[src]
fn is_high(&self) -> Result<bool, <T as InputPin>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<T> Same<T> for T
type Output = T
Should always be Self
impl<T> StatefulOutputPin for T where
T: StatefulOutputPin + OutputPin,
[src]
T: StatefulOutputPin + OutputPin,
fn is_set_low(&self) -> Result<bool, <T as OutputPin>::Error>
[src]
fn is_set_high(&self) -> Result<bool, <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, 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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,