fuchsia.hardware.pin

Added: HEAD

PROTOCOLS

Debug

Defined in fuchsia.hardware.pin/pin.fidl

ConnectGpio

Returns ZX_ERR_NOT_SUPPORTED if the pin does not support GPIO.

Request

NameType
server server_end<fuchsia.hardware.gpio/Gpio>

Response

NameType
payload Debug_ConnectGpio_Result

ConnectPin

Request

NameType
server server_end<Pin>

Response

NameType
payload Debug_ConnectPin_Result

GetProperties

Returns the static properties of a pin.

Request

<EMPTY>

Response

NameType
payload DebugGetPropertiesResponse

Pin

Defined in fuchsia.hardware.pin/pin.fidl

Configure

Applies the configuration passed in config; see Configuration above. Fields not set in config are not changed. The drive strength is rounded up or capped to a value that the controller supports.

new_config contains the configuration of the pin after all supported fields have been set. Configure() can be called with an empty config to return the current configuration without making any changes.

Request

NameType
config Configuration

Response

NameType
payload Pin_Configure_Result

STRUCTS

Debug_ConnectGpio_Response

Defined in fuchsia.hardware.pin/pin.fidl

<EMPTY>

Debug_ConnectPin_Response

Defined in fuchsia.hardware.pin/pin.fidl

<EMPTY>

Pin_Configure_Response

Defined in fuchsia.hardware.pin/pin.fidl

FieldTypeDescriptionDefault
new_config Configuration No default

ENUMS

Pull strict

Type: uint32

Defined in fuchsia.hardware.pin/pin.fidl

NameValueDescription
0
1
2

TABLES

Configuration

Defined in fuchsia.hardware.pin/pin.fidl

OrdinalFieldTypeDescription
pull Pull

Whether to enable the built-in pull-down resistor, pull-up resistor, or neither.

function uint64

Configures the pin for an alternate function (I2C, SPI, etc). The interpretation of function is controller dependent.

drive_strength_ua uint64

The pin drive strength in microamps.

DebugGetPropertiesResponse

Defined in fuchsia.hardware.pin/pin.fidl

OrdinalFieldTypeDescription
pin uint32

The platform-specific number of this pin, set as a bind property on the driver node.

name string[64]

The platform-specific name of this pin.

UNIONS

Debug_ConnectGpio_Result strict

Defined in fuchsia.hardware.pin/pin.fidl

OrdinalVariantTypeDescription
response Debug_ConnectGpio_Response
err zx/Status

Debug_ConnectPin_Result strict

Defined in fuchsia.hardware.pin/pin.fidl

OrdinalVariantTypeDescription
response Debug_ConnectPin_Response
err zx/Status

Pin_Configure_Result strict

Defined in fuchsia.hardware.pin/pin.fidl

OrdinalVariantTypeDescription
response Pin_Configure_Response
err zx/Status

CONSTANTS

NameValueTypeDescription
MAX_PIN_NAME_LEN 64 uint32

Maximum length of the pin name.

SERVICES

Service

Defined in fuchsia.hardware.pin/pin.fidl

NameTypeTransport
device fuchsia.hardware.pin/Pin Channel