Struct nrf51_hal::gpio::gpio::PIN9 [] [src]

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

Pin

Methods

impl<MODE> PIN9<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 PIN9<Output<OpenDrain>>
[src]

[src]

Enables / disables the internal pull up

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

[src]

Is the input pin high?

[src]

Is the input pin low?

Auto Trait Implementations

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

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