ConOpSys V2970
P004.07
ANVILEX control operating system
|
#include <ABCC_Base.h>
Classes | |
struct | TABBC_Process_Data |
struct | TProcess_Data_Parameter_Record |
struct | TSPI_MISO_Frame |
struct | TSPI_MOSI_Frame |
Public Member Functions | |
TABCC_Base () | |
Class constructor method. More... | |
virtual | ~TABCC_Base () |
Class destructor method. More... | |
VOID | Init () |
ABCC driver initialisation method. More... | |
VOID | Done () |
ABCC driver Finaliseation method. More... | |
VOID | Assign_SPI_Master (TSPI_Master_Base *object_New_SPI_Master) |
Assign SPI master hardware driver. More... | |
VOID | Unassign_SPI_Master () |
Unassign SPI master hardware driver. More... | |
VOID | Activate_Process_Data () |
Activate process data processing. More... | |
VOID | Deactivate_Process_Data () |
Deactivate process data processing. More... | |
VOID | Execute () |
VOID | Execute_System_Timer () |
VOID | Map_Write_Parameter_To_Process_Data (TParameter_Base *object_Parameter) |
Map parameter to the write process data. More... | |
VOID | Map_Read_Parameter_To_Process_Data (TParameter_Base *object_Parameter) |
BOOL | Is_Initialised () |
!< Map parameter to the read process data More... | |
VOID | Send_Information (TProtocol_Base *object_Protocol) |
Send information about object. More... | |
Protected Member Functions | |
virtual VOID | Object_Command (ABP_MsgType *psNewMessage, ABP_MsgType *psResponceMessage)=0 |
Object command processing method. More... | |
virtual VOID | Instance_Command (ABP_MsgType *psNewMessage, ABP_MsgType *psResponceMessage)=0 |
Instance command processing method. More... | |
U16 | Get_Message_Data_Length (ABP_MsgType *struct_Message) |
VOID | Set_Message_Data_Length (ABP_MsgType *struct_Message, U16 u16_Length) |
VOID | Get_Message_Data_U8 (ABP_MsgType *psMsg, U8 *u8_Data, U16 u16_Offset) |
VOID | Set_Message_Data_U8 (ABP_MsgType *psMsg, U8 u8_Data, U16 u16_Offset) |
VOID | Get_Message_Data_U16 (ABP_MsgType *psMsg, U16 *u16_Data, U16 u16_Offset) |
VOID | Set_Message_Data_U16 (ABP_MsgType *psMsg, U16 u16_Data, U16 u16_Offset) |
VOID | Set_Message_Data_String (ABP_MsgType *psMsg, const char *pcString, U16 iNumChar, U16 u16_Offset) |
VOID | Set_Message_Map_ADI_Area (ABP_MsgType *psMsg, U8 u8_ADI_Data_Type, U8 u8_ADI_Elements_Number, U16 u16_ADI_Order_Number) |
VOID | Set_Msg_Header (ABP_MsgType *psMsg, U8 bObject, U16 iInstance, U8 bAttribute, ABP_MsgCmdType eService, U16 iDataSize, U8 bSourceId) |
VOID | Create_Responce_From_Request (ABP_MsgType *struct_Request_Message, ABP_MsgType *struct_Responce_Message) |
VOID | Create_Error_Responce_From_Request (ABP_MsgType *struct_Request_Message, ABP_MsgType *struct_Responce_Message, ABP_MsgErrorCodeType enum_Error_Code) |
VOID | Set_Message_Responce (ABP_MsgType *psMsg, U16 u16_Data_Size) |
VOID | Set_Message_Error_Response (ABP_MsgType *psMsg, U16 iMsgDataSize, ABP_MsgErrorCodeType eErr) |
BOOL | Is_Message_Command (ABP_MsgType *struct_Message) |
U16 | Get_Message_Instance (ABP_MsgType *struct_Message) |
U8 | Get_Message_Command_Code (ABP_MsgType *struct_Message) |
U8 | Get_Message_Command_Extension_0 (ABP_MsgType *struct_Message) |
VOID | Get_Attribute (ABP_MsgType *psMsg, U8 bObject, U16 iInstance, U8 bAttribute, U8 bSourceId) |
VOID | Set_Byte_Attribute (ABP_MsgType *psMsg, U8 bObject, U16 iInstance, U8 bAttribute, U8 bVal, U8 bSourceId) |
VOID | Map_ADI_Write_Area (ABP_MsgType *psMsg, U8 bObject, U16 iInstance, U8 bSourceId, U16 u16_ADI_Instance_Number) |
VOID | Map_ADI_Read_Area (ABP_MsgType *psMsg, U8 bObject, U16 iInstance, U8 bSourceId, U16 u16_ADI_Instance_Number) |
Private Types | |
enum | TABCC_FSM_State { enum_ABCC_Transfer_Frame , enum_ABCC_Error } |
enum | TData_Type { enum_BOOL = ABP_BOOL , enum_SINT8 = ABP_SINT8 , enum_SINT16 = ABP_SINT16 , enum_SINT32 = ABP_SINT32 , enum_U8 = ABP_U8 , enum_UINT16 = ABP_UINT16 , enum_UINT32 = ABP_UINT32 , enum_CHAR = ABP_CHAR , enum_ENUM = ABP_ENUM , enum_BITS8 = ABP_BITS8 , enum_BITS16 = ABP_BITS16 , enum_BITS32 = ABP_BITS32 , enum_OCTET = ABP_OCTET , enum_SINT64 = ABP_SINT64 , enum_UINT64 = ABP_UINT64 , enum_FLOAT = ABP_FLOAT , enum_PAD0 = ABP_PAD0 , enum_PAD1 = ABP_PAD1 , enum_PAD2 = ABP_PAD2 , enum_PAD3 = ABP_PAD3 , enum_PAD4 = ABP_PAD4 , enum_PAD5 = ABP_PAD5 , enum_PAD6 = ABP_PAD6 , enum_PAD7 = ABP_PAD7 , enum_PAD8 = ABP_PAD8 , enum_PAD9 = ABP_PAD9 , enum_PAD10 = ABP_PAD10 , enum_PAD11 = ABP_PAD11 , enum_PAD12 = ABP_PAD12 , enum_PAD13 = ABP_PAD13 , enum_PAD14 = ABP_PAD14 , enum_PAD15 = ABP_PAD15 , enum_PAD16 = ABP_PAD16 , enum_BOOL1 = ABP_BOOL1 , enum_BIT1 = ABP_BIT1 , enum_BIT2 = ABP_BIT2 , enum_BIT3 = ABP_BIT3 , enum_BIT4 = ABP_BIT4 , enum_BIT5 = ABP_BIT5 , enum_BIT6 = ABP_BIT6 , enum_BIT7 = ABP_BIT7 , enum_Unsupported = 255 } |
typedef struct TABCC_Base::TSPI_MOSI_Frame | TSPI_MOSI_Frame |
typedef struct TABCC_Base::TSPI_MISO_Frame | TSPI_MISO_Frame |
typedef struct TABCC_Base::TABBC_Process_Data | TABBC_Process_Data |
typedef enum TABCC_Base::TData_Type | TData_Type |
typedef struct TABCC_Base::TProcess_Data_Parameter_Record | TProcess_Data_Parameter_Record |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
TABCC_Base::TABCC_Base | ( | ) |
Class constructor method.
References ABCC_MAXIMAL_MAPPABLE_PROCESS_DATA_PARAMETERS, bool_First_Transfer_After_Reset, bool_Initialisation_Error, bool_Message_Data_Buffer_Overflow, bool_New_RX_Message_Present, bool_New_RX_Process_Data_Present, bool_New_TX_Message_Present, bool_Process_Data_Mapping_Error, bool_Retransmit_Requered, bool_Toggle_Bit_Status, enum_ABCC_State, enum_ABCC_Transfer_Frame, enum_Net_Data_Format, enum_Parameter_Support, fsm_ABCC, NULL, TABCC_Base::TProcess_Data_Parameter_Record::object_Parameter, object_SPI_Master, object_Write_Process_Data_Timer, TInterval_Timer::Set_Interval(), struct_Read_Process_Data_Parameter_Buffer, struct_Write_Process_Data_Parameter_Buffer, tril_ABCC_Module_Detection_Status, tril_ABCC_Module_Reset_Status, tril_ABCC_Module_Setup_Status, tril_ABCC_Module_Startup_Status, tril_ABCC_Network_Setup_Status, TABCC_Base::TProcess_Data_Parameter_Record::tril_Mapped, u16_ABCC_LED_Status, u16_ABCC_Module_Type, u16_ABCC_Network_Type, TABCC_Base::TProcess_Data_Parameter_Record::u16_Offset, u32_ABCC_Error_Responce_Counter, u32_ABCC_Request_Counter, u32_Frame_CRC_Error_Counter, u32_Module_Reset_Acceptance_Time, u32_Module_Startup_Time, u32_Read_Process_Data_Parameter_Buffer_Index, u32_Startup_Timeout, u32_Write_Process_Data_Parameter_Buffer_Index, u8_ABCC_Firmware_Version_Build, u8_ABCC_Firmware_Version_Major, u8_ABCC_Firmware_Version_Minor, u8_Exception_Code, u8_Exception_Info_Code, and unset.
|
virtual |
Class destructor method.
|
private |
VOID TABCC_Base::Activate_Process_Data | ( | ) |
Activate process data processing.
References TInterval_Timer::Enable(), and object_Write_Process_Data_Timer.
Referenced by TApplication_Base::Run().
VOID TABCC_Base::Assign_SPI_Master | ( | TSPI_Master_Base * | object_New_SPI_Master | ) |
Assign SPI master hardware driver.
[in] | *object_New_SPI_Master | - Pointer to the SPI master hardware driver |
References object_SPI_Master.
Referenced by TApplication_Base::Init().
|
private |
References ABCC_MAXIMAL_MAPPABLE_PROCESS_DATA_PARAMETERS, ABCC_MESSAGE_DATA_BUFFER_SIZE, ABCC_PROCESS_DATA_BUFFER_SIZE, bool_First_Transfer_After_Reset, bool_Message_Data_Buffer_Overflow, bool_New_RX_Message_Present, bool_New_RX_Process_Data_Present, bool_New_TX_Message_Present, bool_Toggle_Bit_Status, CRC32_ABCC(), TSPI_Master_Base::CS_Activate(), TSPI_Master_Base::CS_Deactivate(), TRequest_Synchroniser::Done(), enum_ABCC_Error, enum_ABCC_State, enum_ABCC_Transfer_Frame, false, fsm_ABCC, TParameter_Base::Get_Size(), TRequest_Synchroniser::Is_Request(), NULL, TABCC_Base::TProcess_Data_Parameter_Record::object_Parameter, object_SPI_Master, object_Write_Process_Data_Request, TParameter_Base::Read_Value_As_Raw_Data(), struct_MISO_Buffer, struct_MISO_Message, struct_MOSI_Buffer, struct_MOSI_Message, struct_TX_Process_Data, struct_Write_Process_Data_Parameter_Buffer, TSPI_Master_Base::Transfer_Buffer(), TABCC_Base::TProcess_Data_Parameter_Record::tril_Mapped, true, u16_ABCC_LED_Status, TABCC_Base::TSPI_MOSI_Frame::u16_Dummy, TABCC_Base::TSPI_MISO_Frame::u16_LED_Status, TABCC_Base::TSPI_MOSI_Frame::u16_Message_Length, TABCC_Base::TProcess_Data_Parameter_Record::u16_Offset, TABCC_Base::TSPI_MOSI_Frame::u16_Process_Data_Length, u32_ABCC_Error_Responce_Counter, u32_ABCC_Request_Counter, TABCC_Base::TSPI_MOSI_Frame::u32_CRC, TABCC_Base::TSPI_MISO_Frame::u32_CRC, u32_Frame_CRC_Error_Counter, u32_Test_CRC, TABCC_Base::TSPI_MISO_Frame::u8_AnyBus_Status, TABCC_Base::TSPI_MOSI_Frame::u8_Application_Status, TABCC_Base::TSPI_MOSI_Frame::u8_Bits, TABCC_Base::TSPI_MISO_Frame::u8_Bits, TABCC_Base::TSPI_MOSI_Frame::u8_Byte, TABCC_Base::TABBC_Process_Data::u8_Data, TABCC_Base::TSPI_MOSI_Frame::u8_Interrupt_Mask, TABCC_Base::TSPI_MOSI_Frame::u8_Message_Data, TABCC_Base::TSPI_MISO_Frame::u8_Message_Data, TABCC_Base::TSPI_MOSI_Frame::u8_Process_Data, TABCC_Base::TSPI_MOSI_Frame::u8_Reserved, TABCC_Base::TSPI_MOSI_Frame::u8_SPI_Control_Byte, and TABCC_Base::TSPI_MISO_Frame::u8_SPI_Status.
Referenced by Dummy_Command(), Execute(), Get_Data_Format_Command(), Get_Exception_Command(), Get_Exception_Info_Command(), Get_Firmware_Version_Command(), Get_Module_Type_Command(), Get_Network_Type_Command(), Get_Parameter_Support_Command(), Map_ADI_Read_Area_Command(), Map_ADI_Write_Area_Command(), Network_Setup(), Read_Process_Data_Size_Command(), Set_Node_Address(), Setup_Complete_Command(), and Write_Process_Data_Size_Command().
|
protected |
|
protected |
|
private |
VOID TABCC_Base::Deactivate_Process_Data | ( | ) |
Deactivate process data processing.
References TInterval_Timer::Disable(), and object_Write_Process_Data_Timer.
Referenced by Done(), and TApplication_Base::Run().
VOID TABCC_Base::Done | ( | ) |
ABCC driver Finaliseation method.
References Deactivate_Process_Data().
|
private |
References bool_New_RX_Message_Present, bool_New_TX_Message_Present, Bus_Transaction(), TSystem_Timer_Base::Get_Actual_Time(), TSystem_Timer_Base::Is_Timeout_ms(), object_System_Timer, and RX_Message_Processed().
Referenced by Init().
VOID TABCC_Base::Execute | ( | ) |
References bool_New_RX_Message_Present, Bus_Transaction(), Process_New_RX_Message(), and Process_Read_Process_Data().
Referenced by TApplication_Base::Run().
VOID TABCC_Base::Execute_System_Timer | ( | ) |
References TInterval_Timer::Execute(), object_Write_Process_Data_Request, object_Write_Process_Data_Timer, and TRequest_Synchroniser::Request().
Referenced by TApplication_Base::System_Task_Handler().
|
protected |
Referenced by Get_Data_Format_Command(), Get_Exception_Command(), Get_Exception_Info_Command(), Get_Firmware_Version_Command(), Get_Module_Type_Command(), Get_Network_Type_Command(), Get_Parameter_Support_Command(), Read_Process_Data_Size_Command(), and Write_Process_Data_Size_Command().
|
private |
References bool_Initialisation_Error, bool_New_RX_Message_Present, bool_New_TX_Message_Present, Bus_Transaction(), enum_Net_Data_Format, TSystem_Timer_Base::Get_Actual_Time(), Get_Attribute(), Get_Message_Data_U8(), TSystem_Timer_Base::Is_Timeout_ms(), object_System_Timer, RX_Message_Processed(), struct_MISO_Message, struct_MOSI_Message, and true.
Referenced by Init().
|
private |
References enum_BITS16, enum_BITS32, enum_BITS8, enum_BOOL, enum_CHAR, enum_ENUM, enum_FLOAT, enum_OCTET, enum_SINT16, enum_SINT32, enum_SINT64, enum_SINT8, enum_U8, enum_UINT16, enum_UINT32, and enum_UINT64.
Referenced by Get_Parameter_Data_Type_Properties().
|
private |
Get exception command.
References bool_Initialisation_Error, bool_New_RX_Message_Present, bool_New_TX_Message_Present, Bus_Transaction(), TSystem_Timer_Base::Get_Actual_Time(), Get_Attribute(), Get_Message_Data_U8(), TSystem_Timer_Base::Is_Timeout_ms(), object_System_Timer, RX_Message_Processed(), struct_MISO_Message, struct_MOSI_Message, true, and u8_Exception_Code.
Referenced by Network_Setup().
|
private |
References bool_Initialisation_Error, bool_New_RX_Message_Present, bool_New_TX_Message_Present, Bus_Transaction(), TSystem_Timer_Base::Get_Actual_Time(), Get_Attribute(), Get_Message_Data_U8(), TSystem_Timer_Base::Is_Timeout_ms(), object_System_Timer, RX_Message_Processed(), struct_MISO_Message, struct_MOSI_Message, true, and u8_Exception_Info_Code.
Referenced by Network_Setup().
|
private |
References bool_Initialisation_Error, bool_New_RX_Message_Present, bool_New_TX_Message_Present, Bus_Transaction(), TSystem_Timer_Base::Get_Actual_Time(), Get_Attribute(), Get_Message_Data_U8(), TSystem_Timer_Base::Is_Timeout_ms(), object_System_Timer, RX_Message_Processed(), struct_MISO_Message, struct_MOSI_Message, true, u8_ABCC_Firmware_Version_Build, u8_ABCC_Firmware_Version_Major, and u8_ABCC_Firmware_Version_Minor.
Referenced by Init().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by Get_Module_Type_Command(), Get_Network_Type_Command(), Read_Process_Data_Size_Command(), and Write_Process_Data_Size_Command().
|
protected |
Referenced by Get_Data_Format_Command(), Get_Exception_Command(), Get_Exception_Info_Command(), Get_Firmware_Version_Command(), and Get_Parameter_Support_Command().
|
protected |
Referenced by TABCC_DPV1::Instance_Command(), and Process_New_RX_Message().
|
private |
References bool_Initialisation_Error, bool_New_RX_Message_Present, bool_New_TX_Message_Present, Bus_Transaction(), TSystem_Timer_Base::Get_Actual_Time(), Get_Attribute(), Get_Message_Data_U16(), TSystem_Timer_Base::Is_Timeout_ms(), object_System_Timer, RX_Message_Processed(), struct_MISO_Message, struct_MOSI_Message, true, and u16_ABCC_Module_Type.
Referenced by Init().
|
private |
References bool_Initialisation_Error, bool_New_RX_Message_Present, bool_New_TX_Message_Present, Bus_Transaction(), TSystem_Timer_Base::Get_Actual_Time(), Get_Attribute(), Get_Message_Data_U16(), TSystem_Timer_Base::Is_Timeout_ms(), object_System_Timer, RX_Message_Processed(), struct_MISO_Message, struct_MOSI_Message, true, and u16_ABCC_Network_Type.
Referenced by Init().
|
private |
References enum_BOOL, enum_BOOL, enum_CDT64, enum_DS, enum_DT, enum_F128, enum_F16, enum_F256, enum_F32, enum_F64, enum_F80, enum_FLOAT, enum_I128, enum_I16, enum_I256, enum_I32, enum_I64, enum_I8, enum_IQ1, enum_IQ10, enum_IQ11, enum_IQ12, enum_IQ13, enum_IQ14, enum_IQ15, enum_IQ16, enum_IQ17, enum_IQ18, enum_IQ19, enum_IQ2, enum_IQ20, enum_IQ21, enum_IQ22, enum_IQ23, enum_IQ24, enum_IQ25, enum_IQ26, enum_IQ27, enum_IQ28, enum_IQ29, enum_IQ3, enum_IQ30, enum_IQ31, enum_IQ32, enum_IQ4, enum_IQ5, enum_IQ6, enum_IQ7, enum_IQ8, enum_IQ9, enum_LDT64, enum_PBOOL, enum_PF128, enum_PF16, enum_PF256, enum_PF32, enum_PF64, enum_PF80, enum_PI128, enum_PI16, enum_PI256, enum_PI32, enum_PI64, enum_PI8, enum_PIQ1, enum_PIQ10, enum_PIQ11, enum_PIQ12, enum_PIQ13, enum_PIQ14, enum_PIQ15, enum_PIQ16, enum_PIQ17, enum_PIQ18, enum_PIQ19, enum_PIQ2, enum_PIQ20, enum_PIQ21, enum_PIQ22, enum_PIQ23, enum_PIQ24, enum_PIQ25, enum_PIQ26, enum_PIQ27, enum_PIQ28, enum_PIQ29, enum_PIQ3, enum_PIQ30, enum_PIQ31, enum_PIQ32, enum_PIQ4, enum_PIQ5, enum_PIQ6, enum_PIQ7, enum_PIQ8, enum_PIQ9, enum_PU128, enum_PU16, enum_PU256, enum_PU32, enum_PU64, enum_PU8, enum_SINT16, enum_SINT32, enum_SINT64, enum_SINT8, enum_U128, enum_U16, enum_U256, enum_U32, enum_U64, enum_U8, enum_U8, enum_UINT16, enum_UINT32, enum_UINT64, enum_Unassigned, enum_Unknown, enum_Unsupported, and TParameter_Base::Get_Type().
Referenced by Get_Parameter_Data_Type_Properties().
|
private |
References enum_Unsupported, Get_Data_Type_Size_In_Bytes(), Get_Parameter_Data_Type(), and NULL.
Referenced by Map_ADI_Read_Area_Command(), and Map_ADI_Write_Area_Command().
|
private |
References bool_Initialisation_Error, bool_New_RX_Message_Present, bool_New_TX_Message_Present, Bus_Transaction(), enum_Parameter_Support, TSystem_Timer_Base::Get_Actual_Time(), Get_Attribute(), Get_Message_Data_U8(), TSystem_Timer_Base::Is_Timeout_ms(), object_System_Timer, RX_Message_Processed(), struct_MISO_Message, struct_MOSI_Message, and true.
Referenced by Init().
|
private |
References Maximum_U16(), u16_Read_Process_Data_Size, and u16_Write_Process_Data_Size.
VOID TABCC_Base::Init | ( | ) |
ABCC driver initialisation method.
References ABCC_CFG_RESET_ACCEPTANCE_TIME_MS, ABCC_CFG_STARTUP_TIME_MS, Activate_Hardware_Reset(), APPL_FW_UPGRADE_STARTUP_TIME_MS, bool_Initialisation_Error, Deactivate_Hardware_Reset(), Dummy_Command(), TSystem_Timer_Base::Get_Actual_Time(), Get_Data_Format_Command(), Get_Firmware_Version_Command(), Get_Module_Type_Command(), Get_Network_Type_Command(), Get_Parameter_Support_Command(), Is_Hardware_Reset_State(), Is_New_Firmware_Avaliable(), Map_ADI_Read_Area_Command(), Map_ADI_Write_Area_Command(), Module_Detect(), Network_Setup(), object_System_Terminal, object_System_Timer, Read_Process_Data_Size_Command(), Set_Node_Address(), Setup_Complete_Command(), TProtocol_Base::Transmit_String(), TProtocol_Base::Transmit_String_Of_Char(), tril_ABCC_Module_Detection_Status, tril_ABCC_Module_Reset_Status, tril_ABCC_Module_Setup_Status, tril_ABCC_Module_Startup_Status, tril_ABCC_Network_Setup_Status, true, u32_Module_Reset_Acceptance_Time, u32_Module_Startup_Time, u32_Startup_Timeout, unset, and Write_Process_Data_Size_Command().
Referenced by TApplication_Base::Init().
|
protectedpure virtual |
Instance command processing method.
Implemented in TABCC_DPV1.
Referenced by Process_New_RX_Message().
|
private |
References Is_Interrupt_Line_Active().
Referenced by Init().
BOOL TABCC_Base::Is_Initialised | ( | ) |
!< Map parameter to the read process data
Get initialisation status
References bool_Initialisation_Error.
Referenced by TApplication_Base::Init().
|
private |
|
protected |
|
private |
|
private |
Return new read process data status.
References bool_New_RX_Process_Data_Present.
Referenced by Process_Read_Process_Data().
|
private |
References bool_New_RX_Message_Present.
|
protected |
References Extract_U8_From_U16().
Referenced by Map_ADI_Read_Area_Command().
|
private |
References ABCC_MAXIMAL_MAPPABLE_PROCESS_DATA_PARAMETERS, bool_Initialisation_Error, bool_New_RX_Message_Present, bool_New_TX_Message_Present, Bus_Transaction(), enum_Unsupported, TSystem_Timer_Base::Get_Actual_Time(), Get_Parameter_Data_Type_Properties(), TSystem_Timer_Base::Is_Timeout_ms(), Map_ADI_Read_Area(), NULL, TABCC_Base::TProcess_Data_Parameter_Record::object_Parameter, object_System_Timer, RX_Message_Processed(), Set_Message_Data_Length(), Set_Message_Map_ADI_Area(), struct_MOSI_Message, struct_Read_Process_Data_Parameter_Buffer, TABCC_Base::TProcess_Data_Parameter_Record::tril_Mapped, true, and TABCC_Base::TProcess_Data_Parameter_Record::u16_Offset.
Referenced by Init().
|
protected |
References Extract_U8_From_U16().
Referenced by Map_ADI_Write_Area_Command().
|
private |
References ABCC_MAXIMAL_MAPPABLE_PROCESS_DATA_PARAMETERS, bool_Initialisation_Error, bool_New_RX_Message_Present, bool_New_TX_Message_Present, Bus_Transaction(), enum_Unsupported, TSystem_Timer_Base::Get_Actual_Time(), Get_Parameter_Data_Type_Properties(), TSystem_Timer_Base::Is_Timeout_ms(), Map_ADI_Write_Area(), NULL, TABCC_Base::TProcess_Data_Parameter_Record::object_Parameter, object_System_Timer, RX_Message_Processed(), Set_Message_Data_Length(), Set_Message_Map_ADI_Area(), struct_MOSI_Message, struct_Write_Process_Data_Parameter_Buffer, TABCC_Base::TProcess_Data_Parameter_Record::tril_Mapped, true, and TABCC_Base::TProcess_Data_Parameter_Record::u16_Offset.
Referenced by Init().
VOID TABCC_Base::Map_Read_Parameter_To_Process_Data | ( | TParameter_Base * | object_Parameter | ) |
VOID TABCC_Base::Map_Write_Parameter_To_Process_Data | ( | TParameter_Base * | object_Parameter | ) |
Map parameter to the write process data.
References ABCC_MAXIMAL_MAPPABLE_PROCESS_DATA_PARAMETERS, bool_Process_Data_Mapping_Error, NULL, TABCC_Base::TProcess_Data_Parameter_Record::object_Parameter, struct_Write_Process_Data_Parameter_Buffer, and u32_Write_Process_Data_Parameter_Buffer_Index.
|
private |
|
private |
Network setup method.
References bool_Initialisation_Error, bool_New_RX_Message_Present, Bus_Transaction(), enum_ABCC_State, TSystem_Timer_Base::Get_Actual_Time(), Get_Exception_Command(), Get_Exception_Info_Command(), TSystem_Timer_Base::Is_Timeout_ms(), object_System_Timer, Process_New_RX_Message(), and true.
Referenced by Init().
|
private |
References bool_New_RX_Process_Data_Present.
Referenced by Process_Read_Process_Data().
|
protectedpure virtual |
Object command processing method.
Implemented in TABCC_DPV1.
Referenced by Process_New_RX_Message().
|
private |
References bool_New_RX_Message_Present, bool_New_TX_Message_Present, Get_Message_Instance(), Instance_Command(), Object_Command(), struct_MISO_Message, and struct_MOSI_Message.
Referenced by Execute(), and Network_Setup().
|
private |
References Is_New_Read_Process_Data_Present(), and New_Read_Process_Data_Processed().
Referenced by Execute().
|
private |
References bool_Initialisation_Error, bool_New_RX_Message_Present, bool_New_TX_Message_Present, Bus_Transaction(), TSystem_Timer_Base::Get_Actual_Time(), Get_Attribute(), Get_Message_Data_U16(), TSystem_Timer_Base::Is_Timeout_ms(), object_System_Timer, RX_Message_Processed(), struct_MISO_Message, struct_MOSI_Message, true, and u16_Read_Process_Data_Size.
Referenced by Init().
|
private |
RX message processed notification.
References bool_New_RX_Message_Present.
Referenced by Dummy_Command(), Get_Data_Format_Command(), Get_Exception_Command(), Get_Exception_Info_Command(), Get_Firmware_Version_Command(), Get_Module_Type_Command(), Get_Network_Type_Command(), Get_Parameter_Support_Command(), Map_ADI_Read_Area_Command(), Map_ADI_Write_Area_Command(), Read_Process_Data_Size_Command(), Set_Node_Address(), Setup_Complete_Command(), and Write_Process_Data_Size_Command().
VOID TABCC_Base::Send_Information | ( | TProtocol_Base * | object_Protocol | ) |
Send information about object.
References ABCC_MESSAGE_DATA_BUFFER_SIZE, ABCC_PROCESS_DATA_BUFFER_SIZE, bool_Initialisation_Error, bool_Message_Data_Buffer_Overflow, bool_Process_Data_Mapping_Error, enum_ABCC_State, enum_Net_Data_Format, enum_Parameter_Support, TProtocol_Base::Transmit_BOOL_Value_As_Decimal(), TProtocol_Base::Transmit_String(), TProtocol_Base::Transmit_String_Of_Char(), TProtocol_Base::Transmit_TRIL_Value_As_Decimal(), TProtocol_Base::Transmit_U16_Value_As_Decimal(), TProtocol_Base::Transmit_U16_Value_As_Hex(), TProtocol_Base::Transmit_U32_Value_As_Decimal(), TProtocol_Base::Transmit_U8_Value_As_Decimal(), tril_ABCC_Module_Detection_Status, tril_ABCC_Module_Reset_Status, tril_ABCC_Module_Setup_Status, tril_ABCC_Module_Startup_Status, tril_ABCC_Network_Setup_Status, u16_ABCC_LED_Status, u16_ABCC_Module_Type, u16_ABCC_Network_Type, u16_Read_Process_Data_Size, u16_Write_Process_Data_Size, u32_Frame_CRC_Error_Counter, u32_Module_Reset_Acceptance_Time, u32_Module_Startup_Time, u32_Read_Process_Data_Parameter_Buffer_Index, u32_Write_Process_Data_Parameter_Buffer_Index, u8_ABCC_Firmware_Version_Build, u8_ABCC_Firmware_Version_Major, and u8_ABCC_Firmware_Version_Minor.
Referenced by TCommand_ANYBUS::Execute().
|
protected |
Referenced by Set_Node_Address(), and Setup_Complete_Command().
Referenced by TABCC_DPV1::Instance_Command(), Map_ADI_Read_Area_Command(), and Map_ADI_Write_Area_Command().
|
protected |
Referenced by TABCC_DPV1::Instance_Command(), and TABCC_DPV1::Object_Command().
|
protected |
References Extract_U8_From_U16().
Referenced by TABCC_DPV1::Instance_Command(), and TABCC_DPV1::Object_Command().
Referenced by TABCC_DPV1::Instance_Command(), and TABCC_DPV1::Object_Command().
|
protected |
Referenced by TABCC_DPV1::Instance_Command(), and TABCC_DPV1::Object_Command().
|
protected |
References Extract_U8_From_U16().
Referenced by Map_ADI_Read_Area_Command(), and Map_ADI_Write_Area_Command().
Referenced by TABCC_DPV1::Instance_Command(), and TABCC_DPV1::Object_Command().
|
protected |
|
private |
References bool_Initialisation_Error, bool_New_RX_Message_Present, bool_New_TX_Message_Present, Bus_Transaction(), TSystem_Timer_Base::Get_Actual_Time(), TSystem_Timer_Base::Is_Timeout_ms(), object_System_Timer, RX_Message_Processed(), Set_Byte_Attribute(), struct_MOSI_Message, and true.
Referenced by Init().
|
private |
References bool_Initialisation_Error, bool_New_RX_Message_Present, bool_New_TX_Message_Present, Bus_Transaction(), TSystem_Timer_Base::Get_Actual_Time(), TSystem_Timer_Base::Is_Timeout_ms(), object_System_Timer, RX_Message_Processed(), Set_Byte_Attribute(), struct_MOSI_Message, and true.
Referenced by Init().
VOID TABCC_Base::Unassign_SPI_Master | ( | ) |
Unassign SPI master hardware driver.
References NULL, and object_SPI_Master.
|
private |
References bool_Initialisation_Error, bool_New_RX_Message_Present, bool_New_TX_Message_Present, Bus_Transaction(), TSystem_Timer_Base::Get_Actual_Time(), Get_Attribute(), Get_Message_Data_U16(), TSystem_Timer_Base::Is_Timeout_ms(), object_System_Timer, RX_Message_Processed(), struct_MISO_Message, struct_MOSI_Message, true, and u16_Write_Process_Data_Size.
Referenced by Init().
|
private |
Toggle bit status flag.
Referenced by Bus_Transaction(), and TABCC_Base().
|
private |
ABCC module detection status flag.
Referenced by Get_Data_Format_Command(), Get_Exception_Command(), Get_Exception_Info_Command(), Get_Firmware_Version_Command(), Get_Module_Type_Command(), Get_Network_Type_Command(), Get_Parameter_Support_Command(), Init(), Is_Initialised(), Map_ADI_Read_Area_Command(), Map_ADI_Write_Area_Command(), Network_Setup(), Read_Process_Data_Size_Command(), Send_Information(), Set_Node_Address(), Setup_Complete_Command(), TABCC_Base(), and Write_Process_Data_Size_Command().
|
private |
Interval timer object for triggering write process data update.
Referenced by Bus_Transaction(), Send_Information(), and TABCC_Base().
|
private |
< New receive message present flag
Nre receive process data present flag
Referenced by Bus_Transaction(), Dummy_Command(), Execute(), Get_Data_Format_Command(), Get_Exception_Command(), Get_Exception_Info_Command(), Get_Firmware_Version_Command(), Get_Module_Type_Command(), Get_Network_Type_Command(), Get_Parameter_Support_Command(), Is_New_RX_Message_Present(), Map_ADI_Read_Area_Command(), Map_ADI_Write_Area_Command(), Network_Setup(), Process_New_RX_Message(), Read_Process_Data_Size_Command(), RX_Message_Processed(), Set_Node_Address(), Setup_Complete_Command(), TABCC_Base(), and Write_Process_Data_Size_Command().
|
private |
Frame CRC error counter.
Referenced by Bus_Transaction(), Is_New_Read_Process_Data_Present(), New_Read_Process_Data_Processed(), and TABCC_Base().
|
private |
Referenced by Bus_Transaction(), Dummy_Command(), Get_Data_Format_Command(), Get_Exception_Command(), Get_Exception_Info_Command(), Get_Firmware_Version_Command(), Get_Module_Type_Command(), Get_Network_Type_Command(), Get_Parameter_Support_Command(), Map_ADI_Read_Area_Command(), Map_ADI_Write_Area_Command(), Process_New_RX_Message(), Read_Process_Data_Size_Command(), Set_Node_Address(), Setup_Complete_Command(), TABCC_Base(), and Write_Process_Data_Size_Command().
|
private |
Message data buffer overflow flag.
Referenced by Map_Read_Parameter_To_Process_Data(), Map_Write_Parameter_To_Process_Data(), Send_Information(), and TABCC_Base().
|
private |
New transmit message present flag.
Referenced by TABCC_Base().
|
private |
Retransmit requered flag.
Referenced by Bus_Transaction(), and TABCC_Base().
|
private |
Process data mapping error flag.
Referenced by Bus_Transaction(), Network_Setup(), Send_Information(), and TABCC_Base().
|
private |
Parameter support flag.
Referenced by Get_Data_Format_Command(), Send_Information(), and TABCC_Base().
|
private |
ABCC module type.
Referenced by Get_Parameter_Support_Command(), Send_Information(), and TABCC_Base().
|
private |
APB message to the module.
Referenced by Bus_Transaction(), and TABCC_Base().
|
private |
Pointer to the SPI master object.
Initialisation error flag
Referenced by Assign_SPI_Master(), Bus_Transaction(), TABCC_Base(), and Unassign_SPI_Master().
|
private |
Referenced by Bus_Transaction(), and Execute_System_Timer().
|
private |
Write process data request flag.
Referenced by Activate_Process_Data(), Deactivate_Process_Data(), Execute_System_Timer(), and TABCC_Base().
|
private |
Write process data structure.
Referenced by Bus_Transaction().
|
private |
MOSI message frame buffer.
Referenced by Bus_Transaction(), Get_Data_Format_Command(), Get_Exception_Command(), Get_Exception_Info_Command(), Get_Firmware_Version_Command(), Get_Module_Type_Command(), Get_Network_Type_Command(), Get_Parameter_Support_Command(), Process_New_RX_Message(), Read_Process_Data_Size_Command(), and Write_Process_Data_Size_Command().
|
private |
MISO message frame buffer.
Referenced by Bus_Transaction().
|
private |
APB message from the module.
Referenced by Bus_Transaction(), Get_Data_Format_Command(), Get_Exception_Command(), Get_Exception_Info_Command(), Get_Firmware_Version_Command(), Get_Module_Type_Command(), Get_Network_Type_Command(), Get_Parameter_Support_Command(), Map_ADI_Read_Area_Command(), Map_ADI_Write_Area_Command(), Process_New_RX_Message(), Read_Process_Data_Size_Command(), Set_Node_Address(), Setup_Complete_Command(), and Write_Process_Data_Size_Command().
|
private |
First transfer after module reset flag.
Referenced by Map_ADI_Read_Area_Command(), Map_Read_Parameter_To_Process_Data(), and TABCC_Base().
|
private |
Write proceess data parameter buffer index.
|
private |
Read process data structure.
Referenced by Bus_Transaction().
|
private |
Process data read parameter buffer.
Referenced by Bus_Transaction(), Map_ADI_Write_Area_Command(), Map_Write_Parameter_To_Process_Data(), and TABCC_Base().
|
private |
ABCC module reset status flag.
Referenced by Init(), Send_Information(), and TABCC_Base().
|
private |
ABCC module startup status flag.
Referenced by Init(), Send_Information(), and TABCC_Base().
|
private |
ABCC network setup status flag.
Referenced by Init(), Send_Information(), and TABCC_Base().
|
private |
ABCC module setup status flag.
Referenced by Init(), Send_Information(), and TABCC_Base().
|
private |
Module reset acceptance time.
Referenced by Init(), Send_Information(), and TABCC_Base().
|
private |
ABCC module state.
Referenced by Bus_Transaction(), Send_Information(), and TABCC_Base().
|
private |
ABCC network type.
Referenced by Get_Module_Type_Command(), Send_Information(), and TABCC_Base().
|
private |
ABCC firmware major version.
Referenced by Get_Network_Type_Command(), Send_Information(), and TABCC_Base().
|
private |
Process data write size.
Referenced by Get_Requered_Process_Data_Buffer_Size(), Read_Process_Data_Size_Command(), and Send_Information().
|
private |
Exception code.
Referenced by Get_Requered_Process_Data_Buffer_Size(), Send_Information(), and Write_Process_Data_Size_Command().
|
private |
ABCC module request counter.
Referenced by Bus_Transaction(), and TABCC_Base().
|
private |
Referenced by Bus_Transaction(), and TABCC_Base().
|
private |
ABCC module error responce counter.
Referenced by Bus_Transaction(), Send_Information(), and TABCC_Base().
|
private |
Module startup time.
Referenced by Init(), Send_Information(), and TABCC_Base().
|
private |
Module startup timeout.
Referenced by Init(), Send_Information(), and TABCC_Base().
|
private |
Process data write parameter buffer.
Referenced by Map_Read_Parameter_To_Process_Data(), Send_Information(), and TABCC_Base().
|
private |
Referenced by Init(), and TABCC_Base().
|
private |
Network data format.
Referenced by Bus_Transaction().
|
private |
Read proceess data parameter buffer index.
Referenced by Map_Write_Parameter_To_Process_Data(), Send_Information(), and TABCC_Base().
|
private |
Process data read size.
Referenced by Get_Firmware_Version_Command(), Send_Information(), and TABCC_Base().
|
private |
ABCC firmware minor version.
Referenced by Get_Firmware_Version_Command(), Send_Information(), and TABCC_Base().
|
private |
ABCC module firmware version build.
Referenced by Get_Firmware_Version_Command(), Send_Information(), and TABCC_Base().
|
private |
Exception info code.
Referenced by Get_Exception_Command(), and TABCC_Base().
|
private |
ABCC module LED status.
Referenced by Get_Exception_Info_Command(), and TABCC_Base().