projet_voilier/keil_project/Services/Alimentation.h
2020-11-15 16:52:49 +01:00

31 lines
849 B
C

/**
******************************************************************************
* @file RFOutput.h
* @author GALLOIS, Leonie and GÜLDENSTEIN, Jasper and FOUSSATS, Morgane
* @brief Service for using the RF Module to transmit characters.
******************************************************************************
*/
#ifndef ALIMENTATION_H
#define ALIMENTATION_H
/**
* @brief Initializes for reading of the power supply/battery level
* Peripherals used: ADC1
* Pins used: PC2 (Analog input)
*/
void ALIMENTATION_Init(void);
/**
* @brief Reads the power supply/battery level
* @retval battery level in Volts
*/
float ALIMENTATION_GetBatteryLevel(void);
/**
* @brief Returns if the power supply/battery level is above acceptable level
* @retval state (0 or 1)
*/
int ALIMENTATION_IsLevelEnough(void);
#endif