LibreVNA/Software/PC_Application/LibreVNA-GUI/Tools/eseries.h

26 lines
391 B
C
Raw Normal View History

2022-10-01 23:10:44 +08:00
#ifndef ESERIES_H
#define ESERIES_H
class ESeries
{
public:
enum class Series {
Ideal = 0,
E6 = 1,
E12 = 2,
E24 = 3,
E48 = 4,
E96 = 5,
};
enum class Type {
BestMatch = 0,
Lower = 1,
Higher = 2,
};
static double ToESeries(double value, Series s, Type t = Type::BestMatch);
};
#endif // ESERIES_H