unleashed-firmware/firmware/targets/f7/ble_glue/battery_service.h

23 lines
320 B
C
Raw Normal View History

#pragma once
#include <stdint.h>
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
void battery_svc_start();
void battery_svc_stop();
bool battery_svc_is_started();
bool battery_svc_update_level(uint8_t battery_level);
2022-05-18 16:17:59 +00:00
bool battery_svc_update_power_state(bool is_charging);
#ifdef __cplusplus
}
#endif