fuchsia.buttons

Added: HEAD

ENUMS

GpioButtonId flexible

Type: uint32

Defined in fuchsia.buttons/gpio_buttons.fidl

All possible IDs of a button.

NameValueDescription
0
1
2
3
4
5
6
7
8
9
10

TABLES

AdcButtonConfig

Defined in fuchsia.buttons/adc_buttons.fidl

Analog-to-Digital Converter Buttons

OrdinalFieldTypeDescription
channel_idx uint32

ADC Channel Index to read button value on.

release_threshold uint32

If press_threshold <= value <= release_threshold, button is pressed. Otherwise, not pressed.

press_threshold uint32

AdcButtonsMetadata

Defined in fuchsia.buttons/adc_buttons.fidl

OrdinalFieldTypeDescription
polling_rate_usec uint32

Polling Rate in usec if exists.

buttons vector<Button>

Buttons.

Button

Defined in fuchsia.buttons/adc_buttons.fidl

OrdinalFieldTypeDescription
types vector<fuchsia.input.report/ConsumerControlButton>

Button Types. A single button may affect multiple things and thus have multiple functionalities. For example, a privacy switch that mutes both the camera and mic may map to the combination of fuchsia.input.report.ConsumerControlButton.MIC_MUTE and CAMERA_DISABLE.

button_config ButtonConfig

Button Config.

DirectGpioButton

Defined in fuchsia.buttons/gpio_buttons.fidl

Configuration for a direct gpio button where the state of the button is represented by the value of a gpio.

OrdinalFieldTypeDescription

GpioButtonConfig

Defined in fuchsia.buttons/gpio_buttons.fidl

Configuration information of a button that uses gpios to function.

OrdinalFieldTypeDescription
type GpioButtonType
gpio_a_index uint8

Index of gpio A used.

gpio_delay zx/Duration

For settling during matrix scan.

id GpioButtonId

ID of the button.

GpioButtonsMetadata

Defined in fuchsia.buttons/gpio_buttons.fidl

OrdinalFieldTypeDescription
buttons vector<GpioButtonConfig>

Configuration information for buttons that require gpio to function.

gpios vector<GpioConfig>

Configuration information for the gpios used by |buttons|.

GpioConfig

Defined in fuchsia.buttons/gpio_buttons.fidl

Configuration information of a gpio used by a button.

OrdinalFieldTypeDescription
type GpioType

The type of the gpio pin.

flags GpioFlag

The flags of the gpio pin.

InterruptGpio

Defined in fuchsia.buttons/gpio_buttons.fidl

Gpio pin will trigger an interrupt when its value has changed.

OrdinalFieldTypeDescription

MatrixGpioButton

Defined in fuchsia.buttons/gpio_buttons.fidl

Configuration for a matrix gpio button.

OrdinalFieldTypeDescription
gpio_b_index uint8

Index of gpio B (column) used. Gpio type must be GpioType::matrix_output (is driven most of the time) and gpio A (row) must be GpioType::interrupt (triggers an interrupt most of the time). During matrix scans columns are floated and rows are read.

MatrixOutputGpio

Defined in fuchsia.buttons/gpio_buttons.fidl

Gpio pin's value continuously cycles through a row or column of a matrix of values that usually represent a matrix of the states of buttons/components.

OrdinalFieldTypeDescription
output_value uint8

Determines the buffer mode of the gpio. A value of 0 is output-low and anything else is output-high.

PollGpio

Defined in fuchsia.buttons/gpio_buttons.fidl

Gpio pin is constantly polled for its value.

OrdinalFieldTypeDescription
period zx/Duration

Time between each poll.

UNIONS

ButtonConfig flexible

Defined in fuchsia.buttons/adc_buttons.fidl

OrdinalVariantTypeDescription
adc AdcButtonConfig

ADC Buttons.

GpioButtonType flexible

Defined in fuchsia.buttons/gpio_buttons.fidl

Type of button.

OrdinalVariantTypeDescription
direct DirectGpioButton
matrix MatrixGpioButton

GpioType flexible

Defined in fuchsia.buttons/gpio_buttons.fidl

The type of gpio.

OrdinalVariantTypeDescription
interrupt InterruptGpio
matrix_output MatrixOutputGpio
poll PollGpio

BITS

GpioFlag flexible

Type: uint32

Defined in fuchsia.buttons/gpio_buttons.fidl

Flags for configuriung gpio pin.

NameValueDescription
128

Invert the gpio's signal.

64

Use the gpio as a wake vector.

CONSTANTS

NameValueTypeDescription
MAX_GPIO_BUTTON_ID_ORD 11 uint32

Maximum ordinal that GpioButtonId can be.