Sample Definition Code Generated Single Buffer Type Prefix(activityNameid) Defines the prefix of the Single Buffer type, for Task/ISR All data which is defined as "Single Buffered" and that relates to a Task/ISR is combined into a structure. The structure's name is combined from the prefix defined by this API, and from the name of the Task/ISR.The type is defined in the file type_def.h For an Activity defined to be a Task:Generated Code: Double Buffer Type Prefix(activityNameid) Defines the prefix of the Double Buffer type, for Task/ISR All data which is defined as "Double Buffered" and that relates to a Task/ISR is combined into a structure. The structure's name is combined from the prefix defined by this API, and from the name of the Task/ISR.The type is defined in the file type_def.h For an Activity defined to be a Task:Generated Code: State Variable Prefix(activityNameid) Defines the prefix of the State Variable type, for statechart hierarchy A control Activity, which represent a Statechart hierarchy is implemented using a single function. The state in which the state machine is in is stored in a variable.For each such Statechart hierarchy a separate type is generated.The name of the type is combined of the prefix defined by this API, and from the name of the Control Activity.The type id defined in the file type_def.h For a Control Activity:Name: FAN_CTRLAPI Definition:StateInfo_
Generated code (in type_def.h): Bits Buffer Type Prefix(udt_or_activity_nameid) Defines the prefix of the Bits and Conditions buffer.The formal parameter udt_or_activity_nameid is the name of the context element in which the buffer is defined.The context element can be either an Activity or a User-Defined-Type. Conditions and Data-Items of type Bit are combined into buffers. The number of Bits/Condition per buffer comes from the selected Word-Size.In case there are more Bits/Conditions than the size of the Word-Size an additional buffer is allocated with the prefix defined in this API and postfixed with an incrementing number.The buffers are defined in the file type_def.h for Bits/Conditions that relates to a TASK/ISR or a User-Defined-Type, and in the files glob_dat.c and glob_dat.h for Bits/Conditions that relate to the global scope. For Conditions CO1 - CO12 and Data-Items of type "bit" BIT1-BIT12, using word size of 8-Bits:There are total of 26 elements, that require 4 8-Bits buffers.Therefore the generated code would be: Integer Signed Type Macro Prefix() Defines the prefix of the 'signed type' macro for integer Data-Item , used with bit shifting predefined functions, or other user-defined usages. Element which is defined to be of type Integer or Bitarray will have a definition of its 'signed type' in the generated code. The definition may be a macro in the file macro_def.h, or a typedef in the file type_def.h (depending on a profile setting).This type is used with the Arithmetical bitwise operations (ASHL, ASHR), to cast the value of the element to the Element's "signed type".The definition of the "signed type" is defined in the Element's Design-Attributes. For a Data-Item of type: IntegerDesign-Attribute "Integer Signed Type":
signed long intExpression: DI = ASHL(DI, 5)API Definition:STYPE_
Generated code: Integer Unsigned Type Macro Prefix() Defines the prefix of the 'unsigned type' macro for integer Data-Item , used with bit shifting predefined functions, o r other user-defined usages. Element which is defined to be of type Integer or Bit array will have a definition of its 'unsigned type' in the generated code. The definition may be a macro in the file macro_def.h, or a typedef in the file type_def.h (depending on profile settings).This type is used with the Logical bitwise operations (LSHL, LSHR), to cast the value of the element to the Element's "unsigned type".The definition of the "unsigned type" is defined in the Element's Design-Attributes. For a Data-Item of type: IntegerDesign-Attribute "Integer Unsigned Type": unsigned long intExpression: DI = LSHL(DI, 5)API Definition:TYPE_
Generated code: User Defined Type Record Name Postfix() Controls the postfix of the name of the structure of a User-Defined-Type or Data-Items defined as Record/Union.It also controls the postfix of the structures:TestDriver_PreviousValuesPanelBindings_PreviousValuesThe following typedef will be generated for Data-Item DI_REC defined as record with the fields: G1 and G2.typedef struct DI_REC_type<Postfix> { Elements of type Record/Union may have a postfix in the name of their generated type.The type is defined in the file type_def.h.The postfix is used only on the name of the type and not on the typedef'ed name. For Data-Item defined as record:Fields : G1 and G2, defined as integers.Generated code: