Struct nrf5x::gpio::GPIOPin [] [src]

pub struct GPIOPin {
    pin: u8,
    client_data: Cell<usize>,
    client: Cell<Option<&'static Client>>,
}

Fields

Methods

impl GPIOPin
[src]

[src]

[src]

impl GPIOPin
[src]

[src]

Trait Implementations

impl PinCtl for GPIOPin
[src]

[src]

Configure whether the pin should have a pull-up or pull-down resistor or neither. Read more

impl Pin for GPIOPin
[src]

[src]

Configure the GPIO pin as an output pin.

[src]

Configure the GPIO pin as an input pin.

[src]

Disable the GPIO pin and put it into its lowest power mode. Read more

[src]

Set the GPIO pin high. It must be an output.

[src]

Set the GPIO pin low. It must be an output.

[src]

Toggle the GPIO pin. It must be an output.

[src]

Get the current state of an input GPIO pin.

[src]

Enable an interrupt on the GPIO pin. It must be configured as an interrupt. The identifier can be any value and will be returned to you when the interrupt on this pin fires. Read more

[src]

Disable the interrupt for the GPIO pin.