Struct atmega32u4_hal::port::portd::PD1 [−][src]
pub struct PD1<MODE> { /* fields omitted */ }
Pin
Methods
impl<MODE> PD1<MODE>
[src]
impl<MODE> PD1<MODE>
pub fn downgrade(self) -> Pin<MODE>
[src]
pub fn downgrade(self) -> Pin<MODE>
Downgrade this pin into a more generic pin type
This allows storing multiple pins in an array. It does however
come with some runtime overhead, so choose downgrade_port
if
possible.
Note: The mode of downgraded pins can no longer be changed.
pub fn downgrade_port(self) -> PDx<MODE>
[src]
pub fn downgrade_port(self) -> PDx<MODE>
Downgrade this pin into a more type generic over all pins of this port
This allows storing multiple pins of a port in an array
Note: The mode of downgraded pins can no longer be changed.
impl<MODE: Io> PD1<MODE>
[src]
impl<MODE: Io> PD1<MODE>
pub fn into_floating_input<D: PortDDR>(
self,
ddr: &mut D
) -> PD1<Input<Floating>>
[src]
pub fn into_floating_input<D: PortDDR>(
self,
ddr: &mut D
) -> PD1<Input<Floating>>
Turn this pin into a floating input
pub fn into_pull_up_input<D: PortDDR>(self, ddr: &mut D) -> PD1<Input<PullUp>>
[src]
pub fn into_pull_up_input<D: PortDDR>(self, ddr: &mut D) -> PD1<Input<PullUp>>
Turn this pin into a pull up input
pub fn into_output<D: PortDDR>(self, ddr: &mut D) -> PD1<Output>
[src]
pub fn into_output<D: PortDDR>(self, ddr: &mut D) -> PD1<Output>
Turn this pin into an output input
Trait Implementations
impl OutputPin for PD1<Output>
[src]
impl OutputPin for PD1<Output>
fn set_high(&mut self)
[src]
fn set_high(&mut self)
Drives the pin high Read more
fn set_low(&mut self)
[src]
fn set_low(&mut self)
Drives the pin low Read more
impl StatefulOutputPin for PD1<Output>
[src]
impl StatefulOutputPin for PD1<Output>
fn is_set_high(&self) -> bool
[src]
fn is_set_high(&self) -> bool
Is the pin in drive high mode? Read more
fn is_set_low(&self) -> bool
[src]
fn is_set_low(&self) -> bool
Is the pin in drive low mode? Read more
impl Default for PD1<Output>
[src]
impl Default for PD1<Output>
impl<MODE> InputPin for PD1<Input<MODE>>
[src]
impl<MODE> InputPin for PD1<Input<MODE>>