This commit is contained in:
2021-06-11 17:29:01 +02:00
parent 26acde979f
commit a9f892483d
5 changed files with 53 additions and 46 deletions

View File

@@ -1,8 +1,11 @@
#pragma once
#include <stdint.h> // int64_t
#include <stdio.h>
#include <time.h>
enum numberMode { DEC, HEX };
/**
* Convert a value from a range to a different range (eg voltage to dac or vice
* versa)
@@ -19,4 +22,8 @@ int ConvertToDifferentRange(int inputMin, int inputMax, int outputMin,
int getAbsPath(char *buf, size_t bufSize, char *fname);
int GetTimeFromString(char *buf, time_t *result);
int GetTimeFromString(char *buf, time_t *result);
void validate(int arg, int retval, char *modename, enum numberMode nummode);
void validate64(int64_t arg, int64_t retval, char *modename,
enum numberMode nummode);