Extracting Utils class

This commit is contained in:
Ben V. Brown
2021-04-28 20:57:43 +10:00
parent a36e0c4c6e
commit 3d5b189bfd
2 changed files with 53 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
/*
* Utils.h
*
* Created on: 28 Apr 2021
* Author: Ralim
*/
#ifndef CORE_DRIVERS_UTILS_H_
#define CORE_DRIVERS_UTILS_H_
#include <stdint.h>
class Utils {
public:
static int32_t InterpolateLookupTable(const uint16_t *lookupTable,
const uint16_t value);
static int32_t LinearInterpolate(int32_t x1, int32_t y1, int32_t x2,
int32_t y2, int32_t x) ;
};
#endif /* CORE_DRIVERS_UTILS_H_ */