mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00

* gotthard config file path using readlink * gotthard2 * eiger * eieger, mnythen3, moench * binaries in * moved readlink to a common function * binaries in
22 lines
613 B
C
22 lines
613 B
C
#pragma once
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
/**
|
|
* Convert a value from a range to a different range (eg voltage to dac or vice
|
|
* versa)
|
|
* @param inputMin input minimum
|
|
* @param inputMax input maximum
|
|
* @param outputMin output minimum
|
|
* @param outputMax output maximum
|
|
* @param inputValue input value
|
|
* @param outputValue pointer to output value
|
|
* @returns FAIL if input value is out of bounds, else OK
|
|
*/
|
|
int ConvertToDifferentRange(int inputMin, int inputMax, int outputMin,
|
|
int outputMax, int inputValue, int *outputValue);
|
|
|
|
|
|
|
|
int getAbsPath(char* buf, size_t bufSize, char* fname); |