Prusa MINI Firmware overview
thermistors.h File Reference

Go to the source code of this file.

Macros

#define OVERSAMPLENR   16
 
#define OV(N)   int16_t((N) * (OVERSAMPLENR))
 
#define ANY_THERMISTOR_IS(n)   (THERMISTOR_HEATER_0 == n || THERMISTOR_HEATER_1 == n || THERMISTOR_HEATER_2 == n || THERMISTOR_HEATER_3 == n || THERMISTOR_HEATER_4 == n || THERMISTOR_HEATER_5 == n || THERMISTORBED == n || THERMISTORCHAMBER == n)
 
#define PtA   3.9083E-3
 
#define PtB   -5.775E-7
 
#define PtRt(T, R0)   ((R0) * (1.0 + (PtA) * (T) + (PtB) * (T) * (T)))
 
#define PtAdVal(T, R0, Rup)   (short)(1024 / (Rup / PtRt(T, R0) + 1))
 
#define PtLine(T, R0, Rup)   { OV(PtAdVal(T, R0, Rup)), T }
 
#define _TT_NAME(_N)   temptable_ ## _N
 
#define TT_NAME(_N)   _TT_NAME(_N)
 
#define HEATER_0_TEMPTABLE   nullptr
 
#define HEATER_0_TEMPTABLE_LEN   0
 
#define HEATER_1_TEMPTABLE   nullptr
 
#define HEATER_1_TEMPTABLE_LEN   0
 
#define HEATER_2_TEMPTABLE   nullptr
 
#define HEATER_2_TEMPTABLE_LEN   0
 
#define HEATER_3_TEMPTABLE   nullptr
 
#define HEATER_3_TEMPTABLE_LEN   0
 
#define HEATER_4_TEMPTABLE   nullptr
 
#define HEATER_4_TEMPTABLE_LEN   0
 
#define HEATER_5_TEMPTABLE   nullptr
 
#define HEATER_5_TEMPTABLE_LEN   0
 
#define BED_TEMPTABLE_LEN   0
 
#define CHAMBER_TEMPTABLE_LEN   0
 
#define HEATER_0_RAW_HI_TEMP   16383
 
#define HEATER_0_RAW_LO_TEMP   0
 
#define HEATER_1_RAW_HI_TEMP   16383
 
#define HEATER_1_RAW_LO_TEMP   0
 
#define HEATER_2_RAW_HI_TEMP   16383
 
#define HEATER_2_RAW_LO_TEMP   0
 
#define HEATER_3_RAW_HI_TEMP   16383
 
#define HEATER_3_RAW_LO_TEMP   0
 
#define HEATER_4_RAW_HI_TEMP   16383
 
#define HEATER_4_RAW_LO_TEMP   0
 
#define HEATER_5_RAW_HI_TEMP   16383
 
#define HEATER_5_RAW_LO_TEMP   0
 
#define HEATER_BED_RAW_HI_TEMP   16383
 
#define HEATER_BED_RAW_LO_TEMP   0
 
#define HEATER_CHAMBER_RAW_HI_TEMP   16383
 
#define HEATER_CHAMBER_RAW_LO_TEMP   0
 

Macro Definition Documentation

◆ OVERSAMPLENR

#define OVERSAMPLENR   16

Marlin 3D Printer Firmware Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]

Based on Sprinter and grbl. Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

◆ OV

#define OV (   N)    int16_t((N) * (OVERSAMPLENR))

◆ ANY_THERMISTOR_IS

#define ANY_THERMISTOR_IS (   n)    (THERMISTOR_HEATER_0 == n || THERMISTOR_HEATER_1 == n || THERMISTOR_HEATER_2 == n || THERMISTOR_HEATER_3 == n || THERMISTOR_HEATER_4 == n || THERMISTOR_HEATER_5 == n || THERMISTORBED == n || THERMISTORCHAMBER == n)

◆ PtA

#define PtA   3.9083E-3

◆ PtB

#define PtB   -5.775E-7

◆ PtRt

#define PtRt (   T,
  R0 
)    ((R0) * (1.0 + (PtA) * (T) + (PtB) * (T) * (T)))

◆ PtAdVal

#define PtAdVal (   T,
  R0,
  Rup 
)    (short)(1024 / (Rup / PtRt(T, R0) + 1))

◆ PtLine

#define PtLine (   T,
  R0,
  Rup 
)    { OV(PtAdVal(T, R0, Rup)), T }

◆ _TT_NAME

#define _TT_NAME (   _N)    temptable_ ## _N

◆ TT_NAME

#define TT_NAME (   _N)    _TT_NAME(_N)

◆ HEATER_0_TEMPTABLE

#define HEATER_0_TEMPTABLE   nullptr

◆ HEATER_0_TEMPTABLE_LEN

#define HEATER_0_TEMPTABLE_LEN   0

◆ HEATER_1_TEMPTABLE

#define HEATER_1_TEMPTABLE   nullptr

◆ HEATER_1_TEMPTABLE_LEN

#define HEATER_1_TEMPTABLE_LEN   0

◆ HEATER_2_TEMPTABLE

#define HEATER_2_TEMPTABLE   nullptr

◆ HEATER_2_TEMPTABLE_LEN

#define HEATER_2_TEMPTABLE_LEN   0

◆ HEATER_3_TEMPTABLE

#define HEATER_3_TEMPTABLE   nullptr

◆ HEATER_3_TEMPTABLE_LEN

#define HEATER_3_TEMPTABLE_LEN   0

◆ HEATER_4_TEMPTABLE

#define HEATER_4_TEMPTABLE   nullptr

◆ HEATER_4_TEMPTABLE_LEN

#define HEATER_4_TEMPTABLE_LEN   0

◆ HEATER_5_TEMPTABLE

#define HEATER_5_TEMPTABLE   nullptr

◆ HEATER_5_TEMPTABLE_LEN

#define HEATER_5_TEMPTABLE_LEN   0

◆ BED_TEMPTABLE_LEN

#define BED_TEMPTABLE_LEN   0

◆ CHAMBER_TEMPTABLE_LEN

#define CHAMBER_TEMPTABLE_LEN   0

◆ HEATER_0_RAW_HI_TEMP

#define HEATER_0_RAW_HI_TEMP   16383

◆ HEATER_0_RAW_LO_TEMP

#define HEATER_0_RAW_LO_TEMP   0

◆ HEATER_1_RAW_HI_TEMP

#define HEATER_1_RAW_HI_TEMP   16383

◆ HEATER_1_RAW_LO_TEMP

#define HEATER_1_RAW_LO_TEMP   0

◆ HEATER_2_RAW_HI_TEMP

#define HEATER_2_RAW_HI_TEMP   16383

◆ HEATER_2_RAW_LO_TEMP

#define HEATER_2_RAW_LO_TEMP   0

◆ HEATER_3_RAW_HI_TEMP

#define HEATER_3_RAW_HI_TEMP   16383

◆ HEATER_3_RAW_LO_TEMP

#define HEATER_3_RAW_LO_TEMP   0

◆ HEATER_4_RAW_HI_TEMP

#define HEATER_4_RAW_HI_TEMP   16383

◆ HEATER_4_RAW_LO_TEMP

#define HEATER_4_RAW_LO_TEMP   0

◆ HEATER_5_RAW_HI_TEMP

#define HEATER_5_RAW_HI_TEMP   16383

◆ HEATER_5_RAW_LO_TEMP

#define HEATER_5_RAW_LO_TEMP   0

◆ HEATER_BED_RAW_HI_TEMP

#define HEATER_BED_RAW_HI_TEMP   16383

◆ HEATER_BED_RAW_LO_TEMP

#define HEATER_BED_RAW_LO_TEMP   0

◆ HEATER_CHAMBER_RAW_HI_TEMP

#define HEATER_CHAMBER_RAW_HI_TEMP   16383

◆ HEATER_CHAMBER_RAW_LO_TEMP

#define HEATER_CHAMBER_RAW_LO_TEMP   0