PROTOCOLS
Debug
Defined in fuchsia.hardware.pin/pin.fidl
ConnectGpio
Returns ZX_ERR_NOT_SUPPORTED if the pin does not support GPIO.
Request
Name | Type |
---|---|
server |
server_end:fuchsia.hardware.gpio/Gpio
|
Response
Name | Type |
---|---|
payload |
Debug_ConnectGpio_Result
|
ConnectPin
Request
Name | Type |
---|---|
server |
server_end:Pin
|
Response
Name | Type |
---|---|
payload |
Debug_ConnectPin_Result
|
GetProperties
Returns the static properties of a pin.
Request
<EMPTY>
Response
Name | Type |
---|---|
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
Name | Type |
---|---|
config |
Configuration
|
Response
Name | Type |
---|---|
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
Field | Type | Description | Default |
---|---|---|---|
new_config |
Configuration
|
No default |
ENUMS
DriveType flexible
Type: uint32
Defined in fuchsia.hardware.pin/pin.fidl
Name | Value | Description |
---|---|---|
PUSH_PULL |
0 |
|
OPEN_DRAIN |
1 |
|
OPEN_SOURCE |
2 |
Pull strict
Type: uint32
Defined in fuchsia.hardware.pin/pin.fidl
Name | Value | Description |
---|---|---|
DOWN |
0 |
|
UP |
1 |
|
NONE |
2 |
TABLES
Configuration
Defined in fuchsia.hardware.pin/pin.fidl
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
pull |
Pull
|
Whether to enable the built-in pull-down resistor, pull-up resistor, or neither. |
2 |
function |
uint64
|
Configures the pin for an alternate function (I2C, SPI, etc). The interpretation of
|
3 |
drive_strength_ua |
uint64
|
The pin drive strength in microamps. Rounds up to the nearest supported drive strength. |
4 |
drive_type |
DriveType
|
The pin drive type. |
5 |
power_source |
uint64
|
Selects the power source. Interpretation is controller dependent. |
DebugGetPropertiesResponse
Defined in fuchsia.hardware.pin/pin.fidl
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
pin |
uint32
|
The platform-specific number of this pin, set as a bind property on the driver node. |
2 |
name |
string:64
|
The platform-specific name of this pin. |
UNIONS
Debug_ConnectGpio_Result strict
Defined in fuchsia.hardware.pin/pin.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
Debug_ConnectGpio_Response
|
|
2 |
err |
zx/Status
|
Debug_ConnectPin_Result strict
Defined in fuchsia.hardware.pin/pin.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
Debug_ConnectPin_Response
|
|
2 |
err |
zx/Status
|
Pin_Configure_Result strict
Defined in fuchsia.hardware.pin/pin.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
Pin_Configure_Response
|
|
2 |
err |
zx/Status
|
CONSTANTS
Name | Value | Type | Description |
---|---|---|---|
MAX_PIN_NAME_LEN |
64
|
uint32 |
Maximum length of the pin name. |
SERVICES
Service
Defined in fuchsia.hardware.pin/pin.fidl
Name | Type | Transport |
---|---|---|
device |
fuchsia.hardware.pin/Pin
|
Channel |