Struct nrf5x::gpio::GPIOPin
[−]
[src]
pub struct GPIOPin { pin: u8, client_data: Cell<usize>, client: Cell<Option<&'static Client>>, }
Fields
pin: u8
client_data: Cell<usize>
client: Cell<Option<&'static Client>>
Methods
impl GPIOPin
[src]
impl GPIOPin
[src]
pub fn handle_interrupt(&self)
[src]
Trait Implementations
impl PinCtl for GPIOPin
[src]
fn set_input_mode(&self, mode: InputMode)
[src]
Configure whether the pin should have a pull-up or pull-down resistor or neither. Read more
impl Pin for GPIOPin
[src]
fn make_output(&self)
[src]
Configure the GPIO pin as an output pin.
fn make_input(&self)
[src]
Configure the GPIO pin as an input pin.
fn disable(&self)
[src]
Disable the GPIO pin and put it into its lowest power mode. Read more
fn set(&self)
[src]
Set the GPIO pin high. It must be an output.
fn clear(&self)
[src]
Set the GPIO pin low. It must be an output.
fn toggle(&self)
[src]
Toggle the GPIO pin. It must be an output.
fn read(&self) -> bool
[src]
Get the current state of an input GPIO pin.
fn enable_interrupt(&self, client_data: usize, mode: InterruptMode)
[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
fn disable_interrupt(&self)
[src]
Disable the interrupt for the GPIO pin.