52 #if CONOPSYS_TARGET == CONOPSYS_TARGET_DEVICE
54 #elif CONOPSYS_TARGET == CONOPSYS_TARGET_VDC
58 #error "FATAL ERROR: No any deployment target not defined."
66 #if CONOPSYS_TARGET == CONOPSYS_TARGET_DEVICE
76 #if CONOPSYS_TARGET == CONOPSYS_TARGET_VDC
88 #define CONOPSYS_SOFTWARE_MODULE_DISABLED 0
89 #define CONOPSYS_SOFTWARE_MODULE_ENABLED 1
96 #define CPU_SIZE unsigned char
102 #if CONOPSYS_TARGET == CONOPSYS_TARGET_DEVICE
108 #elif CONOPSYS_TARGET == CONOPSYS_TARGET_VDC
119 #if CONOPSYS_TARGET == CONOPSYS_TARGET_DEVICE
126 #elif CONOPSYS_TARGET == CONOPSYS_TARGET_VDC
153 typedef unsigned char UC8;
183 typedef unsigned char U8;
186 typedef signed char I8;
193 typedef unsigned short U16;
203 typedef unsigned long U32;
213 typedef unsigned long long U64;
349 #if CONOPSYS_TARGET == CONOPSYS_TARGET_VDC
352 typedef AnsiString
AS;
355 typedef UnicodeString
DS;
358 typedef UnicodeString
US;
366 typedef unsigned long R32;
371 typedef unsigned long SC;
372 typedef unsigned long EC;
379 typedef unsigned char S7;
385 #if CONOPSYS_TARGET == CONOPSYS_TARGET_DEVICE
388 #define NULL ((void *)(0))
419 #define S7_CODE_BLANK ( (S7)0x00 )
422 #define S7_CODE_0 ( (S7)0x3F )
425 #define S7_CODE_1 ( (S7)0x06 )
428 #define S7_CODE_2 ( (S7)0x5B )
431 #define S7_CODE_3 ( (S7)0x4F )
434 #define S7_CODE_4 ( (S7)0x66 )
437 #define S7_CODE_5 ( (S7)0x6D )
440 #define S7_CODE_6 ( (S7)0x7D )
443 #define S7_CODE_7 ( (S7)0x07 )
446 #define S7_CODE_8 ( (S7)0x7F )
449 #define S7_CODE_9 ( (S7)0x6F )
452 #define S7_CODE_CAPITAL_A ( (S7)0x77 )
455 #define S7_CODE_CAPITAL_C ( (S7)0x39 )
458 #define S7_CODE_CAPITAL_E ( (S7)0x79 )
461 #define S7_CODE_CAPITAL_F ( (S7)0x71 )
464 #define S7_CODE_CAPITAL_P ( (S7)0x73 )
467 #define S7_CODE_CAPITAL_R ( (S7)0x50 )
470 #define S7_CODE_CAPITAL_D ( (S7)0x5e )
473 #define S7_CODE_CAPITAL_Y ( (S7)0x6e )
476 #define S7_CODE_d ( (S7)0x5e )
479 #define S7_CODE_b ( (S7)0x7C )
482 #define S7_CODE_o ( (S7)0x5C )
485 #define S7_CODE_n ( (S7)0x54 )
488 #define S7_CODE_r ( (S7)0x50 )
491 #define S7_CODE_DASH ( (S7)0x40 )
494 #define S7_CODE_DECIMAL_POINT ( (S7)0x80 )
501 const C8 Bin2HexTable[ 16 ] = {
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'A',
'B',
'C',
'D',
'E',
'F' };
508 #define U8_MIN ( (U8)0x00 )
511 #define U8_MAX ( (U8)0xFF )
514 #define I8_MIN ( (U8)0x80 )
517 #define I8_MAX ( (U8)0x7F )
520 #define U16_MIN ( (U16)0x0000 )
523 #define U16_MAX ( (U16)0xFFFF )
526 #define I16_MIN ( (U16)0x8000 )
529 #define I16_MAX ( (U16)0x7FFF )
532 #define U32_MIN ( (U32)0x00000000 )
535 #define U32_MAX ( (U32)0xFFFFFFFF )
538 #define I32_MIN ( (U32)0x80000000 )
541 #define I32_MAX ( (U32)0x7FFFFFFF )
544 #define U64_MIN ( (U64)0x0000000000000000 )
547 #define U64_MAX ( (U64)0xFFFFFFFFFFFFFFFF )
550 #define I64_MIN ( (U64)0x8000000000000000 )
553 #define I64_MAX ( (U64)0x7FFFFFFFFFFFFFFF )
559 #define BOOL_STRING_BUFFER 2
561 #define U8_STRING_BUFFER 4
563 #define I8_STRING_BUFFER 5
565 #define U16_STRING_BUFFER 6
567 #define I16_STRING_BUFFER 7
586 #define F32_STRING_BUFFER 16 + 1
588 #define F64_STRING_BUFFER 24 + 1
640 #define ISO_639_1_STRING_DE "DE"
643 #define ISO_639_1_STRING_EN "EN"
646 #define ISO_639_1_STRING_RU "RU"
649 #define ISO_639_1_STRING_IT "IT"
652 #define ISO_639_1_STRING_ES "ES"
655 #define ISO_639_1_STRING_FR "FR"
791 //--------------------------------------------------------------------------
793 //--------------------------------------------------------------------------
796 U32 u32_Initialising:1;
802 U32 u32_Transition:1;
819 //--------------------------------------------------------------------------
820 // Warnings, alarms and errors
821 //--------------------------------------------------------------------------
838 //--------------------------------------------------------------------------
840 //--------------------------------------------------------------------------
847 } TTask_Status_Structure;
921 U8 u8_Paylod_Raw_Data[ 8 ];
958 U8 u8_Manufacturer_Error_Code[ 8 ];
996 #define EXTFUNC extern
998 #define EXTFUNC extern "C"
ConOpSys deploy target definitions file.
long int IQ6
32 bit fixed point number datatype definition
Definition: Defines.h:302
long int IQ32
32 bit fixed point number datatype definition
Definition: Defines.h:224
int BOOL
Boolean datatype definition.
Definition: Defines.h:124
long int IQ9
32 bit fixed point number datatype definition
Definition: Defines.h:293
unsigned char S7
7-Segment code datatype definition
Definition: Defines.h:379
long int IQ23
32 bit fixed point number datatype definition
Definition: Defines.h:251
TText_Encoding
Text encoding codes.
Definition: Defines.h:598
@ text_encoding_ASCII
ASCII encodung.
Definition: Defines.h:604
@ text_encoding_Unknown
Unknown encodung.
Definition: Defines.h:601
@ text_encoding_CP1252
CP1252 encodung.
Definition: Defines.h:613
@ text_encoding_CP437
CP437 encodung.
Definition: Defines.h:607
@ text_encoding_CP850
CP850 encodung.
Definition: Defines.h:610
@ text_encoding_UTF16
UTF16 encodung.
Definition: Defines.h:625
@ text_encoding_HTML
HTML encodung.
Definition: Defines.h:631
@ text_encoding_EBCDIC273
EBCDIC273 encodung.
Definition: Defines.h:628
@ text_encoding_UTF8
UTF8 encodung.
Definition: Defines.h:622
@ text_encoding_ISO8859_1
ISO8859_1 encodung.
Definition: Defines.h:616
@ text_encoding_ISO8859_15
ISO8859_15 encodung.
Definition: Defines.h:619
long int IQ31
32 bit fixed point number datatype definition
Definition: Defines.h:227
long int IQ27
32 bit fixed point number datatype definition
Definition: Defines.h:239
unsigned long long U64
Binary 64-Bit unsigned integer datatype defenition.
Definition: Defines.h:213
long int IQ22
32 bit fixed point number datatype definition
Definition: Defines.h:254
UnicodeString US
Unicode string datatype definition.
Definition: Defines.h:358
int TRIL
Thrilean datatype defenition.
Definition: Defines.h:143
long I32
2s Compliment 32-Bit signed integer datatype defenition
Definition: Defines.h:206
TConntctor_Orintation
Definition: Defines.h:981
@ enum_Down
Definition: Defines.h:986
@ enum_Right
Definition: Defines.h:985
@ enum_Up
Definition: Defines.h:984
@ enum_Left
Definition: Defines.h:987
@ enum_Unknown_Orintation
Definition: Defines.h:983
long int IQ25
32 bit fixed point number datatype definition
Definition: Defines.h:245
long int IQ13
32 bit fixed point number datatype definition
Definition: Defines.h:281
unsigned char U8
Binary 8-Bit unsigned integer datatype defenition.
Definition: Defines.h:183
long int IQ7
32 bit fixed point number datatype definition
Definition: Defines.h:299
long int IQ28
32 bit fixed point number datatype definition
Definition: Defines.h:236
long int IQ21
32 bit fixed point number datatype definition
Definition: Defines.h:257
long int IQ24
32 bit fixed point number datatype definition
Definition: Defines.h:248
signed char I8
2s Compliment 8-Bit signed integer datatype defenition
Definition: Defines.h:186
long int IQ16
32 bit fixed point number datatype definition
Definition: Defines.h:272
const C8 Bin2HexTable[16]
Definition: Defines.h:501
long double F80
IEEE-754 80-Bit extended presession floating point numbers datatype defenition.
Definition: Defines.h:330
unsigned long long CDT64
Data time type.
Definition: Defines.h:340
long int IQ2
32 bit fixed point number datatype definition
Definition: Defines.h:314
TConntctor_Type
Definition: Defines.h:967
@ enum_Output_Connector
Definition: Defines.h:972
@ enum_Parameter_Connector
Definition: Defines.h:970
@ enum_Unknown_Type
Definition: Defines.h:969
@ enum_Input_Connector
Definition: Defines.h:971
long int IQ12
32 bit fixed point number datatype definition
Definition: Defines.h:284
long int IQ10
32 bit fixed point number datatype definition
Definition: Defines.h:290
long int IQ20
32 bit fixed point number datatype definition
Definition: Defines.h:260
TReturn_Test_Code
Global test status.
Definition: Defines.h:663
@ enum_Single_Block_Erase_Test_Failed
Single block erase test failed status.
Definition: Defines.h:678
@ enum_Block_Index_Out_Range
Block index is out range status.
Definition: Defines.h:714
@ enum_Get_Block_Status_Error
Parameter "Block_Status" not getten
Definition: Defines.h:696
@ enum_Read_Failed
Read error.
Definition: Defines.h:687
@ enum_Get_Block_Index_Error
Parameter "Block_Index" not getten.
Definition: Defines.h:705
@ enum_Get_Page_Size_Error
Parameter "Page_Size" not getten.
Definition: Defines.h:693
@ enum_Get_Page_Per_Block_Count_Error
Parameter "Page_Per_Block_Count" not getten.
Definition: Defines.h:690
@ enum_Verify_Read_Error
Read verefy error status.
Definition: Defines.h:717
@ enum_Block_Empty_Error
Empty block error (Block is not empty)
Definition: Defines.h:711
@ enum_Write_Failed
Write error.
Definition: Defines.h:684
@ enum_Get_Page_Per_Chip_Count_Error
Parameter "Page_Per_Chip_Count" not getten.
Definition: Defines.h:702
@ enum_Write_Test_Failed
Write page test failed status.
Definition: Defines.h:672
@ enum_Page_Index_Out_Range
Page index is out range status.
Definition: Defines.h:708
@ enum_Erase_Test_Failed
Erase blocks test failed status.
Definition: Defines.h:669
@ enum_Get_Block_Count_Error
Parameter "Blocks_Per_Chip_Count" not getten.
Definition: Defines.h:699
@ enum_Block_Erase_Error
Block erase error.
Definition: Defines.h:681
@ enum_Success_Test_Code
Test success status (Test complete successfully)
Definition: Defines.h:666
@ enum_Read_Test_Failed
Read page test failed status.
Definition: Defines.h:675
long int IQ8
32 bit fixed point number datatype definition
Definition: Defines.h:296
void VOID
Datatypesess datatype definition.
Definition: Defines.h:105
unsigned long U32
Binary 32-Bit unsigned integer datatype defenition.
Definition: Defines.h:203
float F32
IEEE-754 32-Bit single presession floating point numbers datatype defenition.
Definition: Defines.h:324
long int IQ14
32 bit fixed point number datatype definition
Definition: Defines.h:278
short I16
2s Compliment 16-Bit signed integer datatype defenition
Definition: Defines.h:196
long int IQ1
32 bit fixed point number datatype definition
Definition: Defines.h:317
unsigned char UC8
ASCII 8-Bit unsigned char datatype defenition.
Definition: Defines.h:153
unsigned long SC
ConOpSys status code.
Definition: Defines.h:371
long long I64
2s Compliment 64-Bit signed integer datatype defenition
Definition: Defines.h:217
long int IQ15
32 bit fixed point number datatype definition
Definition: Defines.h:275
long int IQ29
32 bit fixed point number datatype definition
Definition: Defines.h:233
long int IQ26
32 bit fixed point number datatype definition
Definition: Defines.h:242
long int IQ4
32 bit fixed point number datatype definition
Definition: Defines.h:308
long int IQ3
32 bit fixed point number datatype definition
Definition: Defines.h:311
long int IQ17
32 bit fixed point number datatype definition
Definition: Defines.h:269
unsigned long R32
Record datatype defenition.
Definition: Defines.h:366
long int IQ30
32 bit fixed point number datatype definition
Definition: Defines.h:230
double F64
IEEE-754 64-Bit double presession floating point numbers datatype defenition.
Definition: Defines.h:327
unsigned long EC
ConOpSys event code.
Definition: Defines.h:372
AnsiString AS
Linear data and time.
Definition: Defines.h:352
unsigned short U16
Binary 16-Bit unsigned integer datatype defenition.
Definition: Defines.h:193
UnicodeString DS
Unicode string datatype definition.
Definition: Defines.h:355
long int IQ18
32 bit fixed point number datatype definition
Definition: Defines.h:266
char C8
ASCII 8-Bit char datatype defenition.
Definition: Defines.h:156
long int IQ19
32 bit fixed point number datatype definition
Definition: Defines.h:263
long int IQ11
32 bit fixed point number datatype definition
Definition: Defines.h:287
long int IQ5
32 bit fixed point number datatype definition
Definition: Defines.h:305
Definition: Defines.h:954
U8 u8_Error_Register
Definition: Defines.h:957
U16 u16_Error_Code
Definition: Defines.h:956
Definition: Defines.h:900
U32 u32_Identifier
Identifier field from CAN message, 29 bits.
Definition: Defines.h:907
BOOL bool_RTR_Bit
RTR bit from CAN message, 1 bit.
Definition: Defines.h:910
U8 u8_CAN_Data_Byte_3
Definition: Defines.h:933
U8 u8_CAN_Data_Byte_2
Definition: Defines.h:931
U8 u8_CAN_Data_Byte_4
Definition: Defines.h:935
U8 u8_CAN_Data_Byte_7
Definition: Defines.h:941
U8 u8_CAN_Data_Byte_1
Definition: Defines.h:929
U8 u8_CAN_Data_Byte_0
Data field from CAN message, 64 bits.
Definition: Defines.h:927
U8 u8_DLC
Data length (DLC) field from CAN message, 4 bits.
Definition: Defines.h:913
U8 u8_CAN_Data_Byte_6
Definition: Defines.h:939
U64 u64_CAN_Raw_Data
Data field from CAN message, 64 bits.
Definition: Defines.h:919
U8 u8_CAN_Data_Byte_5
Definition: Defines.h:937
OS parameter status structure.
Definition: Defines.h:855
U32 u32_Alarm
Alarm state, 1 bit.
Definition: Defines.h:871
U32 u32_Ready
Ready state, 1 bit.
Definition: Defines.h:881
U32 u32_Error
Error state, 1 bit.
Definition: Defines.h:868
U32 u32_Raw_Data
Raw data representation.
Definition: Defines.h:858
U32 u32_Init
Init state, 1 bit.
Definition: Defines.h:878
Generic U16 data composition.
Definition: Defines.h:727
U8 u8_Low_byte
Bit 8:15 : Low byte.
Definition: Defines.h:736
U16 u16_Raw_Value
Raw 16-bit value.
Definition: Defines.h:730
U8 u8_High_byte
Bit 0:7 : High byte.
Definition: Defines.h:735
Generic U32 data composition.
Definition: Defines.h:745
U32 b4_Nibble_4
Bit 16:19 : Nibble 4.
Definition: Defines.h:767
U32 b4_Nibble_1
Bit 4:7 : Nibble 1.
Definition: Defines.h:764
U8 u8_Byte_3
Bit 24:31 : Byte 3.
Definition: Defines.h:756
U8 u8_Byte_1
Bit 8:15 : Byte 1.
Definition: Defines.h:754
U32 b4_Nibble_7
Bit 28:31 : Nibble 7.
Definition: Defines.h:770
U8 u8_Byte_0
Bit 0:7 : Byte 0.
Definition: Defines.h:753
U32 b4_Nibble_5
Bit 20:23 : Nibble 5.
Definition: Defines.h:768
U32 b4_Nibble_0
Bit 0:3 : Nibble 0.
Definition: Defines.h:763
U8 u8_Byte_2
Bit 16:23 : Byte 2.
Definition: Defines.h:755
U32 b4_Nibble_2
Bit 8:11 : Nibble 2.
Definition: Defines.h:765
U32 b4_Nibble_3
Bit 12:15 : Nibble 3.
Definition: Defines.h:766
U32 b4_Nibble_6
Bit 24:27 : Nibble 6.
Definition: Defines.h:769
U32 u32_Raw_Value
Raw 32-bit value.
Definition: Defines.h:748