Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.gpioimpl

PROTOCOLS

GpioImpl

Defined in fuchsia.hardware.gpioimpl/gpio-impl.fidl

ConfigIn

Configures a GPIO for input.

Request

NameType
index uint32
flags uint32

Response

NameType
s zx/status

ConfigOut

Configures a GPIO for output.

Request

NameType
index uint32
initial_value uint8

Response

NameType
s zx/status

GetInterrupt

Gets an interrupt object pertaining to a particular GPIO pin.

Request

NameType
index uint32
flags uint32

Response

NameType
s zx/status
irq handle<interrupt>

Read

Reads the current value of a GPIO (0 or 1).

Request

NameType
index uint32

Response

NameType
s zx/status
value uint8

ReleaseInterrupt

Release the interrupt.

Request

NameType
index uint32

Response

NameType
s zx/status

SetAltFunction

Configures the GPIO pin for an alternate function (I2C, SPI, etc) the interpretation of "function" is platform dependent.

Request

NameType
index uint32
function uint64

Response

NameType
s zx/status

SetDriveStrength

Configures the GPIO pin drive strength.

Request

NameType
index uint32
ua uint64

Response

NameType
s zx/status
actual_ua uint64

SetPolarity

Set GPIO polarity.

Request

NameType
index uint32
polarity fuchsia.hardware.gpio/GpioPolarity

Response

NameType
s zx/status

Write

Sets the current value of the GPIO (any non-zero value maps to 1).

Request

NameType
index uint32
value uint8

Response

NameType
s zx/status

STRUCTS