67 {-400, 195652.0f}, {-350, 148171.0f}, {-300, 113347.0f}, {-250, 87559.0f}, {-200, 68237.0f}, {-150, 53650.0f},
68 {-100, 42506.0f}, {-50, 33892.0f}, {0, 27219.0f}, {50, 22021.0f}, {100, 17926.0f}, {150, 14674.0f},
69 {200, 12081.0f}, {250, 10000.0f}, {300, 8315.0f}, {350, 6948.0f}, {400, 5834.0f}, {450, 4917.0f},
70 {500, 4161.0f}, {550, 3535.0f}, {600, 3014.0f}, {650, 2586.0f}, {700, 2228.0f}, {750, 1925.0f},
71 {800, 1669.0f}, {850, 1452.0f}, {900, 1268.0f}, {950, 1110.0f}, {1000, 974.0f}, {1050, 858.0f},
72 {1100, 758.0f}, {1150, 672.0f}, {1200, 596.0f}, {1250, 531.0f}, {1300, 474.0f}, {1350, 424.0f},
73 {1400, 381.0f}, {1450, 342.0f}, {1500, 309.0f},
90 #if TS_MURATA_NCU15XH103F6SXX_POSITION_IN_RESISTOR_DIVIDER_IS_R_1 == true
91 #define TS_MURATA_NCU15XH103F6SXX_ADC_VOLTAGE_V_MAX_V \
92 ((float)((TS_MURATA_NCU15XH103F6SXX_RESISTOR_DIVIDER_SUPPLY_VOLTAGE_V * ts_ncu15xh103f6sxxLut[ts_ncu15xh103f6sxxLutSize-1u].resistance_Ohm) / (ts_ncu15xh103f6sxxLut[ts_ncu15xh103f6sxxLutSize-1u].resistance_Ohm+TS_MURATA_NCU15XH103F6SXX_RESISTOR_DIVIDER_RESISTANCE_R_1_R_2_Ohm)))
93 #define TS_MURATA_NCU15XH103F6SXX_ADC_VOLTAGE_V_MIN_V \
94 ((float)((TS_MURATA_NCU15XH103F6SXX_RESISTOR_DIVIDER_SUPPLY_VOLTAGE_V * ts_ncu15xh103f6sxxLut[0u].resistance_Ohm) / (ts_ncu15xh103f6sxxLut[0u].resistance_Ohm+TS_MURATA_NCU15XH103F6SXX_RESISTOR_DIVIDER_RESISTANCE_R_1_R_2_Ohm)))
96 #define TS_MURATA_NCU15XH103F6SXX_ADC_VOLTAGE_V_MIN_V \
97 ((float)((TS_MURATA_NCU15XH103F6SXX_RESISTOR_DIVIDER_SUPPLY_VOLTAGE_V * ts_ncu15xh103f6sxxLut[ts_ncu15xh103f6sxxLutSize-1u].resistance_Ohm) / (ts_ncu15xh103f6sxxLut[ts_ncu15xh103f6sxxLutSize-1u].resistance_Ohm+TS_MURATA_NCU15XH103F6SXX_RESISTOR_DIVIDER_RESISTANCE_R_1_R_2_Ohm)))
98 #define TS_MURATA_NCU15XH103F6SXX_ADC_VOLTAGE_V_MAX_V \
99 ((float)((TS_MURATA_NCU15XH103F6SXX_RESISTOR_DIVIDER_SUPPLY_VOLTAGE_V * ts_ncu15xh103f6sxxLut[0u].resistance_Ohm) / (ts_ncu15xh103f6sxxLut[0u].resistance_Ohm+TS_MURATA_NCU15XH103F6SXX_RESISTOR_DIVIDER_RESISTANCE_R_1_R_2_Ohm)))
110 int16_t temperature_ddegC = INT16_MIN;
116 temperature_ddegC = INT16_MIN;
119 temperature_ddegC = INT16_MAX;
122 #if TS_MURATA_NCU15XH103F6SXX_POSITION_IN_RESISTOR_DIVIDER_IS_R_1 == true
128 const float resistance_Ohm =
134 uint16_t between_high = 0;
135 uint16_t between_low = 0;
138 between_low = i + 1u;
144 if (!(((between_high == 0u) && (between_low == 0u)) ||
156 return temperature_ddegC;
162 int16_t temperature_ddegC = 0;
164 return temperature_ddegC;
#define FAS_ASSERT(x)
Assertion macro that asserts that x is true.
#define FAS_TRAP
Define that evaluates to essential boolean false thus tripping an assert.
float MATH_LinearInterpolation(const float x1, const float y1, const float x2, const float y2, const float x_interpolate)
Linear inter-/extrapolates a third point according to two given points.
math library for often used math functions
int16_t TS_Mur00GetTemperatureFromLut(uint16_t adcVoltage_mV)
returns temperature based on measured ADC voltage.
int16_t TS_Mur00GetTemperatureFromPolynomial(uint16_t adcVoltage_mV)
returns temperature based on measured ADC voltage
static const TS_TEMPERATURE_SENSOR_LUT_s ts_ncu15xh103f6sxxLut[]
#define TS_MURATA_NCU15XH103F6SXX_ADC_VOLTAGE_V_MAX_V
#define TS_MURATA_NCU15XH103F6SXX_ADC_VOLTAGE_V_MIN_V
static const uint16_t ts_ncu15xh103f6sxxLutSize
Resistive divider used for measuring temperature.
#define TS_MURATA_NCU15XH103F6SXX_RESISTOR_DIVIDER_RESISTANCE_R_1_R_2_Ohm
#define TS_MURATA_NCU15XH103F6SXX_RESISTOR_DIVIDER_SUPPLY_VOLTAGE_V
int16_t temperature_ddegC
#define TS_SCALING_FACTOR_1V_IN_MV_FLOAT