1# Copyright (c) 2022, Wouter Cappelle 2# SPDX-License-Identifier: Apache-2.0 3 4include: sensor-device.yaml 5 6properties: 7 io-channels: 8 required: true 9 description: ADC channel for temperature sensor 10 11 avgslope: 12 type: string 13 required: true 14 description: | 15 Average slope of T-V chart (in mV/°C), found in MCU datasheet 16 chapters "Electrical characteristics" or "Operating conditions" 17 18 ntc: 19 type: boolean 20 description: | 21 Negative Temperature Coefficient 22 23 Set when the sensor's value is inversely proportional to temperature 24 (i.e., the sensor's value decreases as the temperature increases). 25 26 This is visible in the formula used for temperature calculation, which has the 27 form "Calibration_Value - ADC_Value" rather than "ADC_Value - Calibration_Value". 28