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

KG2 RTD P013.49 V1.0 board class. More...

#include <P013_49_V1_0_RTD.h>

Inheritance diagram for TP013_49_V1_0_RTD:
Inheritance graph
Collaboration diagram for TP013_49_V1_0_RTD:
Collaboration graph

Classes

struct  TP013_49_V1_0_RTD_Registers
 

Public Member Functions

 TP013_49_V1_0_RTD ()
 Constructor method. More...
 
 ~TP013_49_V1_0_RTD ()
 Destructor method. More...
 
VOID Map (TP013_49_V1_0_RTD_Registers *struct_Registers_Base_Address)
 RTD board P013.49 V1.0 memory mapping. More...
 
virtual VOID Init ()
 Functional block initialisation method. More...
 
virtual VOID Execute ()
 Functional block execution method. More...
 
virtual VOID Send_Information (TProtocol_Base *object_Protocol)
 Send information method. More...
 

Public Attributes

TBlock_Input_Connector object_f32_Temperature_Gain_Channel_1
 
TBlock_Input_Connector object_f32_Temperature_Gain_Channel_2
 
TBlock_Input_Connector object_f32_Temperature_Gain_Channel_3
 
TBlock_Input_Connector object_f32_Temperature_Gain_Channel_4
 
TBlock_Input_Connector object_f32_Temperature_Offset_Channel_1
 
TBlock_Input_Connector object_f32_Temperature_Offset_Channel_2
 
TBlock_Input_Connector object_f32_Temperature_Offset_Channel_3
 
TBlock_Input_Connector object_f32_Temperature_Offset_Channel_4
 
TBlock_Output_Connector object_u16_RTD_Raw_Data_Channel_1
 
TBlock_Output_Connector object_u16_RTD_Raw_Data_Channel_2
 
TBlock_Output_Connector object_u16_RTD_Raw_Data_Channel_3
 
TBlock_Output_Connector object_u16_RTD_Raw_Data_Channel_4
 
TBlock_Output_Connector object_f32_Temperature_Channel_1
 
TBlock_Output_Connector object_f32_Temperature_Channel_2
 
TBlock_Output_Connector object_f32_Temperature_Channel_3
 
TBlock_Output_Connector object_f32_Temperature_Channel_4
 
union {
   U32   u32_Status
 
   struct {
      U32   bool_FPGA_Timeout_Fault_Channel_1:1
 
      U32   bool_RTD_Hardware_Fault_Channel_1:1
 
      U32   bool_FPGA_Timeout_Fault_Channel_2:1
 
      U32   bool_RTD_Hardware_Fault_Channel_2:1
 
      U32   bool_FPGA_Timeout_Fault_Channel_3:1
 
      U32   bool_RTD_Hardware_Fault_Channel_3:1
 
      U32   bool_FPGA_Timeout_Fault_Channel_4:1
 
      U32   bool_RTD_Hardware_Fault_Channel_4:1
 
      U32   __pad0__:24
 
   }   u32_Status_Bits
 
}; 
 

Private Member Functions

BOOL RTD_Wait ()
 Wait for RTD ready. More...
 
BOOL RTD_Read (U16 u16_Command, U16 *u16_Data)
 Read register value. More...
 
BOOL RTD_Write (U16 u16_Command, U16 u16_Data)
 Write register value. More...
 
BOOL Configure_Channel (U16 u16_Command, U16 u16_Data)
 RTD chip configuration method. More...
 
BOOL Get_Temperature_Channel_1 ()
 
BOOL Get_Temperature_Channel_2 ()
 
BOOL Get_Temperature_Channel_3 ()
 
BOOL Get_Temperature_Channel_4 ()
 
F32 Calculate_Resistance (U16 u16_ADC_Value)
 Calculate resistance from ADC value. More...
 

Private Attributes

volatile TP013_49_V1_0_RTD_Registersstruct_Registers
 FPGA memory mapped registers. More...
 
U32 u32_RTD_Timeout_Error_Count
 
U32 u32_RTD_Temperature_Read_Count_1
 
U32 u32_RTD_Temperature_Read_Count_2
 
U32 u32_RTD_Temperature_Read_Count_3
 
U32 u32_RTD_Temperature_Read_Count_4
 
U32 u32_RTD_Temperature_Read_Success_Count_1
 
U32 u32_RTD_Temperature_Read_Success_Count_2
 
U32 u32_RTD_Temperature_Read_Success_Count_3
 
U32 u32_RTD_Temperature_Read_Success_Count_4
 
U32 u32_RTD_Hardware_Error_Count_1
 
U32 u32_RTD_Hardware_Error_Count_2
 
U32 u32_RTD_Hardware_Error_Count_3
 
U32 u32_RTD_Hardware_Error_Count_4
 
U16 u16_RTD_Status_1
 
U16 u16_RTD_Status_2
 
U16 u16_RTD_Status_3
 
U16 u16_RTD_Status_4
 
F32 f32_RTD_Temperature_1
 
F32 f32_RTD_Temperature_2
 
F32 f32_RTD_Temperature_3
 
F32 f32_RTD_Temperature_4
 
volatile U32 u32_Dummy_Counter
 

Detailed Description

KG2 RTD P013.49 V1.0 board class.

Constructor & Destructor Documentation

◆ TP013_49_V1_0_RTD()

TP013_49_V1_0_RTD::TP013_49_V1_0_RTD ( )

◆ ~TP013_49_V1_0_RTD()

TP013_49_V1_0_RTD::~TP013_49_V1_0_RTD ( )

Destructor method.

RTD board P013.49 V1.0 object destructor.

Returns
None
Note
None

Member Function Documentation

◆ Calculate_Resistance()

__forceinline F32 TP013_49_V1_0_RTD::Calculate_Resistance ( U16  u16_ADC_Value)
private

Calculate resistance from ADC value.

Referenced by Get_Temperature_Channel_1(), Get_Temperature_Channel_2(), Get_Temperature_Channel_3(), and Get_Temperature_Channel_4().

Here is the caller graph for this function:

◆ Configure_Channel()

BOOL TP013_49_V1_0_RTD::Configure_Channel ( U16  u16_Command,
U16  u16_Data 
)
private

RTD chip configuration method.

References RTD_Wait(), RTD_Write(), and u32_RTD_Timeout_Error_Count.

Referenced by Get_Temperature_Channel_1(), Get_Temperature_Channel_2(), Get_Temperature_Channel_3(), Get_Temperature_Channel_4(), and Init().

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

◆ Execute()

VOID TP013_49_V1_0_RTD::Execute ( )
virtual

Functional block execution method.

References Get_Temperature_Channel_1(), Get_Temperature_Channel_2(), Get_Temperature_Channel_3(), and Get_Temperature_Channel_4().

Here is the call graph for this function:

◆ Get_Temperature_Channel_1()

BOOL TP013_49_V1_0_RTD::Get_Temperature_Channel_1 ( )
private

◆ Get_Temperature_Channel_2()

BOOL TP013_49_V1_0_RTD::Get_Temperature_Channel_2 ( )
private

◆ Get_Temperature_Channel_3()

BOOL TP013_49_V1_0_RTD::Get_Temperature_Channel_3 ( )
private

◆ Get_Temperature_Channel_4()

BOOL TP013_49_V1_0_RTD::Get_Temperature_Channel_4 ( )
private

◆ Init()

VOID TP013_49_V1_0_RTD::Init ( )
virtual

Functional block initialisation method.

RTD board P013.49 V1.0 object initialization.

Parameters
[in]struct_Registers_Base_AddressBase address within FPGA address space
Returns
None
Note
None

References Configure_Channel(), RTD_CHANNEL_1_CONFIGURATION_WORD, RTD_CHANNEL_1_WRITE_CONFIGURATION, RTD_CHANNEL_2_CONFIGURATION_WORD, RTD_CHANNEL_2_WRITE_CONFIGURATION, RTD_CHANNEL_3_CONFIGURATION_WORD, RTD_CHANNEL_3_WRITE_CONFIGURATION, RTD_CHANNEL_4_CONFIGURATION_WORD, and RTD_CHANNEL_4_WRITE_CONFIGURATION.

Here is the call graph for this function:

◆ Map()

VOID TP013_49_V1_0_RTD::Map ( TP013_49_V1_0_RTD_Registers struct_Registers_Base_Address)

RTD board P013.49 V1.0 memory mapping.

Parameters
[in]struct_Registers_Base_AddressBase address within FPGA address space
Returns
None
Note
None

References struct_Registers.

◆ RTD_Read()

BOOL TP013_49_V1_0_RTD::RTD_Read ( U16  u16_Command,
U16 u16_Data 
)
private

◆ RTD_Wait()

BOOL TP013_49_V1_0_RTD::RTD_Wait ( )
private

Wait for RTD ready.

References THigh_Precision_Timer_Base::Delay(), object_Delay_Timer, RTD_STATUS_REGISTER_READY_BIT, struct_Registers, TP013_49_V1_0_RTD::TP013_49_V1_0_RTD_Registers::u16_RTD_Status, and u32_Dummy_Counter.

Referenced by Configure_Channel(), RTD_Read(), and RTD_Write().

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

◆ RTD_Write()

BOOL TP013_49_V1_0_RTD::RTD_Write ( U16  u16_Command,
U16  u16_Data 
)
private

Write register value.

References RTD_Wait(), struct_Registers, TP013_49_V1_0_RTD::TP013_49_V1_0_RTD_Registers::u16_RTD_Control, TP013_49_V1_0_RTD::TP013_49_V1_0_RTD_Registers::u16_RTD_Data, and u32_RTD_Timeout_Error_Count.

Referenced by Configure_Channel().

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

◆ Send_Information()

VOID TP013_49_V1_0_RTD::Send_Information ( TProtocol_Base object_Protocol)
virtual

Member Data Documentation

◆ 

union { ... }

◆ __pad0__

U32 TP013_49_V1_0_RTD::__pad0__

◆ bool_FPGA_Timeout_Fault_Channel_1

U32 TP013_49_V1_0_RTD::bool_FPGA_Timeout_Fault_Channel_1

◆ bool_FPGA_Timeout_Fault_Channel_2

U32 TP013_49_V1_0_RTD::bool_FPGA_Timeout_Fault_Channel_2

◆ bool_FPGA_Timeout_Fault_Channel_3

U32 TP013_49_V1_0_RTD::bool_FPGA_Timeout_Fault_Channel_3

◆ bool_FPGA_Timeout_Fault_Channel_4

U32 TP013_49_V1_0_RTD::bool_FPGA_Timeout_Fault_Channel_4

◆ bool_RTD_Hardware_Fault_Channel_1

U32 TP013_49_V1_0_RTD::bool_RTD_Hardware_Fault_Channel_1

◆ bool_RTD_Hardware_Fault_Channel_2

U32 TP013_49_V1_0_RTD::bool_RTD_Hardware_Fault_Channel_2

◆ bool_RTD_Hardware_Fault_Channel_3

U32 TP013_49_V1_0_RTD::bool_RTD_Hardware_Fault_Channel_3

◆ bool_RTD_Hardware_Fault_Channel_4

U32 TP013_49_V1_0_RTD::bool_RTD_Hardware_Fault_Channel_4

◆ f32_RTD_Temperature_1

F32 TP013_49_V1_0_RTD::f32_RTD_Temperature_1
private

◆ f32_RTD_Temperature_2

F32 TP013_49_V1_0_RTD::f32_RTD_Temperature_2
private

◆ f32_RTD_Temperature_3

F32 TP013_49_V1_0_RTD::f32_RTD_Temperature_3
private

◆ f32_RTD_Temperature_4

F32 TP013_49_V1_0_RTD::f32_RTD_Temperature_4
private

◆ object_f32_Temperature_Channel_1

TBlock_Output_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Channel_1

◆ object_f32_Temperature_Channel_2

TBlock_Output_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Channel_2

◆ object_f32_Temperature_Channel_3

TBlock_Output_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Channel_3

◆ object_f32_Temperature_Channel_4

TBlock_Output_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Channel_4

◆ object_f32_Temperature_Gain_Channel_1

TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Gain_Channel_1

◆ object_f32_Temperature_Gain_Channel_2

TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Gain_Channel_2

◆ object_f32_Temperature_Gain_Channel_3

TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Gain_Channel_3

◆ object_f32_Temperature_Gain_Channel_4

TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Gain_Channel_4

◆ object_f32_Temperature_Offset_Channel_1

TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Offset_Channel_1

◆ object_f32_Temperature_Offset_Channel_2

TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Offset_Channel_2

◆ object_f32_Temperature_Offset_Channel_3

TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Offset_Channel_3

◆ object_f32_Temperature_Offset_Channel_4

TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Offset_Channel_4

◆ object_u16_RTD_Raw_Data_Channel_1

TBlock_Output_Connector TP013_49_V1_0_RTD::object_u16_RTD_Raw_Data_Channel_1

◆ object_u16_RTD_Raw_Data_Channel_2

TBlock_Output_Connector TP013_49_V1_0_RTD::object_u16_RTD_Raw_Data_Channel_2

◆ object_u16_RTD_Raw_Data_Channel_3

TBlock_Output_Connector TP013_49_V1_0_RTD::object_u16_RTD_Raw_Data_Channel_3

◆ object_u16_RTD_Raw_Data_Channel_4

TBlock_Output_Connector TP013_49_V1_0_RTD::object_u16_RTD_Raw_Data_Channel_4

◆ struct_Registers

volatile TP013_49_V1_0_RTD_Registers* TP013_49_V1_0_RTD::struct_Registers
private

FPGA memory mapped registers.

Referenced by Map(), RTD_Read(), RTD_Wait(), and RTD_Write().

◆ u16_RTD_Status_1

U16 TP013_49_V1_0_RTD::u16_RTD_Status_1
private

◆ u16_RTD_Status_2

U16 TP013_49_V1_0_RTD::u16_RTD_Status_2
private

◆ u16_RTD_Status_3

U16 TP013_49_V1_0_RTD::u16_RTD_Status_3
private

◆ u16_RTD_Status_4

U16 TP013_49_V1_0_RTD::u16_RTD_Status_4
private

◆ u32_Dummy_Counter

volatile U32 TP013_49_V1_0_RTD::u32_Dummy_Counter
private

Referenced by RTD_Wait().

◆ u32_RTD_Hardware_Error_Count_1

U32 TP013_49_V1_0_RTD::u32_RTD_Hardware_Error_Count_1
private

◆ u32_RTD_Hardware_Error_Count_2

U32 TP013_49_V1_0_RTD::u32_RTD_Hardware_Error_Count_2
private

◆ u32_RTD_Hardware_Error_Count_3

U32 TP013_49_V1_0_RTD::u32_RTD_Hardware_Error_Count_3
private

◆ u32_RTD_Hardware_Error_Count_4

U32 TP013_49_V1_0_RTD::u32_RTD_Hardware_Error_Count_4
private

◆ u32_RTD_Temperature_Read_Count_1

U32 TP013_49_V1_0_RTD::u32_RTD_Temperature_Read_Count_1
private

◆ u32_RTD_Temperature_Read_Count_2

U32 TP013_49_V1_0_RTD::u32_RTD_Temperature_Read_Count_2
private

◆ u32_RTD_Temperature_Read_Count_3

U32 TP013_49_V1_0_RTD::u32_RTD_Temperature_Read_Count_3
private

◆ u32_RTD_Temperature_Read_Count_4

U32 TP013_49_V1_0_RTD::u32_RTD_Temperature_Read_Count_4
private

◆ u32_RTD_Temperature_Read_Success_Count_1

U32 TP013_49_V1_0_RTD::u32_RTD_Temperature_Read_Success_Count_1
private

◆ u32_RTD_Temperature_Read_Success_Count_2

U32 TP013_49_V1_0_RTD::u32_RTD_Temperature_Read_Success_Count_2
private

◆ u32_RTD_Temperature_Read_Success_Count_3

U32 TP013_49_V1_0_RTD::u32_RTD_Temperature_Read_Success_Count_3
private

◆ u32_RTD_Temperature_Read_Success_Count_4

U32 TP013_49_V1_0_RTD::u32_RTD_Temperature_Read_Success_Count_4
private

◆ u32_RTD_Timeout_Error_Count

U32 TP013_49_V1_0_RTD::u32_RTD_Timeout_Error_Count
private

◆ u32_Status

U32 TP013_49_V1_0_RTD::u32_Status

◆ 

struct { ... } TP013_49_V1_0_RTD::u32_Status_Bits

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