[][src]Struct pygamer::gpio::Pb30

pub struct Pb30<MODE> { /* fields omitted */ }

Represents the IO pin with the matching name.

Implementations

impl<MODE> Pb30<MODE>[src]

pub fn into_floating_input(self, port: &mut Port) -> Pb30<Input<Floating>>[src]

Configures the pin to operate as a floating input

pub fn into_pull_down_input(self, port: &mut Port) -> Pb30<Input<PullDown>>[src]

Configures the pin to operate as a pulled down input pin

pub fn into_pull_up_input(self, port: &mut Port) -> Pb30<Input<PullUp>>[src]

Configures the pin to operate as a pulled up input pin

pub fn into_open_drain_output(self, port: &mut Port) -> Pb30<Output<OpenDrain>>[src]

Configures the pin to operate as an open drain output

pub fn into_readable_open_drain_output(
    self,
    port: &mut Port
) -> Pb30<Output<ReadableOpenDrain>>
[src]

Configures the pin to operate as an open drain output which can be read

pub fn into_push_pull_output(self, port: &mut Port) -> Pb30<Output<PushPull>>[src]

Configures the pin to operate as a push-pull output

impl Pb30<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> Pb30<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> Pb30<MODE>[src]

pub fn into_function_a(self, port: &mut Port) -> Pb30<PfA>[src]

Configures the pin to operate with a peripheral

impl<MODE> Pb30<MODE>[src]

pub fn into_function_b(self, port: &mut Port) -> Pb30<PfB>[src]

Configures the pin to operate with a peripheral

impl<MODE> Pb30<MODE>[src]

pub fn into_function_c(self, port: &mut Port) -> Pb30<PfC>[src]

Configures the pin to operate with a peripheral

impl<MODE> Pb30<MODE>[src]

pub fn into_function_d(self, port: &mut Port) -> Pb30<PfD>[src]

Configures the pin to operate with a peripheral

impl<MODE> Pb30<MODE>[src]

pub fn into_function_e(self, port: &mut Port) -> Pb30<PfE>[src]

Configures the pin to operate with a peripheral

impl<MODE> Pb30<MODE>[src]

pub fn into_function_f(self, port: &mut Port) -> Pb30<PfF>[src]

Configures the pin to operate with a peripheral

impl<MODE> Pb30<MODE>[src]

pub fn into_function_g(self, port: &mut Port) -> Pb30<PfG>[src]

Configures the pin to operate with a peripheral

impl<MODE> Pb30<MODE>[src]

pub fn into_function_h(self, port: &mut Port) -> Pb30<PfH>[src]

Configures the pin to operate with a peripheral

impl<MODE> Pb30<MODE>[src]

pub fn into_function_i(self, port: &mut Port) -> Pb30<PfI>[src]

Configures the pin to operate with a peripheral

impl<MODE> Pb30<MODE>[src]

pub fn into_function_j(self, port: &mut Port) -> Pb30<PfJ>[src]

Configures the pin to operate with a peripheral

impl<MODE> Pb30<MODE>[src]

pub fn into_function_k(self, port: &mut Port) -> Pb30<PfK>[src]

Configures the pin to operate with a peripheral

impl<MODE> Pb30<MODE>[src]

pub fn into_function_l(self, port: &mut Port) -> Pb30<PfL>[src]

Configures the pin to operate with a peripheral

impl<MODE> Pb30<MODE>[src]

pub fn into_function_m(self, port: &mut Port) -> Pb30<PfM>[src]

Configures the pin to operate with a peripheral

impl<MODE> Pb30<MODE>[src]

pub fn into_function_n(self, port: &mut Port) -> Pb30<PfN>[src]

Configures the pin to operate with a peripheral

Trait Implementations

impl InputPin for Pb30<Output<ReadableOpenDrain>>[src]

type Error = ()

Error type

impl<MODE> InputPin for Pb30<Input<MODE>>[src]

type Error = ()

Error type

impl<MODE> IntoFunction<Pb30<PfA>> for Pb30<MODE>[src]

impl<MODE> IntoFunction<Pb30<PfB>> for Pb30<MODE>[src]

impl<MODE> IntoFunction<Pb30<PfC>> for Pb30<MODE>[src]

impl<MODE> IntoFunction<Pb30<PfD>> for Pb30<MODE>[src]

impl<MODE> IntoFunction<Pb30<PfE>> for Pb30<MODE>[src]

impl<MODE> IntoFunction<Pb30<PfF>> for Pb30<MODE>[src]

impl<MODE> IntoFunction<Pb30<PfG>> for Pb30<MODE>[src]

impl<MODE> IntoFunction<Pb30<PfH>> for Pb30<MODE>[src]

impl<MODE> IntoFunction<Pb30<PfI>> for Pb30<MODE>[src]

impl<MODE> IntoFunction<Pb30<PfJ>> for Pb30<MODE>[src]

impl<MODE> IntoFunction<Pb30<PfK>> for Pb30<MODE>[src]

impl<MODE> IntoFunction<Pb30<PfL>> for Pb30<MODE>[src]

impl<MODE> IntoFunction<Pb30<PfM>> for Pb30<MODE>[src]

impl<MODE> IntoFunction<Pb30<PfN>> for Pb30<MODE>[src]

impl<MODE> OutputPin for Pb30<Output<MODE>>[src]

type Error = ()

Error type

impl<MODE> PadPin<Sercom5Pad1<Pb30<PfD>>> for Pb30<MODE>[src]

impl<MODE> StatefulOutputPin for Pb30<Output<MODE>>[src]

impl<MODE> ToggleableOutputPin for Pb30<Output<MODE>>[src]

type Error = ()

Error type

Auto Trait Implementations

impl<MODE> Send for Pb30<MODE> where
    MODE: Send

impl<MODE> Sync for Pb30<MODE> where
    MODE: Sync

impl<MODE> Unpin for Pb30<MODE> where
    MODE: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> InputPin for T where
    T: InputPin
[src]

type Error = ()

Error type

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> OutputPin for T where
    T: OutputPin
[src]

type Error = ()

Error type

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> StatefulOutputPin for T where
    T: StatefulOutputPin + OutputPin
[src]

impl<P> ToggleableOutputPin for P where
    P: Default
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.