ConOpSys V2970  P004.07
ANVILEX control operating system
Classes | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TABCC_Base Class Referenceabstract

#include <ABCC_Base.h>

Inheritance diagram for TABCC_Base:
Inheritance graph
Collaboration diagram for TABCC_Base:
Collaboration graph

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 Member Functions

BOOL Module_Detect ()
 
VOID Activate_Hardware_Reset ()
 Activate hardware reset. More...
 
VOID Deactivate_Hardware_Reset ()
 Deactivate hardware reset. More...
 
BOOL Is_New_Firmware_Avaliable ()
 
BOOL Is_Hardware_Reset_State ()
 
BOOL Is_Interrupt_Line_Active ()
 
VOID Dummy_Command ()
 
VOID Get_Data_Format_Command ()
 
VOID Get_Parameter_Support_Command ()
 
VOID Get_Module_Type_Command ()
 
VOID Get_Network_Type_Command ()
 
VOID Get_Firmware_Version_Command ()
 
VOID Set_Node_Address ()
 
VOID Map_ADI_Write_Area_Command ()
 
VOID Map_ADI_Read_Area_Command ()
 
VOID Read_Process_Data_Size_Command ()
 
VOID Write_Process_Data_Size_Command ()
 
VOID Setup_Complete_Command ()
 
VOID Get_Exception_Command ()
 Get exception command. More...
 
VOID Get_Exception_Info_Command ()
 
BOOL Is_New_RX_Message_Present ()
 
VOID Process_New_RX_Message ()
 
VOID RX_Message_Processed ()
 RX message processed notification. More...
 
BOOL Is_New_Read_Process_Data_Present ()
 Return new read process data status. More...
 
VOID New_Read_Process_Data_Processed ()
 
VOID Process_Read_Process_Data ()
 
BOOL Network_Setup ()
 Network setup method. More...
 
TABCC_Base::TData_Type Get_Parameter_Data_Type (TParameter_Base *object_Parameter)
 
U8 Get_Data_Type_Size_In_Bytes (TABCC_Base::TData_Type enum_Data_Type)
 
BOOL Get_Parameter_Data_Type_Properties (TParameter_Base *object_Parameter, TABCC_Base::TData_Type *enum_Data_Type, U8 *u8_Data_Type_Size)
 
U16 Get_Requered_Process_Data_Buffer_Size ()
 
VOID Bus_Transaction ()
 
U32 CRC32_ABCC (U8 *pbBufferStart, U16 iLength)
 

Private Attributes

TSPI_Master_Baseobject_SPI_Master
 Pointer to the SPI master object. More...
 
BOOL bool_Initialisation_Error
 ABCC module detection status flag. More...
 
TRIL tril_ABCC_Module_Detection_Status
 ABCC module reset status flag. More...
 
TRIL tril_ABCC_Module_Reset_Status
 ABCC module startup status flag. More...
 
TRIL tril_ABCC_Module_Startup_Status
 ABCC module setup status flag. More...
 
TRIL tril_ABCC_Module_Setup_Status
 ABCC network setup status flag. More...
 
TRIL tril_ABCC_Network_Setup_Status
 Module reset acceptance time. More...
 
U32 u32_Module_Reset_Acceptance_Time
 Module startup time. More...
 
U32 u32_Module_Startup_Time
 Module startup timeout. More...
 
U32 u32_Startup_Timeout
 
TABCC_FSM_State fsm_ABCC
 APB message to the module. More...
 
ABP_MsgType struct_MOSI_Message
 APB message from the module. More...
 
ABP_MsgType struct_MISO_Message
 MOSI message frame buffer. More...
 
TSPI_MOSI_Frame struct_MOSI_Buffer
 MISO message frame buffer. More...
 
TSPI_MISO_Frame struct_MISO_Buffer
 Write process data structure. More...
 
TABBC_Process_Data struct_TX_Process_Data
 Read process data structure. More...
 
TABBC_Process_Data struct_RX_Process_Data
 Write proceess data parameter buffer index. More...
 
U32 u32_Write_Process_Data_Parameter_Buffer_Index
 Read proceess data parameter buffer index. More...
 
U32 u32_Read_Process_Data_Parameter_Buffer_Index
 Process data write parameter buffer. More...
 
TProcess_Data_Parameter_Record struct_Write_Process_Data_Parameter_Buffer [ABCC_MAXIMAL_MAPPABLE_PROCESS_DATA_PARAMETERS]
 Process data read parameter buffer. More...
 
TProcess_Data_Parameter_Record struct_Read_Process_Data_Parameter_Buffer [ABCC_MAXIMAL_MAPPABLE_PROCESS_DATA_PARAMETERS]
 First transfer after module reset flag. More...
 
BOOL bool_First_Transfer_After_Reset
 Toggle bit status flag. More...
 
BOOL bool_Toggle_Bit_Status
 Retransmit requered flag. More...
 
BOOL bool_Retransmit_Requered
 New transmit message present flag. More...
 
BOOL bool_New_TX_Message_Present
 
BOOL bool_New_RX_Message_Present
 < New receive message present flag More...
 
BOOL bool_New_RX_Process_Data_Present
 Frame CRC error counter. More...
 
U32 u32_Frame_CRC_Error_Counter
 ABCC module error responce counter. More...
 
U32 u32_ABCC_Error_Responce_Counter
 ABCC module request counter. More...
 
U32 u32_ABCC_Request_Counter
 
U32 u32_Test_CRC
 Network data format. More...
 
NetFormatType enum_Net_Data_Format
 Parameter support flag. More...
 
ParameterSupportType enum_Parameter_Support
 ABCC module type. More...
 
U16 u16_ABCC_Module_Type
 ABCC network type. More...
 
U16 u16_ABCC_Network_Type
 ABCC firmware major version. More...
 
U8 u8_ABCC_Firmware_Version_Major
 ABCC firmware minor version. More...
 
U8 u8_ABCC_Firmware_Version_Minor
 ABCC module firmware version build. More...
 
U8 u8_ABCC_Firmware_Version_Build
 Process data read size. More...
 
U16 u16_Read_Process_Data_Size
 Process data write size. More...
 
U16 u16_Write_Process_Data_Size
 Exception code. More...
 
U8 u8_Exception_Code
 Exception info code. More...
 
U8 u8_Exception_Info_Code
 ABCC module LED status. More...
 
U16 u16_ABCC_LED_Status
 ABCC module state. More...
 
ABP_AnbStateType enum_ABCC_State
 Process data mapping error flag. More...
 
BOOL bool_Process_Data_Mapping_Error
 Message data buffer overflow flag. More...
 
BOOL bool_Message_Data_Buffer_Overflow
 Interval timer object for triggering write process data update. More...
 
TInterval_Timer object_Write_Process_Data_Timer
 Write process data request flag. More...
 
TRequest_Synchroniser object_Write_Process_Data_Request
 

Member Typedef Documentation

◆ TABBC_Process_Data

◆ TData_Type

◆ TProcess_Data_Parameter_Record

◆ TSPI_MISO_Frame

◆ TSPI_MOSI_Frame

Member Enumeration Documentation

◆ TABCC_FSM_State

Enumerator
enum_ABCC_Transfer_Frame 
enum_ABCC_Error 

◆ TData_Type

enum TABCC_Base::TData_Type
private
Enumerator
enum_BOOL 
enum_SINT8 
enum_SINT16 
enum_SINT32 
enum_U8 
enum_UINT16 
enum_UINT32 
enum_CHAR 
enum_ENUM 
enum_BITS8 
enum_BITS16 
enum_BITS32 
enum_OCTET 
enum_SINT64 
enum_UINT64 
enum_FLOAT 
enum_PAD0 
enum_PAD1 
enum_PAD2 
enum_PAD3 
enum_PAD4 
enum_PAD5 
enum_PAD6 
enum_PAD7 
enum_PAD8 
enum_PAD9 
enum_PAD10 
enum_PAD11 
enum_PAD12 
enum_PAD13 
enum_PAD14 
enum_PAD15 
enum_PAD16 
enum_BOOL1 
enum_BIT1 
enum_BIT2 
enum_BIT3 
enum_BIT4 
enum_BIT5 
enum_BIT6 
enum_BIT7 
enum_Unsupported 

Constructor & Destructor Documentation

◆ TABCC_Base()

TABCC_Base::TABCC_Base ( )

Class constructor method.


Note
None
Override
Not allowed
Attention
Don't call this method directly.

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.

Here is the call graph for this function:

◆ ~TABCC_Base()

TABCC_Base::~TABCC_Base ( )
virtual

Class destructor method.


Note
None
Override
Not allowed
Attention
Don't call this method directly.

Member Function Documentation

◆ Activate_Hardware_Reset()

VOID TABCC_Base::Activate_Hardware_Reset ( )
private

Activate hardware reset.

Referenced by Init().

Here is the caller graph for this function:

◆ Activate_Process_Data()

VOID TABCC_Base::Activate_Process_Data ( )

Activate process data processing.


Note
None
Returns
None
Override
Not requered
Attention
None

References TInterval_Timer::Enable(), and object_Write_Process_Data_Timer.

Referenced by TApplication_Base::Run().

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

◆ Assign_SPI_Master()

VOID TABCC_Base::Assign_SPI_Master ( TSPI_Master_Base object_New_SPI_Master)

Assign SPI master hardware driver.


Note
None
Parameters
[in]*object_New_SPI_Master- Pointer to the SPI master hardware driver
Returns
None
Override
Not requered
Attention
None

References object_SPI_Master.

Referenced by TApplication_Base::Init().

Here is the caller graph for this function:

◆ Bus_Transaction()

VOID TABCC_Base::Bus_Transaction ( )
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().

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

◆ CRC32_ABCC()

U32 TABCC_Base::CRC32_ABCC ( U8 pbBufferStart,
U16  iLength 
)
private

Referenced by Bus_Transaction().

Here is the caller graph for this function:

◆ Create_Error_Responce_From_Request()

VOID TABCC_Base::Create_Error_Responce_From_Request ( ABP_MsgType *  struct_Request_Message,
ABP_MsgType *  struct_Responce_Message,
ABP_MsgErrorCodeType  enum_Error_Code 
)
protected

Referenced by TABCC_DPV1::Instance_Command().

Here is the caller graph for this function:

◆ Create_Responce_From_Request()

VOID TABCC_Base::Create_Responce_From_Request ( ABP_MsgType *  struct_Request_Message,
ABP_MsgType *  struct_Responce_Message 
)
protected

Referenced by TABCC_DPV1::Instance_Command().

Here is the caller graph for this function:

◆ Deactivate_Hardware_Reset()

VOID TABCC_Base::Deactivate_Hardware_Reset ( )
private

Deactivate hardware reset.

Referenced by Init().

Here is the caller graph for this function:

◆ Deactivate_Process_Data()

VOID TABCC_Base::Deactivate_Process_Data ( )

Deactivate process data processing.


Note
None
Returns
None
Override
Not requered
Attention
None

References TInterval_Timer::Disable(), and object_Write_Process_Data_Timer.

Referenced by Done(), and TApplication_Base::Run().

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

◆ Done()

VOID TABCC_Base::Done ( )

ABCC driver Finaliseation method.


Note
None
Returns
None
Override
Not requered
Attention
None

References Deactivate_Process_Data().

Here is the call graph for this function:

◆ Dummy_Command()

VOID TABCC_Base::Dummy_Command ( )
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().

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

◆ Execute()

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().

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

◆ Execute_System_Timer()

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().

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

◆ Get_Attribute()

VOID TABCC_Base::Get_Attribute ( ABP_MsgType *  psMsg,
U8  bObject,
U16  iInstance,
U8  bAttribute,
U8  bSourceId 
)
protected

◆ Get_Data_Format_Command()

VOID TABCC_Base::Get_Data_Format_Command ( )
private

◆ Get_Data_Type_Size_In_Bytes()

U8 TABCC_Base::Get_Data_Type_Size_In_Bytes ( TABCC_Base::TData_Type  enum_Data_Type)
private

◆ Get_Exception_Command()

VOID TABCC_Base::Get_Exception_Command ( )
private

◆ Get_Exception_Info_Command()

VOID TABCC_Base::Get_Exception_Info_Command ( )
private

◆ Get_Firmware_Version_Command()

VOID TABCC_Base::Get_Firmware_Version_Command ( )
private

◆ Get_Message_Command_Code()

U8 TABCC_Base::Get_Message_Command_Code ( ABP_MsgType *  struct_Message)
protected

◆ Get_Message_Command_Extension_0()

U8 TABCC_Base::Get_Message_Command_Extension_0 ( ABP_MsgType *  struct_Message)
protected

◆ Get_Message_Data_Length()

U16 TABCC_Base::Get_Message_Data_Length ( ABP_MsgType *  struct_Message)
protected

◆ Get_Message_Data_U16()

VOID TABCC_Base::Get_Message_Data_U16 ( ABP_MsgType *  psMsg,
U16 u16_Data,
U16  u16_Offset 
)
protected

◆ Get_Message_Data_U8()

VOID TABCC_Base::Get_Message_Data_U8 ( ABP_MsgType *  psMsg,
U8 u8_Data,
U16  u16_Offset 
)
protected

◆ Get_Message_Instance()

U16 TABCC_Base::Get_Message_Instance ( ABP_MsgType *  struct_Message)
protected

Referenced by TABCC_DPV1::Instance_Command(), and Process_New_RX_Message().

Here is the caller graph for this function:

◆ Get_Module_Type_Command()

VOID TABCC_Base::Get_Module_Type_Command ( )
private

◆ Get_Network_Type_Command()

VOID TABCC_Base::Get_Network_Type_Command ( )
private

◆ Get_Parameter_Data_Type()

TABCC_Base::TData_Type TABCC_Base::Get_Parameter_Data_Type ( TParameter_Base object_Parameter)
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().

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

◆ Get_Parameter_Data_Type_Properties()

BOOL TABCC_Base::Get_Parameter_Data_Type_Properties ( TParameter_Base object_Parameter,
TABCC_Base::TData_Type enum_Data_Type,
U8 u8_Data_Type_Size 
)
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().

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

◆ Get_Parameter_Support_Command()

VOID TABCC_Base::Get_Parameter_Support_Command ( )
private

◆ Get_Requered_Process_Data_Buffer_Size()

U16 TABCC_Base::Get_Requered_Process_Data_Buffer_Size ( )
private

References Maximum_U16(), u16_Read_Process_Data_Size, and u16_Write_Process_Data_Size.

Here is the call graph for this function:

◆ Init()

VOID TABCC_Base::Init ( )

◆ Instance_Command()

virtual VOID TABCC_Base::Instance_Command ( ABP_MsgType *  psNewMessage,
ABP_MsgType *  psResponceMessage 
)
protectedpure virtual

Instance command processing method.

Implemented in TABCC_DPV1.

Referenced by Process_New_RX_Message().

Here is the caller graph for this function:

◆ Is_Hardware_Reset_State()

BOOL TABCC_Base::Is_Hardware_Reset_State ( )
private

References Is_Interrupt_Line_Active().

Referenced by Init().

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

◆ Is_Initialised()

BOOL TABCC_Base::Is_Initialised ( )

!< Map parameter to the read process data

Get initialisation status

References bool_Initialisation_Error.

Referenced by TApplication_Base::Init().

Here is the caller graph for this function:

◆ Is_Interrupt_Line_Active()

BOOL TABCC_Base::Is_Interrupt_Line_Active ( )
private

Referenced by Is_Hardware_Reset_State().

Here is the caller graph for this function:

◆ Is_Message_Command()

BOOL TABCC_Base::Is_Message_Command ( ABP_MsgType *  struct_Message)
protected

◆ Is_New_Firmware_Avaliable()

BOOL TABCC_Base::Is_New_Firmware_Avaliable ( )
private

Referenced by Init().

Here is the caller graph for this function:

◆ Is_New_Read_Process_Data_Present()

BOOL TABCC_Base::Is_New_Read_Process_Data_Present ( )
private

Return new read process data status.

References bool_New_RX_Process_Data_Present.

Referenced by Process_Read_Process_Data().

Here is the caller graph for this function:

◆ Is_New_RX_Message_Present()

BOOL TABCC_Base::Is_New_RX_Message_Present ( )
private

◆ Map_ADI_Read_Area()

VOID TABCC_Base::Map_ADI_Read_Area ( ABP_MsgType *  psMsg,
U8  bObject,
U16  iInstance,
U8  bSourceId,
U16  u16_ADI_Instance_Number 
)
protected

References Extract_U8_From_U16().

Referenced by Map_ADI_Read_Area_Command().

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

◆ Map_ADI_Read_Area_Command()

VOID TABCC_Base::Map_ADI_Read_Area_Command ( )
private

◆ Map_ADI_Write_Area()

VOID TABCC_Base::Map_ADI_Write_Area ( ABP_MsgType *  psMsg,
U8  bObject,
U16  iInstance,
U8  bSourceId,
U16  u16_ADI_Instance_Number 
)
protected

References Extract_U8_From_U16().

Referenced by Map_ADI_Write_Area_Command().

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

◆ Map_ADI_Write_Area_Command()

VOID TABCC_Base::Map_ADI_Write_Area_Command ( )
private

◆ Map_Read_Parameter_To_Process_Data()

VOID TABCC_Base::Map_Read_Parameter_To_Process_Data ( TParameter_Base object_Parameter)

◆ Map_Write_Parameter_To_Process_Data()

VOID TABCC_Base::Map_Write_Parameter_To_Process_Data ( TParameter_Base object_Parameter)

◆ Module_Detect()

BOOL TABCC_Base::Module_Detect ( )
private

Referenced by Init().

Here is the caller graph for this function:

◆ Network_Setup()

BOOL TABCC_Base::Network_Setup ( )
private

◆ New_Read_Process_Data_Processed()

VOID TABCC_Base::New_Read_Process_Data_Processed ( )
private

References bool_New_RX_Process_Data_Present.

Referenced by Process_Read_Process_Data().

Here is the caller graph for this function:

◆ Object_Command()

virtual VOID TABCC_Base::Object_Command ( ABP_MsgType *  psNewMessage,
ABP_MsgType *  psResponceMessage 
)
protectedpure virtual

Object command processing method.

Implemented in TABCC_DPV1.

Referenced by Process_New_RX_Message().

Here is the caller graph for this function:

◆ Process_New_RX_Message()

VOID TABCC_Base::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().

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

◆ Process_Read_Process_Data()

VOID TABCC_Base::Process_Read_Process_Data ( )
private

References Is_New_Read_Process_Data_Present(), and New_Read_Process_Data_Processed().

Referenced by Execute().

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

◆ Read_Process_Data_Size_Command()

VOID TABCC_Base::Read_Process_Data_Size_Command ( )
private

◆ RX_Message_Processed()

VOID TABCC_Base::RX_Message_Processed ( )
private

◆ Send_Information()

VOID TABCC_Base::Send_Information ( TProtocol_Base object_Protocol)

◆ Set_Byte_Attribute()

VOID TABCC_Base::Set_Byte_Attribute ( ABP_MsgType *  psMsg,
U8  bObject,
U16  iInstance,
U8  bAttribute,
U8  bVal,
U8  bSourceId 
)
protected

Referenced by Set_Node_Address(), and Setup_Complete_Command().

Here is the caller graph for this function:

◆ Set_Message_Data_Length()

VOID TABCC_Base::Set_Message_Data_Length ( ABP_MsgType *  struct_Message,
U16  u16_Length 
)
protected

Referenced by TABCC_DPV1::Instance_Command(), Map_ADI_Read_Area_Command(), and Map_ADI_Write_Area_Command().

Here is the caller graph for this function:

◆ Set_Message_Data_String()

VOID TABCC_Base::Set_Message_Data_String ( ABP_MsgType *  psMsg,
const char *  pcString,
U16  iNumChar,
U16  u16_Offset 
)
protected

Referenced by TABCC_DPV1::Instance_Command(), and TABCC_DPV1::Object_Command().

Here is the caller graph for this function:

◆ Set_Message_Data_U16()

VOID TABCC_Base::Set_Message_Data_U16 ( ABP_MsgType *  psMsg,
U16  u16_Data,
U16  u16_Offset 
)
protected

References Extract_U8_From_U16().

Referenced by TABCC_DPV1::Instance_Command(), and TABCC_DPV1::Object_Command().

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

◆ Set_Message_Data_U8()

VOID TABCC_Base::Set_Message_Data_U8 ( ABP_MsgType *  psMsg,
U8  u8_Data,
U16  u16_Offset 
)
protected

Referenced by TABCC_DPV1::Instance_Command(), and TABCC_DPV1::Object_Command().

Here is the caller graph for this function:

◆ Set_Message_Error_Response()

VOID TABCC_Base::Set_Message_Error_Response ( ABP_MsgType *  psMsg,
U16  iMsgDataSize,
ABP_MsgErrorCodeType  eErr 
)
protected

Referenced by TABCC_DPV1::Instance_Command(), and TABCC_DPV1::Object_Command().

Here is the caller graph for this function:

◆ Set_Message_Map_ADI_Area()

VOID TABCC_Base::Set_Message_Map_ADI_Area ( ABP_MsgType *  psMsg,
U8  u8_ADI_Data_Type,
U8  u8_ADI_Elements_Number,
U16  u16_ADI_Order_Number 
)
protected

References Extract_U8_From_U16().

Referenced by Map_ADI_Read_Area_Command(), and Map_ADI_Write_Area_Command().

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

◆ Set_Message_Responce()

VOID TABCC_Base::Set_Message_Responce ( ABP_MsgType *  psMsg,
U16  u16_Data_Size 
)
protected

Referenced by TABCC_DPV1::Instance_Command(), and TABCC_DPV1::Object_Command().

Here is the caller graph for this function:

◆ Set_Msg_Header()

VOID TABCC_Base::Set_Msg_Header ( ABP_MsgType *  psMsg,
U8  bObject,
U16  iInstance,
U8  bAttribute,
ABP_MsgCmdType  eService,
U16  iDataSize,
U8  bSourceId 
)
protected

◆ Set_Node_Address()

VOID TABCC_Base::Set_Node_Address ( )
private

◆ Setup_Complete_Command()

VOID TABCC_Base::Setup_Complete_Command ( )
private

◆ Unassign_SPI_Master()

VOID TABCC_Base::Unassign_SPI_Master ( )

Unassign SPI master hardware driver.


Note
None
Returns
None
Override
Not requered
Attention
None

References NULL, and object_SPI_Master.

◆ Write_Process_Data_Size_Command()

VOID TABCC_Base::Write_Process_Data_Size_Command ( )
private

Member Data Documentation

◆ bool_First_Transfer_After_Reset

BOOL TABCC_Base::bool_First_Transfer_After_Reset
private

Toggle bit status flag.

Referenced by Bus_Transaction(), and TABCC_Base().

◆ bool_Initialisation_Error

BOOL TABCC_Base::bool_Initialisation_Error
private

◆ bool_Message_Data_Buffer_Overflow

BOOL TABCC_Base::bool_Message_Data_Buffer_Overflow
private

Interval timer object for triggering write process data update.

Referenced by Bus_Transaction(), Send_Information(), and TABCC_Base().

◆ bool_New_RX_Message_Present

BOOL TABCC_Base::bool_New_RX_Message_Present
private

◆ bool_New_RX_Process_Data_Present

BOOL TABCC_Base::bool_New_RX_Process_Data_Present
private

◆ bool_New_TX_Message_Present

BOOL TABCC_Base::bool_New_TX_Message_Present
private

◆ bool_Process_Data_Mapping_Error

BOOL TABCC_Base::bool_Process_Data_Mapping_Error
private

◆ bool_Retransmit_Requered

BOOL TABCC_Base::bool_Retransmit_Requered
private

New transmit message present flag.

Referenced by TABCC_Base().

◆ bool_Toggle_Bit_Status

BOOL TABCC_Base::bool_Toggle_Bit_Status
private

Retransmit requered flag.

Referenced by Bus_Transaction(), and TABCC_Base().

◆ enum_ABCC_State

ABP_AnbStateType TABCC_Base::enum_ABCC_State
private

Process data mapping error flag.

Referenced by Bus_Transaction(), Network_Setup(), Send_Information(), and TABCC_Base().

◆ enum_Net_Data_Format

NetFormatType TABCC_Base::enum_Net_Data_Format
private

Parameter support flag.

Referenced by Get_Data_Format_Command(), Send_Information(), and TABCC_Base().

◆ enum_Parameter_Support

ParameterSupportType TABCC_Base::enum_Parameter_Support
private

ABCC module type.

Referenced by Get_Parameter_Support_Command(), Send_Information(), and TABCC_Base().

◆ fsm_ABCC

TABCC_FSM_State TABCC_Base::fsm_ABCC
private

APB message to the module.

Referenced by Bus_Transaction(), and TABCC_Base().

◆ object_SPI_Master

TSPI_Master_Base* TABCC_Base::object_SPI_Master
private

Pointer to the SPI master object.

Initialisation error flag

Referenced by Assign_SPI_Master(), Bus_Transaction(), TABCC_Base(), and Unassign_SPI_Master().

◆ object_Write_Process_Data_Request

TRequest_Synchroniser TABCC_Base::object_Write_Process_Data_Request
private

◆ object_Write_Process_Data_Timer

TInterval_Timer TABCC_Base::object_Write_Process_Data_Timer
private

Write process data request flag.

Referenced by Activate_Process_Data(), Deactivate_Process_Data(), Execute_System_Timer(), and TABCC_Base().

◆ struct_MISO_Buffer

TSPI_MISO_Frame TABCC_Base::struct_MISO_Buffer
private

Write process data structure.

Referenced by Bus_Transaction().

◆ struct_MISO_Message

ABP_MsgType TABCC_Base::struct_MISO_Message
private

◆ struct_MOSI_Buffer

TSPI_MOSI_Frame TABCC_Base::struct_MOSI_Buffer
private

MISO message frame buffer.

Referenced by Bus_Transaction().

◆ struct_MOSI_Message

ABP_MsgType TABCC_Base::struct_MOSI_Message
private

◆ struct_Read_Process_Data_Parameter_Buffer

TProcess_Data_Parameter_Record TABCC_Base::struct_Read_Process_Data_Parameter_Buffer[ABCC_MAXIMAL_MAPPABLE_PROCESS_DATA_PARAMETERS]
private

First transfer after module reset flag.

Referenced by Map_ADI_Read_Area_Command(), Map_Read_Parameter_To_Process_Data(), and TABCC_Base().

◆ struct_RX_Process_Data

TABBC_Process_Data TABCC_Base::struct_RX_Process_Data
private

Write proceess data parameter buffer index.

◆ struct_TX_Process_Data

TABBC_Process_Data TABCC_Base::struct_TX_Process_Data
private

Read process data structure.

Referenced by Bus_Transaction().

◆ struct_Write_Process_Data_Parameter_Buffer

TProcess_Data_Parameter_Record TABCC_Base::struct_Write_Process_Data_Parameter_Buffer[ABCC_MAXIMAL_MAPPABLE_PROCESS_DATA_PARAMETERS]
private

Process data read parameter buffer.

Referenced by Bus_Transaction(), Map_ADI_Write_Area_Command(), Map_Write_Parameter_To_Process_Data(), and TABCC_Base().

◆ tril_ABCC_Module_Detection_Status

TRIL TABCC_Base::tril_ABCC_Module_Detection_Status
private

ABCC module reset status flag.

Referenced by Init(), Send_Information(), and TABCC_Base().

◆ tril_ABCC_Module_Reset_Status

TRIL TABCC_Base::tril_ABCC_Module_Reset_Status
private

ABCC module startup status flag.

Referenced by Init(), Send_Information(), and TABCC_Base().

◆ tril_ABCC_Module_Setup_Status

TRIL TABCC_Base::tril_ABCC_Module_Setup_Status
private

ABCC network setup status flag.

Referenced by Init(), Send_Information(), and TABCC_Base().

◆ tril_ABCC_Module_Startup_Status

TRIL TABCC_Base::tril_ABCC_Module_Startup_Status
private

ABCC module setup status flag.

Referenced by Init(), Send_Information(), and TABCC_Base().

◆ tril_ABCC_Network_Setup_Status

TRIL TABCC_Base::tril_ABCC_Network_Setup_Status
private

Module reset acceptance time.

Referenced by Init(), Send_Information(), and TABCC_Base().

◆ u16_ABCC_LED_Status

U16 TABCC_Base::u16_ABCC_LED_Status
private

ABCC module state.

Referenced by Bus_Transaction(), Send_Information(), and TABCC_Base().

◆ u16_ABCC_Module_Type

U16 TABCC_Base::u16_ABCC_Module_Type
private

ABCC network type.

Referenced by Get_Module_Type_Command(), Send_Information(), and TABCC_Base().

◆ u16_ABCC_Network_Type

U16 TABCC_Base::u16_ABCC_Network_Type
private

ABCC firmware major version.

Referenced by Get_Network_Type_Command(), Send_Information(), and TABCC_Base().

◆ u16_Read_Process_Data_Size

U16 TABCC_Base::u16_Read_Process_Data_Size
private

◆ u16_Write_Process_Data_Size

U16 TABCC_Base::u16_Write_Process_Data_Size
private

◆ u32_ABCC_Error_Responce_Counter

U32 TABCC_Base::u32_ABCC_Error_Responce_Counter
private

ABCC module request counter.

Referenced by Bus_Transaction(), and TABCC_Base().

◆ u32_ABCC_Request_Counter

U32 TABCC_Base::u32_ABCC_Request_Counter
private

Referenced by Bus_Transaction(), and TABCC_Base().

◆ u32_Frame_CRC_Error_Counter

U32 TABCC_Base::u32_Frame_CRC_Error_Counter
private

ABCC module error responce counter.

Referenced by Bus_Transaction(), Send_Information(), and TABCC_Base().

◆ u32_Module_Reset_Acceptance_Time

U32 TABCC_Base::u32_Module_Reset_Acceptance_Time
private

Module startup time.

Referenced by Init(), Send_Information(), and TABCC_Base().

◆ u32_Module_Startup_Time

U32 TABCC_Base::u32_Module_Startup_Time
private

Module startup timeout.

Referenced by Init(), Send_Information(), and TABCC_Base().

◆ u32_Read_Process_Data_Parameter_Buffer_Index

U32 TABCC_Base::u32_Read_Process_Data_Parameter_Buffer_Index
private

Process data write parameter buffer.

Referenced by Map_Read_Parameter_To_Process_Data(), Send_Information(), and TABCC_Base().

◆ u32_Startup_Timeout

U32 TABCC_Base::u32_Startup_Timeout
private

Referenced by Init(), and TABCC_Base().

◆ u32_Test_CRC

U32 TABCC_Base::u32_Test_CRC
private

Network data format.

Referenced by Bus_Transaction().

◆ u32_Write_Process_Data_Parameter_Buffer_Index

U32 TABCC_Base::u32_Write_Process_Data_Parameter_Buffer_Index
private

Read proceess data parameter buffer index.

Referenced by Map_Write_Parameter_To_Process_Data(), Send_Information(), and TABCC_Base().

◆ u8_ABCC_Firmware_Version_Build

U8 TABCC_Base::u8_ABCC_Firmware_Version_Build
private

Process data read size.

Referenced by Get_Firmware_Version_Command(), Send_Information(), and TABCC_Base().

◆ u8_ABCC_Firmware_Version_Major

U8 TABCC_Base::u8_ABCC_Firmware_Version_Major
private

ABCC firmware minor version.

Referenced by Get_Firmware_Version_Command(), Send_Information(), and TABCC_Base().

◆ u8_ABCC_Firmware_Version_Minor

U8 TABCC_Base::u8_ABCC_Firmware_Version_Minor
private

ABCC module firmware version build.

Referenced by Get_Firmware_Version_Command(), Send_Information(), and TABCC_Base().

◆ u8_Exception_Code

U8 TABCC_Base::u8_Exception_Code
private

Exception info code.

Referenced by Get_Exception_Command(), and TABCC_Base().

◆ u8_Exception_Info_Code

U8 TABCC_Base::u8_Exception_Info_Code
private

ABCC module LED status.

Referenced by Get_Exception_Info_Command(), and TABCC_Base().


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