/usr/include/lime/ADCUnits.h is in liblimesuite-dev 16.12.0+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | /**
@file ADCUnits.h
@author Lime Microsystems
@brief enumerations of ADC sensor units
*/
#pragma once
namespace lime {
enum eADC_UNITS
{
RAW,
VOLTAGE,
CURRENT,
RESISTANCE,
POWER,
TEMPERATURE,
ADC_UNITS_COUNT
};
static const char adc_units_text[][8] = {"", "V", "A", "Ohm", "W", "C"};
static const char* adcUnits2string(const unsigned units)
{
if (units < ADC_UNITS_COUNT)
return adc_units_text[units];
else
return " unknown";
}
}
|