PROTOCOLS
Device
Defined in fuchsia.hardware.adc/adc.fidl
GetNormalizedSample
Get sample normalized to [0.0-1.0]
Request
<EMPTY>
Response
Name | Type |
---|---|
payload |
Device_GetNormalizedSample_Result
|
GetResolution
Get adc resolution in number of bits
Request
<EMPTY>
Response
Name | Type |
---|---|
payload |
Device_GetResolution_Result
|
GetSample
Get sample - raw count from adc
Request
<EMPTY>
Response
Name | Type |
---|---|
payload |
Device_GetSample_Result
|
STRUCTS
Device_GetNormalizedSample_Response
Defined in fuchsia.hardware.adc/adc.fidl
Field | Type | Description | Default |
---|---|---|---|
value |
float32
|
No default |
Device_GetResolution_Response
Defined in fuchsia.hardware.adc/adc.fidl
Field | Type | Description | Default |
---|---|---|---|
resolution |
uint8
|
No default |
Device_GetSample_Response
Defined in fuchsia.hardware.adc/adc.fidl
Field | Type | Description | Default |
---|---|---|---|
value |
uint32
|
No default |
UNIONS
Device_GetNormalizedSample_Result strict
Defined in fuchsia.hardware.adc/adc.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
Device_GetNormalizedSample_Response
|
|
2 |
err |
zx/Status
|
Device_GetResolution_Result strict
Defined in fuchsia.hardware.adc/adc.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
Device_GetResolution_Response
|
|
2 |
err |
zx/Status
|
Device_GetSample_Result strict
Defined in fuchsia.hardware.adc/adc.fidl
Ordinal | Variant | Type | Description |
---|---|---|---|
1 |
response |
Device_GetSample_Response
|
|
2 |
err |
zx/Status
|
SERVICES
Service
Defined in fuchsia.hardware.adc/adc.fidl
Name | Type | Transport |
---|---|---|
device |
fuchsia.hardware.adc/Device
|
Channel |