DIY Logging Volt/Ampmeter
|
Go to the documentation of this file.
37 #ifndef __CONVERSION_H_
38 #define __CONVERSION_H_
48 #define FLOAT_TO_INT(x) ((x)>=0?(uint32_t)((x)+0.5):(uint32_t)((x)-0.5))
struct Settings_t settings
void setSecondPassed(uint8_t value)
volatile uint8_t loggerReady
void convertValues(void)
Function to convert the measurements to char-arrays.
void initDataStruct(void)
Function to initialize/reset the values in the data-struct.
void incSecondPassed(void)
Function to increase the value of secondPassed.
void forceConversion(void)
Function to force a conversion of all values not (yet) displayed on the OLED screens.
uint8_t getSecondPassed(void)
uint8_t decSecondPassed(void)
Function to decrease the value of secondPassed.
void initSettingsStruct(void)
Function to initialize/reset the values in the settings-struct.
volatile uint8_t secPassed