165 #define ABCC_MESSAGE_DATA_BUFFER_SIZE ( 16 )
167 #define ABCC_PROCESS_DATA_BUFFER_SIZE ( 128+64 )
170 #define ABCC_MAXIMAL_MAPPABLE_PROCESS_DATA_PARAMETERS ( 128 )
#define ABCC_PROCESS_DATA_BUFFER_SIZE
Definition: ABCC_Base.h:167
APPL_ErrCode
Definition: ABCC_Base.h:122
@ APPL_AD_TOO_MANY_WRITE_MAPPINGS
Definition: ABCC_Base.h:127
@ APPL_NO_ERROR
Definition: ABCC_Base.h:123
@ APPL_AD_UNKNOWN_ADI
Definition: ABCC_Base.h:128
@ APPL_AD_PD_READ_SIZE_ERR
Definition: ABCC_Base.h:124
@ APPL_AD_PD_WRITE_SIZE_ERR
Definition: ABCC_Base.h:125
@ APPL_AD_TOO_MANY_READ_MAPPINGS
Definition: ABCC_Base.h:126
enum APPL_ErrCode APPL_ErrCodeType
#define ABCC_MESSAGE_DATA_BUFFER_SIZE
Definition: ABCC_Base.h:165
#define ABCC_MAXIMAL_MAPPABLE_PROCESS_DATA_PARAMETERS
Definition: ABCC_Base.h:170
int BOOL
Boolean datatype definition.
Definition: Defines.h:124
int TRIL
Thrilean datatype defenition.
Definition: Defines.h:143
unsigned char U8
Binary 8-Bit unsigned integer datatype defenition.
Definition: Defines.h:183
void VOID
Datatypesess datatype definition.
Definition: Defines.h:105
unsigned long U32
Binary 32-Bit unsigned integer datatype defenition.
Definition: Defines.h:203
unsigned short U16
Binary 16-Bit unsigned integer datatype defenition.
Definition: Defines.h:193
Interval timer class header file.
Communication protocol base class header file.
SPI bus master base class header file.
Definition: ABCC_Base.h:177
TABBC_Process_Data struct_RX_Process_Data
Write proceess data parameter buffer index.
Definition: ABCC_Base.h:590
TProcess_Data_Parameter_Record struct_Write_Process_Data_Parameter_Buffer[ABCC_MAXIMAL_MAPPABLE_PROCESS_DATA_PARAMETERS]
Process data read parameter buffer.
Definition: ABCC_Base.h:599
U32 u32_ABCC_Error_Responce_Counter
ABCC module request counter.
Definition: ABCC_Base.h:627
VOID Init()
ABCC driver initialisation method.
Definition: ABCC_Base.cpp:398
VOID Set_Message_Data_U8(ABP_MsgType *psMsg, U8 u8_Data, U16 u16_Offset)
Definition: ABCC_Base.cpp:3801
VOID Bus_Transaction()
Definition: ABCC_Base.cpp:2407
VOID Get_Message_Data_U16(ABP_MsgType *psMsg, U16 *u16_Data, U16 u16_Offset)
Definition: ABCC_Base.cpp:3811
VOID New_Read_Process_Data_Processed()
Definition: ABCC_Base.cpp:3454
VOID Get_Module_Type_Command()
Definition: ABCC_Base.cpp:4184
VOID Get_Data_Format_Command()
Definition: ABCC_Base.cpp:3940
U32 u32_Frame_CRC_Error_Counter
ABCC module error responce counter.
Definition: ABCC_Base.h:624
VOID Activate_Hardware_Reset()
Activate hardware reset.
Definition: ABCC_Base.cpp:3361
TABCC_Base::TData_Type Get_Parameter_Data_Type(TParameter_Base *object_Parameter)
Definition: ABCC_Base.cpp:1507
TSPI_MOSI_Frame struct_MOSI_Buffer
MISO message frame buffer.
Definition: ABCC_Base.h:581
VOID Set_Byte_Attribute(ABP_MsgType *psMsg, U8 bObject, U16 iInstance, U8 bAttribute, U8 bVal, U8 bSourceId)
Definition: ABCC_Base.cpp:3690
ParameterSupportType enum_Parameter_Support
ABCC module type.
Definition: ABCC_Base.h:638
virtual VOID Object_Command(ABP_MsgType *psNewMessage, ABP_MsgType *psResponceMessage)=0
Object command processing method.
BOOL bool_First_Transfer_After_Reset
Toggle bit status flag.
Definition: ABCC_Base.h:605
VOID Assign_SPI_Master(TSPI_Master_Base *object_New_SPI_Master)
Assign SPI master hardware driver.
Definition: ABCC_Base.cpp:1017
U16 u16_ABCC_LED_Status
ABCC module state.
Definition: ABCC_Base.h:668
VOID Write_Process_Data_Size_Command()
Definition: ABCC_Base.cpp:4889
TRIL tril_ABCC_Module_Setup_Status
ABCC network setup status flag.
Definition: ABCC_Base.h:557
struct TABCC_Base::TABBC_Process_Data TABBC_Process_Data
U32 u32_Module_Reset_Acceptance_Time
Module startup time.
Definition: ABCC_Base.h:563
VOID Get_Firmware_Version_Command()
Definition: ABCC_Base.cpp:4336
VOID Dummy_Command()
Definition: ABCC_Base.cpp:3879
TRIL tril_ABCC_Module_Startup_Status
ABCC module setup status flag.
Definition: ABCC_Base.h:554
struct TABCC_Base::TSPI_MISO_Frame TSPI_MISO_Frame
BOOL bool_Toggle_Bit_Status
Retransmit requered flag.
Definition: ABCC_Base.h:608
TRIL tril_ABCC_Module_Detection_Status
ABCC module reset status flag.
Definition: ABCC_Base.h:548
struct TABCC_Base::TSPI_MOSI_Frame TSPI_MOSI_Frame
VOID Map_Read_Parameter_To_Process_Data(TParameter_Base *object_Parameter)
Definition: ABCC_Base.cpp:1177
VOID Set_Message_Map_ADI_Area(ABP_MsgType *psMsg, U8 u8_ADI_Data_Type, U8 u8_ADI_Elements_Number, U16 u16_ADI_Order_Number)
Definition: ABCC_Base.cpp:3866
BOOL bool_Retransmit_Requered
New transmit message present flag.
Definition: ABCC_Base.h:611
NetFormatType enum_Net_Data_Format
Parameter support flag.
Definition: ABCC_Base.h:635
ABP_MsgType struct_MISO_Message
MOSI message frame buffer.
Definition: ABCC_Base.h:578
TABBC_Process_Data struct_TX_Process_Data
Read process data structure.
Definition: ABCC_Base.h:587
U16 Get_Message_Instance(ABP_MsgType *struct_Message)
Definition: ABCC_Base.cpp:3616
TABCC_FSM_State fsm_ABCC
APB message to the module.
Definition: ABCC_Base.h:572
U32 CRC32_ABCC(U8 *pbBufferStart, U16 iLength)
Definition: ABCC_Base.cpp:2923
VOID Done()
ABCC driver Finaliseation method.
Definition: ABCC_Base.cpp:1005
U8 u8_ABCC_Firmware_Version_Major
ABCC firmware minor version.
Definition: ABCC_Base.h:647
BOOL Is_New_Firmware_Avaliable()
Definition: ABCC_Base.cpp:3383
VOID Map_Write_Parameter_To_Process_Data(TParameter_Base *object_Parameter)
Map parameter to the write process data.
Definition: ABCC_Base.cpp:1118
ABP_AnbStateType enum_ABCC_State
Process data mapping error flag.
Definition: ABCC_Base.h:671
BOOL Network_Setup()
Network setup method.
Definition: ABCC_Base.cpp:1396
VOID Set_Message_Error_Response(ABP_MsgType *psMsg, U16 iMsgDataSize, ABP_MsgErrorCodeType eErr)
Definition: ABCC_Base.cpp:3584
VOID Map_ADI_Read_Area_Command()
Definition: ABCC_Base.cpp:4643
VOID Get_Attribute(ABP_MsgType *psMsg, U8 bObject, U16 iInstance, U8 bAttribute, U8 bSourceId)
Definition: ABCC_Base.cpp:3648
VOID Process_New_RX_Message()
Definition: ABCC_Base.cpp:2969
VOID Set_Msg_Header(ABP_MsgType *psMsg, U8 bObject, U16 iInstance, U8 bAttribute, ABP_MsgCmdType eService, U16 iDataSize, U8 bSourceId)
Definition: ABCC_Base.cpp:3492
U32 u32_Write_Process_Data_Parameter_Buffer_Index
Read proceess data parameter buffer index.
Definition: ABCC_Base.h:593
VOID Execute()
Definition: ABCC_Base.cpp:1061
BOOL Is_Message_Command(ABP_MsgType *struct_Message)
Definition: ABCC_Base.cpp:3606
BOOL Is_Interrupt_Line_Active()
Definition: ABCC_Base.cpp:3406
VOID Setup_Complete_Command()
Definition: ABCC_Base.cpp:4986
U16 Get_Message_Data_Length(ABP_MsgType *struct_Message)
Definition: ABCC_Base.cpp:3771
U32 u32_Read_Process_Data_Parameter_Buffer_Index
Process data write parameter buffer.
Definition: ABCC_Base.h:596
TData_Type
Definition: ABCC_Base.h:433
@ enum_SINT16
Definition: ABCC_Base.h:437
@ enum_U8
Definition: ABCC_Base.h:439
@ enum_UINT32
Definition: ABCC_Base.h:441
@ enum_BIT4
Definition: ABCC_Base.h:475
@ enum_FLOAT
Definition: ABCC_Base.h:451
@ enum_UINT16
Definition: ABCC_Base.h:440
@ enum_CHAR
Definition: ABCC_Base.h:442
@ enum_UINT64
Definition: ABCC_Base.h:450
@ enum_PAD15
Definition: ABCC_Base.h:468
@ enum_PAD2
Definition: ABCC_Base.h:455
@ enum_SINT8
Definition: ABCC_Base.h:436
@ enum_BIT2
Definition: ABCC_Base.h:473
@ enum_PAD11
Definition: ABCC_Base.h:464
@ enum_BIT6
Definition: ABCC_Base.h:477
@ enum_OCTET
Definition: ABCC_Base.h:447
@ enum_BITS16
Definition: ABCC_Base.h:445
@ enum_PAD13
Definition: ABCC_Base.h:466
@ enum_BIT3
Definition: ABCC_Base.h:474
@ enum_BITS32
Definition: ABCC_Base.h:446
@ enum_PAD8
Definition: ABCC_Base.h:461
@ enum_BOOL1
Definition: ABCC_Base.h:471
@ enum_PAD12
Definition: ABCC_Base.h:465
@ enum_Unsupported
Definition: ABCC_Base.h:480
@ enum_SINT32
Definition: ABCC_Base.h:438
@ enum_BITS8
Definition: ABCC_Base.h:444
@ enum_PAD4
Definition: ABCC_Base.h:457
@ enum_PAD7
Definition: ABCC_Base.h:460
@ enum_BIT7
Definition: ABCC_Base.h:478
@ enum_PAD1
Definition: ABCC_Base.h:454
@ enum_BIT1
Definition: ABCC_Base.h:472
@ enum_ENUM
Definition: ABCC_Base.h:443
@ enum_PAD10
Definition: ABCC_Base.h:463
@ enum_PAD6
Definition: ABCC_Base.h:459
@ enum_PAD3
Definition: ABCC_Base.h:456
@ enum_PAD5
Definition: ABCC_Base.h:458
@ enum_BIT5
Definition: ABCC_Base.h:476
@ enum_SINT64
Definition: ABCC_Base.h:449
@ enum_PAD16
Definition: ABCC_Base.h:469
@ enum_PAD0
Definition: ABCC_Base.h:453
@ enum_BOOL
Definition: ABCC_Base.h:435
@ enum_PAD14
Definition: ABCC_Base.h:467
@ enum_PAD9
Definition: ABCC_Base.h:462
VOID Set_Message_Responce(ABP_MsgType *psMsg, U16 u16_Data_Size)
Definition: ABCC_Base.cpp:3566
VOID Get_Exception_Info_Command()
Definition: ABCC_Base.cpp:5165
BOOL Module_Detect()
Definition: ABCC_Base.cpp:3351
VOID Read_Process_Data_Size_Command()
Definition: ABCC_Base.cpp:4791
struct TABCC_Base::TProcess_Data_Parameter_Record TProcess_Data_Parameter_Record
U8 Get_Message_Command_Extension_0(ABP_MsgType *struct_Message)
Definition: ABCC_Base.cpp:3636
BOOL Get_Parameter_Data_Type_Properties(TParameter_Base *object_Parameter, TABCC_Base::TData_Type *enum_Data_Type, U8 *u8_Data_Type_Size)
Definition: ABCC_Base.cpp:2308
TRequest_Synchroniser object_Write_Process_Data_Request
Definition: ABCC_Base.h:683
U8 Get_Message_Command_Code(ABP_MsgType *struct_Message)
Definition: ABCC_Base.cpp:3626
TRIL tril_ABCC_Network_Setup_Status
Module reset acceptance time.
Definition: ABCC_Base.h:560
VOID Create_Responce_From_Request(ABP_MsgType *struct_Request_Message, ABP_MsgType *struct_Responce_Message)
Definition: ABCC_Base.cpp:3523
U8 u8_ABCC_Firmware_Version_Build
Process data read size.
Definition: ABCC_Base.h:653
VOID Set_Message_Data_Length(ABP_MsgType *struct_Message, U16 u16_Length)
Definition: ABCC_Base.cpp:3781
VOID Map_ADI_Write_Area(ABP_MsgType *psMsg, U8 bObject, U16 iInstance, U8 bSourceId, U16 u16_ADI_Instance_Number)
Definition: ABCC_Base.cpp:3733
BOOL bool_Process_Data_Mapping_Error
Message data buffer overflow flag.
Definition: ABCC_Base.h:674
U16 Get_Requered_Process_Data_Buffer_Size()
Definition: ABCC_Base.cpp:2397
virtual VOID Instance_Command(ABP_MsgType *psNewMessage, ABP_MsgType *psResponceMessage)=0
Instance command processing method.
TABCC_FSM_State
Definition: ABCC_Base.h:336
@ enum_ABCC_Transfer_Frame
Definition: ABCC_Base.h:337
@ enum_ABCC_Error
Definition: ABCC_Base.h:338
U8 u8_Exception_Code
Exception info code.
Definition: ABCC_Base.h:662
U32 u32_Module_Startup_Time
Module startup timeout.
Definition: ABCC_Base.h:566
BOOL Is_Initialised()
!< Map parameter to the read process data
Definition: ABCC_Base.cpp:1238
VOID Map_ADI_Read_Area(ABP_MsgType *psMsg, U8 bObject, U16 iInstance, U8 bSourceId, U16 u16_ADI_Instance_Number)
Definition: ABCC_Base.cpp:3752
U16 u16_Write_Process_Data_Size
Exception code.
Definition: ABCC_Base.h:659
BOOL Is_New_Read_Process_Data_Present()
Return new read process data status.
Definition: ABCC_Base.cpp:5264
VOID Deactivate_Process_Data()
Deactivate process data processing.
Definition: ABCC_Base.cpp:1049
VOID Get_Message_Data_U8(ABP_MsgType *psMsg, U8 *u8_Data, U16 u16_Offset)
Definition: ABCC_Base.cpp:3791
VOID Process_Read_Process_Data()
Definition: ABCC_Base.cpp:3470
BOOL bool_New_TX_Message_Present
Definition: ABCC_Base.h:614
U16 u16_Read_Process_Data_Size
Process data write size.
Definition: ABCC_Base.h:656
TSPI_MISO_Frame struct_MISO_Buffer
Write process data structure.
Definition: ABCC_Base.h:584
TSPI_Master_Base * object_SPI_Master
Pointer to the SPI master object.
Definition: ABCC_Base.h:542
virtual ~TABCC_Base()
Class destructor method.
Definition: ABCC_Base.cpp:390
VOID Set_Message_Data_U16(ABP_MsgType *psMsg, U16 u16_Data, U16 u16_Offset)
Definition: ABCC_Base.cpp:3821
VOID Execute_System_Timer()
Definition: ABCC_Base.cpp:1098
BOOL Is_New_RX_Message_Present()
Definition: ABCC_Base.cpp:3444
TInterval_Timer object_Write_Process_Data_Timer
Write process data request flag.
Definition: ABCC_Base.h:680
VOID Activate_Process_Data()
Activate process data processing.
Definition: ABCC_Base.cpp:1039
VOID Create_Error_Responce_From_Request(ABP_MsgType *struct_Request_Message, ABP_MsgType *struct_Responce_Message, ABP_MsgErrorCodeType enum_Error_Code)
Definition: ABCC_Base.cpp:3543
VOID Send_Information(TProtocol_Base *object_Protocol)
Send information about object.
Definition: ABCC_Base.cpp:1248
U32 u32_Startup_Timeout
Definition: ABCC_Base.h:569
BOOL bool_New_RX_Message_Present
< New receive message present flag
Definition: ABCC_Base.h:618
TRIL tril_ABCC_Module_Reset_Status
ABCC module startup status flag.
Definition: ABCC_Base.h:551
BOOL bool_Initialisation_Error
ABCC module detection status flag.
Definition: ABCC_Base.h:545
U16 u16_ABCC_Network_Type
ABCC firmware major version.
Definition: ABCC_Base.h:644
VOID Get_Exception_Command()
Get exception command.
Definition: ABCC_Base.cpp:5066
VOID Set_Node_Address()
Definition: ABCC_Base.cpp:4411
TABCC_Base()
Class constructor method.
Definition: ABCC_Base.cpp:300
VOID RX_Message_Processed()
RX message processed notification.
Definition: ABCC_Base.cpp:5274
VOID Map_ADI_Write_Area_Command()
Definition: ABCC_Base.cpp:4491
VOID Unassign_SPI_Master()
Unassign SPI master hardware driver.
Definition: ABCC_Base.cpp:1029
U8 u8_Exception_Info_Code
ABCC module LED status.
Definition: ABCC_Base.h:665
U16 u16_ABCC_Module_Type
ABCC network type.
Definition: ABCC_Base.h:641
BOOL bool_Message_Data_Buffer_Overflow
Interval timer object for triggering write process data update.
Definition: ABCC_Base.h:677
VOID Get_Network_Type_Command()
Definition: ABCC_Base.cpp:4260
ABP_MsgType struct_MOSI_Message
APB message from the module.
Definition: ABCC_Base.h:575
BOOL bool_New_RX_Process_Data_Present
Frame CRC error counter.
Definition: ABCC_Base.h:621
U8 u8_ABCC_Firmware_Version_Minor
ABCC module firmware version build.
Definition: ABCC_Base.h:650
U32 u32_Test_CRC
Network data format.
Definition: ABCC_Base.h:632
VOID Deactivate_Hardware_Reset()
Deactivate hardware reset.
Definition: ABCC_Base.cpp:3372
U32 u32_ABCC_Request_Counter
Definition: ABCC_Base.h:630
U8 Get_Data_Type_Size_In_Bytes(TABCC_Base::TData_Type enum_Data_Type)
Definition: ABCC_Base.cpp:2186
VOID Get_Parameter_Support_Command()
Definition: ABCC_Base.cpp:4062
BOOL Is_Hardware_Reset_State()
Definition: ABCC_Base.cpp:3393
VOID Set_Message_Data_String(ABP_MsgType *psMsg, const char *pcString, U16 iNumChar, U16 u16_Offset)
Definition: ABCC_Base.cpp:3832
TProcess_Data_Parameter_Record struct_Read_Process_Data_Parameter_Buffer[ABCC_MAXIMAL_MAPPABLE_PROCESS_DATA_PARAMETERS]
First transfer after module reset flag.
Definition: ABCC_Base.h:602
Interval timer clase.
Definition: Interval_Timer.h:52
Parameter base class.
Definition: Parameter_Base.h:60
Definition: Protocol_Base.h:57
Definition: Request_Synchroniser.h:17
SPI master base class.
Definition: SPI_Master_Base.h:58
Definition: ABCC_Base.h:425
U8 u8_Data[ABCC_PROCESS_DATA_BUFFER_SIZE]
Definition: ABCC_Base.h:427
Definition: ABCC_Base.h:485
U16 u16_Offset
Offset within process data buffer.
Definition: ABCC_Base.h:487
TRIL tril_Mapped
Parameter mapped status flag.
Definition: ABCC_Base.h:488
TParameter_Base * object_Parameter
Pointer to the parameter.
Definition: ABCC_Base.h:486
Definition: ABCC_Base.h:384
U8 bit_State
Definition: ABCC_Base.h:392
U8 u8_Process_Data[ABCC_PROCESS_DATA_BUFFER_SIZE]
Definition: ABCC_Base.h:414
U8 bit_Message
Definition: ABCC_Base.h:404
U8 bit_Command_Count
Definition: ABCC_Base.h:403
U8 u8_Byte
Definition: ABCC_Base.h:396
struct TABCC_Base::TSPI_MISO_Frame::@69::@71 u8_Bits
U8 bit_Last_Fragment
Definition: ABCC_Base.h:405
U8 bit_New_Process_Data
Definition: ABCC_Base.h:406
U16 u16_Reserved
Definition: ABCC_Base.h:386
union TABCC_Base::TSPI_MISO_Frame::@70 u8_SPI_Status
U8 bit_Supervised
Definition: ABCC_Base.h:393
U16 u16_LED_Status
Definition: ABCC_Base.h:387
U32 u32_NetTime
Definition: ABCC_Base.h:412
U8 u8_Message_Data[ABCC_MESSAGE_DATA_BUFFER_SIZE]
Definition: ABCC_Base.h:413
union TABCC_Base::TSPI_MISO_Frame::@69 u8_AnyBus_Status
U8 bit_Message_Buffer_Full
Definition: ABCC_Base.h:402
U32 u32_CRC
Definition: ABCC_Base.h:415
Definition: ABCC_Base.h:347
U8 bit_Last_Fragment
Definition: ABCC_Base.h:356
struct TABCC_Base::TSPI_MOSI_Frame::@67::@68 u8_Bits
U8 bit_Command_Count
Definition: ABCC_Base.h:354
U16 u16_Process_Data_Length
Definition: ABCC_Base.h:365
U8 bit_Toggle
Definition: ABCC_Base.h:359
U16 u16_Message_Length
Definition: ABCC_Base.h:364
union TABCC_Base::TSPI_MOSI_Frame::@67 u8_SPI_Control_Byte
U8 u8_Message_Data[ABCC_MESSAGE_DATA_BUFFER_SIZE]
Definition: ABCC_Base.h:368
U8 u8_Byte
Definition: ABCC_Base.h:361
U8 bit_Message
Definition: ABCC_Base.h:355
U8 bit_Write_Process_Data
Definition: ABCC_Base.h:353
U8 u8_Process_Data[ABCC_PROCESS_DATA_BUFFER_SIZE]
Definition: ABCC_Base.h:369
U16 u16_Dummy
Definition: ABCC_Base.h:371
U8 u8_Reserved
Definition: ABCC_Base.h:363
U8 u8_Application_Status
Definition: ABCC_Base.h:366
U8 u8_Interrupt_Mask
Definition: ABCC_Base.h:367
U32 u32_CRC
Definition: ABCC_Base.h:370