 2017baac48
			
		
	
	
		2017baac48
		
			
		
	
	
	
	
		
			
			* battery service: add power state charachteristic * bt: update power state on charging / discharging events * ble config: support only one connection * bt: always update flow control characteristic * bt: fix power state update * bt: simplify updating power state * bt: don't update flow control charachteristic
		
			
				
	
	
		
			23 lines
		
	
	
		
			304 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			304 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #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);
 | |
| 
 | |
| bool battery_svc_update_power_state();
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 |