Struct nrf51_hal::gpio::gpio::PIN27 [] [src]

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

Pin

Methods

impl<MODE> PIN27<MODE>
[src]

[src]

Configures the pin to operate as a floating input pin

[src]

Configures the pin to operate as a open drain input pin

[src]

Configures the pin to operate as a pulled down input pin

[src]

Configures the pin to operate as a pulled up input pin

[src]

Configures the pin to operate as an open drain output pin

[src]

Configures the pin to operate as an push pull output pin

impl PIN27<Output<OpenDrain>>
[src]

[src]

Enables / disables the internal pull up

impl<MODE> PIN27<Output<MODE>>
[src]

[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> PIN27<Input<MODE>>
[src]

[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 PIN27<Output<MODE>>
[src]

[src]

Is the output pin high?

[src]

Is the output pin low?

[src]

Sets the pin high

[src]

Sets the pin low

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

[src]

Is the input pin high?

[src]

Is the input pin low?

Auto Trait Implementations

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

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