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

fuchsia.hardware.adc

PROTOCOLS

Device

Defined in fuchsia.hardware.adc/adc.fidl

GetNormalizedSample

Get sample normalized to [0.0-1.0]

Request

<EMPTY>

Response

NameType
result Device_GetNormalizedSample_Result

GetResolution

Get adc resolution in number of bits

Request

<EMPTY>

Response

NameType
result Device_GetResolution_Result

GetSample

Get sample - raw count from adc

Request

<EMPTY>

Response

NameType
result Device_GetSample_Result

STRUCTS

Device_GetNormalizedSample_Response

Defined in fuchsia.hardware.adc/adc.fidl

NameTypeDescriptionDefault
value float32 No default

Device_GetResolution_Response

Defined in fuchsia.hardware.adc/adc.fidl

NameTypeDescriptionDefault
resolution uint8 No default

Device_GetSample_Response

Defined in fuchsia.hardware.adc/adc.fidl

NameTypeDescriptionDefault
value uint32 No default

UNIONS

Device_GetNormalizedSample_Result strict

Defined in fuchsia.hardware.adc/adc.fidl

NameTypeDescription
response Device_GetNormalizedSample_Response
err zx/status

Device_GetResolution_Result strict

Defined in fuchsia.hardware.adc/adc.fidl

NameTypeDescription
response Device_GetResolution_Response
err zx/status

Device_GetSample_Result strict

Defined in fuchsia.hardware.adc/adc.fidl

NameTypeDescription
response Device_GetSample_Response
err zx/status