2023-04-07 15:28:30 +02:00
|
|
|
#ifndef BATTERY_H
|
|
|
|
#define BATTERY_H
|
|
|
|
#include "stm32f10x.h"
|
2023-04-11 11:28:42 +02:00
|
|
|
#include "adc.h"
|
|
|
|
#include "remote.h"
|
|
|
|
#include "rtc.h"
|
|
|
|
#include <stdio.h>
|
2023-04-10 23:48:53 +02:00
|
|
|
#define MAX_BAT 1145
|
2023-04-07 15:28:30 +02:00
|
|
|
|
|
|
|
void battery(uint32_t data);
|
2023-04-11 14:38:54 +02:00
|
|
|
void getGauge(char gauge[], float percent);
|
2023-04-07 15:28:30 +02:00
|
|
|
void initBattery(void);
|
2023-04-11 14:38:54 +02:00
|
|
|
char isClose(uint32_t data, uint32_t compare, int precision);
|
2023-04-07 15:28:30 +02:00
|
|
|
|
|
|
|
#endif
|