ConOpSys V2970
P004.07
ANVILEX control operating system
|
KG2 RTD P013.49 V1.0 board class. More...
#include <P013_49_V1_0_RTD.h>
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... | |
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... | |
KG2 RTD P013.49 V1.0 board class.
TP013_49_V1_0_RTD::TP013_49_V1_0_RTD | ( | ) |
Constructor method.
RTD board P013.49 V1.0 object conctructor.
References f32_RTD_Temperature_1, f32_RTD_Temperature_2, f32_RTD_Temperature_3, f32_RTD_Temperature_4, object_f32_Temperature_Channel_1, object_f32_Temperature_Channel_2, object_f32_Temperature_Channel_3, object_f32_Temperature_Channel_4, object_f32_Temperature_Gain_Channel_1, object_f32_Temperature_Gain_Channel_2, object_f32_Temperature_Gain_Channel_3, object_f32_Temperature_Gain_Channel_4, object_f32_Temperature_Offset_Channel_1, object_f32_Temperature_Offset_Channel_2, object_f32_Temperature_Offset_Channel_3, object_f32_Temperature_Offset_Channel_4, object_u16_RTD_Raw_Data_Channel_1, object_u16_RTD_Raw_Data_Channel_2, object_u16_RTD_Raw_Data_Channel_3, object_u16_RTD_Raw_Data_Channel_4, TBlock_Connector::Set_Type(), TBlock_Input_Connector::Set_Type(), u16_RTD_Status_1, u16_RTD_Status_2, u16_RTD_Status_3, u16_RTD_Status_4, u32_RTD_Hardware_Error_Count_1, u32_RTD_Hardware_Error_Count_2, u32_RTD_Hardware_Error_Count_3, u32_RTD_Hardware_Error_Count_4, u32_RTD_Temperature_Read_Count_1, u32_RTD_Temperature_Read_Count_2, u32_RTD_Temperature_Read_Count_3, u32_RTD_Temperature_Read_Count_4, u32_RTD_Temperature_Read_Success_Count_1, u32_RTD_Temperature_Read_Success_Count_2, u32_RTD_Temperature_Read_Success_Count_3, u32_RTD_Temperature_Read_Success_Count_4, and u32_RTD_Timeout_Error_Count.
TP013_49_V1_0_RTD::~TP013_49_V1_0_RTD | ( | ) |
Destructor method.
RTD board P013.49 V1.0 object destructor.
Calculate resistance from ADC value.
Referenced by Get_Temperature_Channel_1(), Get_Temperature_Channel_2(), Get_Temperature_Channel_3(), and Get_Temperature_Channel_4().
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().
|
virtual |
Functional block execution method.
References Get_Temperature_Channel_1(), Get_Temperature_Channel_2(), Get_Temperature_Channel_3(), and Get_Temperature_Channel_4().
|
private |
References Calculate_Resistance(), Configure_Channel(), TPRT::enum_ITS_90, TPRT::enum_Pt100, f32_RTD_Temperature_1, TConOpSys_Variant_Data::f32_Value, object_f32_Temperature_Channel_1, object_f32_Temperature_Gain_Channel_1, object_f32_Temperature_Offset_Channel_1, TBlock_Input_Connector::object_Pointer, TBlock_Connector::object_Storage, object_u16_RTD_Raw_Data_Channel_1, TConOpSys_Variant_Data::pf32_Value, TPRT::Resistance_To_Temperature(), RTD_CHANNEL_1_FAULT_RESET_WORD, RTD_CHANNEL_1_READ_FAULT_STATUS, RTD_CHANNEL_1_READ_TEMPERATURE, RTD_CHANNEL_1_WRITE_CONFIGURATION, RTD_Read(), TConOpSys_Variant::struct_Data, u16_RTD_Status_1, TConOpSys_Variant_Data::u16_Value, u32_RTD_Hardware_Error_Count_1, u32_RTD_Temperature_Read_Count_1, u32_RTD_Temperature_Read_Success_Count_1, and u32_Status_Bits.
Referenced by Execute().
|
private |
References Calculate_Resistance(), Configure_Channel(), TPRT::enum_ITS_90, TPRT::enum_Pt100, f32_RTD_Temperature_2, TConOpSys_Variant_Data::f32_Value, object_f32_Temperature_Channel_2, object_f32_Temperature_Gain_Channel_2, object_f32_Temperature_Offset_Channel_2, TBlock_Input_Connector::object_Pointer, TBlock_Connector::object_Storage, object_u16_RTD_Raw_Data_Channel_2, TConOpSys_Variant_Data::pf32_Value, TPRT::Resistance_To_Temperature(), RTD_CHANNEL_2_FAULT_RESET_WORD, RTD_CHANNEL_2_READ_FAULT_STATUS, RTD_CHANNEL_2_READ_TEMPERATURE, RTD_CHANNEL_2_WRITE_CONFIGURATION, RTD_Read(), TConOpSys_Variant::struct_Data, u16_RTD_Status_2, TConOpSys_Variant_Data::u16_Value, u32_RTD_Hardware_Error_Count_2, u32_RTD_Temperature_Read_Count_2, u32_RTD_Temperature_Read_Success_Count_2, and u32_Status_Bits.
Referenced by Execute().
|
private |
References Calculate_Resistance(), Configure_Channel(), TPRT::enum_ITS_90, TPRT::enum_Pt100, f32_RTD_Temperature_3, TConOpSys_Variant_Data::f32_Value, object_f32_Temperature_Channel_3, object_f32_Temperature_Gain_Channel_3, object_f32_Temperature_Offset_Channel_3, TBlock_Input_Connector::object_Pointer, TBlock_Connector::object_Storage, object_u16_RTD_Raw_Data_Channel_3, TConOpSys_Variant_Data::pf32_Value, TPRT::Resistance_To_Temperature(), RTD_CHANNEL_2_FAULT_RESET_WORD, RTD_CHANNEL_3_READ_FAULT_STATUS, RTD_CHANNEL_3_READ_TEMPERATURE, RTD_CHANNEL_3_WRITE_CONFIGURATION, RTD_Read(), TConOpSys_Variant::struct_Data, u16_RTD_Status_3, TConOpSys_Variant_Data::u16_Value, u32_RTD_Hardware_Error_Count_3, u32_RTD_Temperature_Read_Count_3, u32_RTD_Temperature_Read_Success_Count_3, and u32_Status_Bits.
Referenced by Execute().
|
private |
References Calculate_Resistance(), Configure_Channel(), TPRT::enum_ITS_90, TPRT::enum_Pt100, f32_RTD_Temperature_4, TConOpSys_Variant_Data::f32_Value, object_f32_Temperature_Channel_4, object_f32_Temperature_Gain_Channel_4, object_f32_Temperature_Offset_Channel_4, TBlock_Input_Connector::object_Pointer, TBlock_Connector::object_Storage, object_u16_RTD_Raw_Data_Channel_4, TConOpSys_Variant_Data::pf32_Value, TPRT::Resistance_To_Temperature(), RTD_CHANNEL_4_FAULT_RESET_WORD, RTD_CHANNEL_4_READ_FAULT_STATUS, RTD_CHANNEL_4_READ_TEMPERATURE, RTD_CHANNEL_4_WRITE_CONFIGURATION, RTD_Read(), TConOpSys_Variant::struct_Data, true, u16_RTD_Status_4, TConOpSys_Variant_Data::u16_Value, u32_RTD_Hardware_Error_Count_4, u32_RTD_Temperature_Read_Count_4, u32_RTD_Temperature_Read_Success_Count_4, and u32_Status_Bits.
Referenced by Execute().
|
virtual |
Functional block initialisation method.
RTD board P013.49 V1.0 object initialization.
[in] | struct_Registers_Base_Address | Base address within FPGA address space |
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.
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.
[in] | struct_Registers_Base_Address | Base address within FPGA address space |
References struct_Registers.
Read 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 Get_Temperature_Channel_1(), Get_Temperature_Channel_2(), Get_Temperature_Channel_3(), and Get_Temperature_Channel_4().
|
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().
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().
|
virtual |
Send information method.
Send detailed information about RTD block.
[in] | object_Protocol | Pointer to the communication protocol object |
References f32_RTD_Temperature_1, f32_RTD_Temperature_2, f32_RTD_Temperature_3, f32_RTD_Temperature_4, TProtocol_Base::Transmit_F32_Value_As_Decimal(), TProtocol_Base::Transmit_String(), TProtocol_Base::Transmit_U16_Value_As_Hex(), TProtocol_Base::Transmit_U32_Value_As_Decimal(), u16_RTD_Status_1, u16_RTD_Status_2, u16_RTD_Status_3, u16_RTD_Status_4, u32_RTD_Hardware_Error_Count_1, u32_RTD_Hardware_Error_Count_2, u32_RTD_Hardware_Error_Count_3, u32_RTD_Hardware_Error_Count_4, u32_RTD_Temperature_Read_Count_1, u32_RTD_Temperature_Read_Count_2, u32_RTD_Temperature_Read_Count_3, u32_RTD_Temperature_Read_Count_4, u32_RTD_Temperature_Read_Success_Count_1, u32_RTD_Temperature_Read_Success_Count_2, u32_RTD_Temperature_Read_Success_Count_3, and u32_RTD_Temperature_Read_Success_Count_4.
union { ... } |
U32 TP013_49_V1_0_RTD::__pad0__ |
U32 TP013_49_V1_0_RTD::bool_FPGA_Timeout_Fault_Channel_1 |
U32 TP013_49_V1_0_RTD::bool_FPGA_Timeout_Fault_Channel_2 |
U32 TP013_49_V1_0_RTD::bool_FPGA_Timeout_Fault_Channel_3 |
U32 TP013_49_V1_0_RTD::bool_FPGA_Timeout_Fault_Channel_4 |
U32 TP013_49_V1_0_RTD::bool_RTD_Hardware_Fault_Channel_1 |
U32 TP013_49_V1_0_RTD::bool_RTD_Hardware_Fault_Channel_2 |
U32 TP013_49_V1_0_RTD::bool_RTD_Hardware_Fault_Channel_3 |
U32 TP013_49_V1_0_RTD::bool_RTD_Hardware_Fault_Channel_4 |
|
private |
Referenced by Get_Temperature_Channel_1(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_2(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_3(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_4(), Send_Information(), and TP013_49_V1_0_RTD().
TBlock_Output_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Channel_1 |
Referenced by Get_Temperature_Channel_1(), and TP013_49_V1_0_RTD().
TBlock_Output_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Channel_2 |
Referenced by Get_Temperature_Channel_2(), and TP013_49_V1_0_RTD().
TBlock_Output_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Channel_3 |
Referenced by Get_Temperature_Channel_3(), and TP013_49_V1_0_RTD().
TBlock_Output_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Channel_4 |
Referenced by Get_Temperature_Channel_4(), and TP013_49_V1_0_RTD().
TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Gain_Channel_1 |
Referenced by Get_Temperature_Channel_1(), and TP013_49_V1_0_RTD().
TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Gain_Channel_2 |
Referenced by Get_Temperature_Channel_2(), and TP013_49_V1_0_RTD().
TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Gain_Channel_3 |
Referenced by Get_Temperature_Channel_3(), and TP013_49_V1_0_RTD().
TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Gain_Channel_4 |
Referenced by Get_Temperature_Channel_4(), and TP013_49_V1_0_RTD().
TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Offset_Channel_1 |
Referenced by Get_Temperature_Channel_1(), and TP013_49_V1_0_RTD().
TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Offset_Channel_2 |
Referenced by Get_Temperature_Channel_2(), and TP013_49_V1_0_RTD().
TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Offset_Channel_3 |
Referenced by Get_Temperature_Channel_3(), and TP013_49_V1_0_RTD().
TBlock_Input_Connector TP013_49_V1_0_RTD::object_f32_Temperature_Offset_Channel_4 |
Referenced by Get_Temperature_Channel_4(), and TP013_49_V1_0_RTD().
TBlock_Output_Connector TP013_49_V1_0_RTD::object_u16_RTD_Raw_Data_Channel_1 |
Referenced by Get_Temperature_Channel_1(), and TP013_49_V1_0_RTD().
TBlock_Output_Connector TP013_49_V1_0_RTD::object_u16_RTD_Raw_Data_Channel_2 |
Referenced by Get_Temperature_Channel_2(), and TP013_49_V1_0_RTD().
TBlock_Output_Connector TP013_49_V1_0_RTD::object_u16_RTD_Raw_Data_Channel_3 |
Referenced by Get_Temperature_Channel_3(), and TP013_49_V1_0_RTD().
TBlock_Output_Connector TP013_49_V1_0_RTD::object_u16_RTD_Raw_Data_Channel_4 |
Referenced by Get_Temperature_Channel_4(), and TP013_49_V1_0_RTD().
|
private |
FPGA memory mapped registers.
Referenced by Map(), RTD_Read(), RTD_Wait(), and RTD_Write().
|
private |
Referenced by Get_Temperature_Channel_1(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_2(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_3(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_4(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by RTD_Wait().
|
private |
Referenced by Get_Temperature_Channel_1(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_2(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_3(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_4(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_1(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_2(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_3(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_4(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_1(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_2(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_3(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Get_Temperature_Channel_4(), Send_Information(), and TP013_49_V1_0_RTD().
|
private |
Referenced by Configure_Channel(), RTD_Read(), RTD_Write(), and TP013_49_V1_0_RTD().
U32 TP013_49_V1_0_RTD::u32_Status |
struct { ... } TP013_49_V1_0_RTD::u32_Status_Bits |