|
PebbleOS
|
Battery state set from the QEMU host. More...
Functions | |
| void | qemu_battery_msg_callback (const uint8_t *data, uint32_t len) |
Handle a QemuProtocol_Battery message from the host. | |
| uint8_t | qemu_battery_get_percent (void) |
| Get the battery percentage last set by the host. | |
Battery state set from the QEMU host.
| uint8_t qemu_battery_get_percent | ( | void | ) |
Get the battery percentage last set by the host.
Lets the battery service skip the lossy voltage curve round trip on QEMU.
| void qemu_battery_msg_callback | ( | const uint8_t * | data, |
| uint32_t | len | ||
| ) |
Handle a QemuProtocol_Battery message from the host.
Called by the QEMU host channel.
| data | Message payload, a QemuProtocolBatteryHeader. |
| len | Length of data in bytes. |