Struct atsamd21_hal::gpio::Pa22
[−]
[src]
pub struct Pa22<MODE> { /* fields omitted */ }
Represents the IO pin with the matching name.
Methods
impl<MODE> Pa22<MODE>
[src]
pub fn into_function_a(self, port: &mut Port) -> Pa22<PfA>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pa22<MODE>
[src]
pub fn into_function_b(self, port: &mut Port) -> Pa22<PfB>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pa22<MODE>
[src]
pub fn into_function_c(self, port: &mut Port) -> Pa22<PfC>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pa22<MODE>
[src]
pub fn into_function_d(self, port: &mut Port) -> Pa22<PfD>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pa22<MODE>
[src]
pub fn into_function_e(self, port: &mut Port) -> Pa22<PfE>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pa22<MODE>
[src]
pub fn into_function_f(self, port: &mut Port) -> Pa22<PfF>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pa22<MODE>
[src]
pub fn into_function_g(self, port: &mut Port) -> Pa22<PfG>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pa22<MODE>
[src]
pub fn into_function_h(self, port: &mut Port) -> Pa22<PfH>
[src]
Configures the pin to operate with a peripheral
impl<MODE> Pa22<MODE>
[src]
pub fn into_floating_input(self, port: &mut Port) -> Pa22<Input<Floating>>
[src]
Configures the pin to operate as a floating input
pub fn into_pull_down_input(self, port: &mut Port) -> Pa22<Input<PullDown>>
[src]
Configures the pin to operate as a pulled down input pin
pub fn into_pull_up_input(self, port: &mut Port) -> Pa22<Input<PullUp>>
[src]
Configures the pin to operate as a pulled up input pin
pub fn into_open_drain_output(self, port: &mut Port) -> Pa22<Output<OpenDrain>>
[src]
Configures the pin to operate as an open drain output
pub fn into_push_pull_output(self, port: &mut Port) -> Pa22<Output<PushPull>>
[src]
Configures the pin to operate as a push-pull output
impl Pa22<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> Pa22<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.
Trait Implementations
impl<MODE> IntoFunction<Pa22<PfA>> for Pa22<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pa22<PfA>
[src]
Consume the pin and configure it to operate in the mode T. Read more
impl<MODE> IntoFunction<Pa22<PfB>> for Pa22<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pa22<PfB>
[src]
Consume the pin and configure it to operate in the mode T. Read more
impl<MODE> IntoFunction<Pa22<PfC>> for Pa22<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pa22<PfC>
[src]
Consume the pin and configure it to operate in the mode T. Read more
impl<MODE> IntoFunction<Pa22<PfD>> for Pa22<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pa22<PfD>
[src]
Consume the pin and configure it to operate in the mode T. Read more
impl<MODE> IntoFunction<Pa22<PfE>> for Pa22<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pa22<PfE>
[src]
Consume the pin and configure it to operate in the mode T. Read more
impl<MODE> IntoFunction<Pa22<PfF>> for Pa22<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pa22<PfF>
[src]
Consume the pin and configure it to operate in the mode T. Read more
impl<MODE> IntoFunction<Pa22<PfG>> for Pa22<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pa22<PfG>
[src]
Consume the pin and configure it to operate in the mode T. Read more
impl<MODE> IntoFunction<Pa22<PfH>> for Pa22<MODE>
[src]
fn into_function(self, port: &mut Port) -> Pa22<PfH>
[src]
Consume the pin and configure it to operate in the mode T. Read more
impl<MODE> OutputPin for Pa22<Output<MODE>>
[src]
fn is_high(&self) -> bool
[src]
Is the output pin high?
fn is_low(&self) -> bool
[src]
Is the output pin low?
fn set_high(&mut self)
[src]
Sets the pin high
fn set_low(&mut self)
[src]
Sets the pin low