blob: c0d31fd0895d5bb372079b8ae6be639ed48219ee [file] [log] [blame] [view]
<link rel="stylesheet" href="../style.css" />
[TOC]
# fuchsia.hardware.power.sensor
<div class="fidl-version-div"><span class="fidl-attribute fidl-version">Added: 11</span></div>
## **PROTOCOLS**
## Device {#Device}
*Defined in [fuchsia.hardware.power.sensor/sensor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.sensor/sensor.fidl;l=8)*
### GetPowerWatts {#Device.GetPowerWatts}
#### Request {#Device.GetPowerWatts_Request}
&lt;EMPTY&gt;
#### Response {#Device.GetPowerWatts_Response}
<table>
<tr><th>Name</th><th>Type</th></tr>
<tr>
<td><code>result</code></td>
<td>
<code><a class='link' href='#Device_GetPowerWatts_Result'>Device_GetPowerWatts_Result</a></code>
</td>
</tr>
</table>
### GetVoltageVolts {#Device.GetVoltageVolts}
#### Request {#Device.GetVoltageVolts_Request}
&lt;EMPTY&gt;
#### Response {#Device.GetVoltageVolts_Response}
<table>
<tr><th>Name</th><th>Type</th></tr>
<tr>
<td><code>result</code></td>
<td>
<code><a class='link' href='#Device_GetVoltageVolts_Result'>Device_GetVoltageVolts_Result</a></code>
</td>
</tr>
</table>
## **STRUCTS**
### Device_GetPowerWatts_Response {#Device_GetPowerWatts_Response data-text="Device_GetPowerWatts_Response"}
*Defined in [fuchsia.hardware.power.sensor/sensor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.sensor/sensor.fidl;l=9)*
<table>
<tr><th>Field</th><th>Type</th><th>Description</th><th>Default</th></tr>
<tr id="Device_GetPowerWatts_Response.power">
<td><code>power</code></td>
<td>
<code>float32</code>
</td>
<td></td>
<td>No default</td>
</tr>
</table>
### Device_GetVoltageVolts_Response {#Device_GetVoltageVolts_Response data-text="Device_GetVoltageVolts_Response"}
*Defined in [fuchsia.hardware.power.sensor/sensor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.sensor/sensor.fidl;l=12)*
<table>
<tr><th>Field</th><th>Type</th><th>Description</th><th>Default</th></tr>
<tr id="Device_GetVoltageVolts_Response.voltage">
<td><code>voltage</code></td>
<td>
<code>float32</code>
</td>
<td></td>
<td>No default</td>
</tr>
</table>
## **UNIONS**
### Device_GetPowerWatts_Result [strict](/fuchsia-src/reference/fidl/language/language.md#strict-vs-flexible){:.fidl-attribute} {#Device_GetPowerWatts_Result data-text="Device_GetPowerWatts_Result"}
*Defined in [fuchsia.hardware.power.sensor/sensor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.sensor/sensor.fidl;l=9)*
<table>
<tr><th>Ordinal</th><th>Variant</th><th>Type</th><th>Description</th></tr>
<tr id="Device_GetPowerWatts_Result.response">
<td><h3 id="Device_GetPowerWatts_Result.response" class="add-link hide-from-toc">1</h3></td>
<td><code>response</code></td>
<td>
<code><a class='link' href='#Device_GetPowerWatts_Response'>Device_GetPowerWatts_Response</a></code>
</td>
<td></td>
</tr>
<tr id="Device_GetPowerWatts_Result.err">
<td><h3 id="Device_GetPowerWatts_Result.err" class="add-link hide-from-toc">2</h3></td>
<td><code>err</code></td>
<td>
<code><a class='link' href='../zx/'>zx</a>/<a class='link' href='../zx/#status'>status</a></code>
</td>
<td></td>
</tr>
</table>
### Device_GetVoltageVolts_Result [strict](/fuchsia-src/reference/fidl/language/language.md#strict-vs-flexible){:.fidl-attribute} {#Device_GetVoltageVolts_Result data-text="Device_GetVoltageVolts_Result"}
*Defined in [fuchsia.hardware.power.sensor/sensor.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.hardware.power.sensor/sensor.fidl;l=12)*
<table>
<tr><th>Ordinal</th><th>Variant</th><th>Type</th><th>Description</th></tr>
<tr id="Device_GetVoltageVolts_Result.response">
<td><h3 id="Device_GetVoltageVolts_Result.response" class="add-link hide-from-toc">1</h3></td>
<td><code>response</code></td>
<td>
<code><a class='link' href='#Device_GetVoltageVolts_Response'>Device_GetVoltageVolts_Response</a></code>
</td>
<td></td>
</tr>
<tr id="Device_GetVoltageVolts_Result.err">
<td><h3 id="Device_GetVoltageVolts_Result.err" class="add-link hide-from-toc">2</h3></td>
<td><code>err</code></td>
<td>
<code><a class='link' href='../zx/'>zx</a>/<a class='link' href='../zx/#status'>status</a></code>
</td>
<td></td>
</tr>
</table>