Struct nrf51_hal::gpio::gpio::PIN11
[−]
[src]
pub struct PIN11<MODE> { /* fields omitted */ }
Pin
Methods
impl<MODE> PIN11<MODE>
[src]
pub fn into_floating_input(self) -> PIN11<Input<Floating>>
[src]
Configures the pin to operate as a floating input pin
pub fn into_open_drain_input(self) -> PIN11<Input<OpenDrain>>
[src]
Configures the pin to operate as a open drain input pin
pub fn into_pull_down_input(self) -> PIN11<Input<PullDown>>
[src]
Configures the pin to operate as a pulled down input pin
pub fn into_pull_up_input(self) -> PIN11<Input<PullUp>>
[src]
Configures the pin to operate as a pulled up input pin
pub fn into_open_drain_output(self) -> PIN11<Output<OpenDrain>>
[src]
Configures the pin to operate as an open drain output pin
pub fn into_push_pull_output(self) -> PIN11<Output<PushPull>>
[src]
Configures the pin to operate as an push pull output pin
impl PIN11<Output<OpenDrain>>
[src]
pub fn internal_pull_up(&mut self, on: bool)
[src]
Enables / disables the internal pull up
impl<MODE> PIN11<Output<MODE>>
[src]
pub fn downgrade(self) -> PIN<Output<MODE>>
[src]
Erases the pin number from the type
This is useful when you want to collect the pins into an array where you need all the elements to have the same type
impl<MODE> PIN11<Input<MODE>>
[src]
pub fn downgrade(self) -> PIN<Input<MODE>>
[src]
Erases the pin number from the type
This is useful when you want to collect the pins into an array where you need all the elements to have the same type
Trait Implementations
impl<MODE> OutputPin for PIN11<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