PROTOCOLS
Device
Defined in fuchsia.hardware.adcimpl/adc-impl.fidl
GetResolution
Get adc resolution in number of bits.
Request
<EMPTY>
Response
Name | Type |
---|---|
payload |
Device_GetResolution_Result
|
GetSample
Get sample - raw count from adc - of the ADC channel indicated by channel_id.
Request
Name | Type |
---|---|
channel_id |
uint32
|
Response
Name | Type |
---|---|
payload |
Device_GetSample_Result
|
STRUCTS
Device_GetResolution_Response
Defined in fuchsia.hardware.adcimpl/adc-impl.fidl
Field | Type | Description | Default |
---|---|---|---|
resolution |
uint8
|
No default |
Device_GetSample_Response
Defined in fuchsia.hardware.adcimpl/adc-impl.fidl
Field | Type | Description | Default |
---|---|---|---|
value |
uint32
|
No default |
TABLES
AdcChannel
Defined in fuchsia.hardware.adcimpl/metadata.fidl
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
idx |
uint32
|
Index of channel. |
2 |
name |
string:64
|
Channel name. |
Metadata
Defined in fuchsia.hardware.adcimpl/metadata.fidl
Ordinal | Field | Type | Description |
---|---|---|---|
1 |
channels |
vector<AdcChannel>
|
ADC Channels to expose. |
UNIONS
Device_GetResolution_Result strict
Defined in fuchsia.hardware.adcimpl/adc-impl.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
Device_GetResolution_Response
|
|
2 |
err |
zx/Status
|
Device_GetSample_Result strict
Defined in fuchsia.hardware.adcimpl/adc-impl.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
Device_GetSample_Response
|
|
2 |
err |
zx/Status
|
CONSTANTS
Name | Value | Type | Description |
---|---|---|---|
ADC_NAME_MAX_LENGTH |
64
|
uint32 |
|
METADATA_TYPE_NAME | fuchsia.hardware.adcimpl.Metadata |
String |
SERVICES
Service
Defined in fuchsia.hardware.adcimpl/adc-impl.fidl
Name | Type | Transport |
---|---|---|
device |
fuchsia.hardware.adcimpl/Device
|
Driver |