ConOpSys V2970  P004.07
ANVILEX control operating system
Public Types | Public Member Functions | Private Member Functions | List of all members
TNTC Class Reference

Negative temperature coefficient thermistor (NTC) class. More...

#include <NTCT_Sensor.h>

Collaboration diagram for TNTC:
Collaboration graph

Public Types

enum  TNTC_Scala { enum_B25_100_3988 = 1 , enum_B25_100_3900 = 2 }
 NTC temperature scale enumeration. More...
 
enum  TNTC_Value { enum_10000_Ohm = 1 }
 NTC base resistance ebuneration. More...
 

Public Member Functions

BOOL Temperature_To_Resistance (F32 *f32_Resistance, F32 f32_Temperature, TNTC_Scala enum_NTC_Scala, TNTC_Value enum_NTC_Value)
 The function calculates the electrical resistance of NTC at given temperature and defined resistance R0 at 0°C for a NTC element. More...
 
BOOL Resistance_To_Temperature (F32 *f32_Temperature, F32 f32_Resistance, TNTC_Scala enum_NTC_Scala, TNTC_Value enum_NTC_Value)
 The function calculates temperature by given electrical resistance of a NTC sensor. More...
 
BOOL Time_To_Temperature (F32 *f32_Temperature, F32 f32_Charging_Time, TNTC_Scala enum_NTC_Scala, TNTC_Value enum_NTC_Value, F32 f32_Relative_Reference_Voltage, F32 f32_Capacitance)
 The function calculates temperature by given charging time. More...
 

Private Member Functions

BOOL Get_Base_Resistance (F32 *f32_Base_Resistance, TNTC_Value enum_NTC_Value)
 The function returns base electrical resistance in ohms. More...
 
BOOL Get_Scala_Coefficients (F32 *f32_Betta, F32 *f32_Base_Temperature, TNTC_Scala enum_NTC_Scala)
 The function returns base electrical resistance in ohms. More...
 

Detailed Description

Negative temperature coefficient thermistor (NTC) class.

Member Enumeration Documentation

◆ TNTC_Scala

NTC temperature scale enumeration.

Enumerator
enum_B25_100_3988 

B25/100 B=3988 scala.

enum_B25_100_3900 

B25/100 B=3900 scala.

◆ TNTC_Value

NTC base resistance ebuneration.

Enumerator
enum_10000_Ohm 

Base resistance 10kOhm.

Member Function Documentation

◆ Get_Base_Resistance()

BOOL TNTC::Get_Base_Resistance ( F32 f32_Base_Resistance,
TNTC_Value  enum_NTC_Value 
)
private

The function returns base electrical resistance in ohms.


Note
None
Parameters
[out]*f32_Base_ResistanceBase resistance at given temperature.
[in]enum_NTC_ValueValue of the NTC termomenter.
Returns
Converstion status code
Return values
trueConverstion successed
falseConversuin error
Override
Not allowed
Attention
None
UML diagram
dot_TNTC__Get_Base_Resistance.png

References enum_10000_Ohm.

Referenced by Resistance_To_Temperature().

Here is the caller graph for this function:

◆ Get_Scala_Coefficients()

BOOL TNTC::Get_Scala_Coefficients ( F32 f32_Betta,
F32 f32_Base_Temperature,
TNTC_Scala  enum_NTC_Scala 
)
private

The function returns base electrical resistance in ohms.


Note
None
Parameters
[out]*f32_BettaBetta coefficient.
[out]*f32_Base_TemperatureBase temperature in degree celsius.
[in]enum_NTC_ScalaTemperature scala
Returns
Converstion status code
Return values
trueConverstion successed
falseConversuin error
Override
Not allowed
Attention
None
UML diagram
dot_TNTC__Get_Scala_Coefficients.png

References enum_B25_100_3900, and enum_B25_100_3988.

Referenced by Resistance_To_Temperature().

Here is the caller graph for this function:

◆ Resistance_To_Temperature()

BOOL TNTC::Resistance_To_Temperature ( F32 f32_Temperature,
F32  f32_Resistance,
TNTC_Scala  enum_NTC_Scala,
TNTC_Value  enum_NTC_Value 
)

The function calculates temperature by given electrical resistance of a NTC sensor.


Note
None
Parameters
[out]*f32_TemperatureTemperature in degree celsius.
[in]f32_ResistanceResistance at given temperature.
[in]enum_NTC_ScalaTemperature scala
[in]enum_NTC_ValueValue of the NTC element.
Returns
Converstion status code
Return values
trueConverstion successed
falseConversuin error
Override
Not allowed
Attention
None
UML diagram
dot_TNTC__Resistance_To_Temperature.png

References Get_Base_Resistance(), and Get_Scala_Coefficients().

Referenced by TP018_39_KG3_BLA_T1::Execute(), and Time_To_Temperature().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Temperature_To_Resistance()

BOOL TNTC::Temperature_To_Resistance ( F32 f32_Resistance,
F32  f32_Temperature,
TNTC_Scala  enum_NTC_Scala,
TNTC_Value  enum_NTC_Value 
)

The function calculates the electrical resistance of NTC at given temperature and defined resistance R0 at 0°C for a NTC element.


Note
None
Parameters
[out]*f32_ResistanceResistance at given temperature.
[in]f32_TemperatureTemperature in degree celsius.
[in]enum_NTC_ScalaTemperature scala
[in]enum_NTC_ValueValue of the NTC element.
Returns
Converstion status code
Return values
trueConverstion successed
falseConverstion error
Override
Not allowed
Attention
None
UML diagram
dot_TNTC__Temperature_To_Resistance.png

◆ Time_To_Temperature()

BOOL TNTC::Time_To_Temperature ( F32 f32_Temperature,
F32  f32_Charging_Time,
TNTC_Scala  enum_NTC_Scala,
TNTC_Value  enum_NTC_Value,
F32  f32_Relative_Reference_Voltage,
F32  f32_Capacitance 
)

The function calculates temperature by given charging time.


Note
None
Parameters
[out]*f32_TemperatureTemperature in degree celsius.
[in]f32_Charging_TimeCharging time of the slope capacitor in seconds.
[in]enum_NTC_ScalaTemperature scala.
[in]enum_NTC_ValueValue of the NTC element.
[in]f32_Relative_Reference_VoltageComparator relative reference voltage in range 0.1 to 0.9.
[in]f32_CapacitanceCapacitance of the integration capacitor in farad.
Returns
Converstion status code
Return values
trueConverstion successed
falseConversuin error
Override
Not allowed
Attention
None
UML diagram
dot_TNTC__Time_To_Temperature.png

References Resistance_To_Temperature().

Referenced by TP019_11_KG3_FC::Execute(), and TP019_11_KG3_MOD::Execute().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: