Mercurial > public > ostc4
diff Small_CPU/Inc/batteryGasGauge.h @ 330:2defc8cd93ce I2C_Improvment
Added check of configuration.
In case of a problem in I2C communication the initialization of the battery gauge may have failed. To detect this a check of configuration of I2C reinitialization have been added
author | ideenmodellierer |
---|---|
date | Wed, 17 Jul 2019 22:43:16 +0200 |
parents | 5f11787b4f42 |
children | 1b995079c045 |
line wrap: on
line diff
--- a/Small_CPU/Inc/batteryGasGauge.h Wed Jul 17 22:42:55 2019 +0200 +++ b/Small_CPU/Inc/batteryGasGauge.h Wed Jul 17 22:43:16 2019 +0200 @@ -29,6 +29,8 @@ /* Includes ------------------------------------------------------------------*/ +#include <stdint.h> + void init_battery_gas_gauge(void); float get_voltage(void); @@ -37,6 +39,7 @@ void battery_gas_gauge_get_data(void); void battery_gas_gauge_set_charge_full(void); void battery_gas_gauge_set(float percentage); +uint8_t battery_gas_gauge_CheckConfigOK(void); #ifdef __cplusplus }