mirror of
https://github.com/Ralim/IronOS.git
synced 2025-07-23 12:23:06 +02:00
* Update documentation to build IronOS in Windows using MSYS2 environment and fix compilation on case-sensitive file systems. --------- Co-authored-by: Ivan Zorin <ivan.a.zorin@gmail.com>
22 lines
585 B
C++
22 lines
585 B
C++
/*
|
|
* Utils.hpp
|
|
*
|
|
* Created on: 28 Apr 2021
|
|
* Author: Ralim
|
|
*/
|
|
|
|
#ifndef CORE_DRIVERS_UTILS_HPP_
|
|
#define CORE_DRIVERS_UTILS_HPP_
|
|
#include <stdint.h>
|
|
class Utils {
|
|
public:
|
|
static int32_t InterpolateLookupTable(const int32_t *lookupTable, const int noItems, const int32_t value);
|
|
static int32_t LinearInterpolate(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int32_t x);
|
|
|
|
// Return the required current in X10 for the specified voltage
|
|
static uint16_t RequiredCurrentForTipAtVoltage(uint16_t voltageX10);
|
|
|
|
};
|
|
|
|
#endif /* CORE_DRIVERS_UTILS_HPP_ */
|