PROTOCOLS
Battery
Defined in fuchsia.hardware.power.battery/battery.fidl
Protocol representing the Battery (acting as the Fuel Gauge).
This protocol focuses on reading the chemical telemetry of the cell pack. Charging operations are managed separately via fuchsia.hardware.power.charger/Charger.
GetSpec
Returns the spec immediately.
Request
<EMPTY>
Response
| Name | Type |
|---|---|
payload |
Battery_GetSpec_Result
|
GetStatus
Returns the status immediately.
Request
<EMPTY>
Response
| Name | Type |
|---|---|
payload |
Battery_GetStatus_Result
|
Watch
Hanging get for status updates. See fuchsia.hardware.power.source/Source.Watch for semantics.
Request
| Name | Type |
|---|---|
interest |
Status
|
wake_on |
Status
|
lease |
fuchsia.power.system/LeaseToken
|
Response
| Name | Type |
|---|---|
payload |
Battery_Watch_Result
|
STRUCTS
Battery_GetSpec_Response
Defined in fuchsia.hardware.power.battery/battery.fidl
| Field | Type | Description | Default |
|---|---|---|---|
spec |
Spec
|
No default |
Battery_GetStatus_Response
Defined in fuchsia.hardware.power.battery/battery.fidl
| Field | Type | Description | Default |
|---|---|---|---|
status |
Status
|
No default |
Battery_Watch_Response resource
Defined in fuchsia.hardware.power.battery/battery.fidl
| Field | Type | Description | Default |
|---|---|---|---|
status |
Status
|
No default | |
wake_lease |
fuchsia.power.system/LeaseToken
|
No default |
ENUMS
ChargeStatus flexible
Type: uint32
Defined in fuchsia.hardware.power.battery/battery.fidl
High-level charging status for clients.
| Name | Value | Description |
|---|---|---|
NOT_CHARGING |
1 |
|
CHARGING |
2 |
|
DISCHARGING |
3 |
|
FULL |
4 |
HealthStatus flexible
Type: uint32
Defined in fuchsia.hardware.power.battery/battery.fidl
Battery health status.
| Name | Value | Description |
|---|---|---|
GOOD |
1 |
|
COLD |
2 |
|
COOL |
3 |
|
WARM |
4 |
|
HOT |
5 |
|
DEAD |
6 |
|
OVER_VOLTAGE |
7 |
|
UNSPECIFIED_FAILURE |
8 |
TABLES
Spec
Defined in fuchsia.hardware.power.battery/battery.fidl
Static hardware characteristics of the battery pack.
| Ordinal | Field | Type | Description |
|---|---|---|---|
1 |
source_spec |
fuchsia.hardware.power.source/Spec
|
Base spec from the underlying power source. |
2 |
design_capacity_uah |
uint32
|
Design capacity in microamp-hours. |
3 |
design_voltage_uv |
uint32
|
Design voltage in microvolts. |
4 |
chemistry |
string
|
Battery chemistry description. |
Status
Defined in fuchsia.hardware.power.battery/battery.fidl
Dynamic status of the battery pack telemetry.
| Ordinal | Field | Type | Description |
|---|---|---|---|
1 |
source_status |
fuchsia.hardware.power.source/Status
|
Base status from the underlying power source. |
2 |
charge_status |
ChargeStatus
|
High-level charging status. |
3 |
level_percent |
float32
|
Battery level percentage (0.0 to 100.0). |
4 |
remaining_capacity_uah |
uint32
|
Remaining capacity in microamp-hours. |
5 |
full_charge_capacity_uah |
uint32
|
Full charge capacity in microamp-hours. |
6 |
health |
HealthStatus
|
Battery health status. |
7 |
temperature_mc |
int32
|
Temperature in milli-Celsius. |
8 |
cycle_count |
uint32
|
Number of charge cycles. |
9 |
time_remaining |
zx/Duration
|
Estimated time remaining until empty or full. |
UNIONS
Battery_GetSpec_Result strict
Defined in fuchsia.hardware.power.battery/battery.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
response |
Battery_GetSpec_Response
|
|
2 |
err |
fuchsia.hardware.power.source/Error
|
|
3 |
framework_err |
internal
|
Battery_GetStatus_Result strict
Defined in fuchsia.hardware.power.battery/battery.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
response |
Battery_GetStatus_Response
|
|
2 |
err |
fuchsia.hardware.power.source/Error
|
|
3 |
framework_err |
internal
|
Battery_Watch_Result strict resource
Defined in fuchsia.hardware.power.battery/battery.fidl
| Ordinal | Variant | Type | Description |
|---|---|---|---|
1 |
response |
Battery_Watch_Response
|
|
3 |
framework_err |
internal
|
SERVICES
Service
Defined in fuchsia.hardware.power.battery/battery.fidl
| Name | Type | Transport |
|---|---|---|
| battery |
fuchsia.hardware.power.battery/Battery
|
Channel |
| power_source |
fuchsia.hardware.power.source/Source
|
Channel |