Struct sam4l::gpio::GPIOPin [] [src]

pub struct GPIOPin {
    port: *mut Registers,
    pin_mask: u32,
    client_data: Cell<usize>,
    client: Cell<Option<&'static Client>>,
}

Fields

Methods

impl GPIOPin
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Sets the interrupt mode registers. Interrupts may fire on the rising or falling edge of the pin or on both.

The mode is a two-bit value based on the mapping from section 23.7.13 of the SAM4L datasheet (page 563):

mode value Interrupt Mode
0b00 Pin change
0b01 Rising edge
0b10 Falling edge

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl Controller for GPIOPin
[src]

[src]

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]

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

[src]

Configure the GPIO pin as an output pin.

[src]

Configure the GPIO pin as an input pin.

[src]

Get the current state of an input GPIO pin.

[src]

Toggle the GPIO pin. It must be an output.

[src]

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

[src]

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

[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.