Event Recorder  Version 1.0.0
MDK Debugger Views for Status and Event Information
 All Files Functions Macros Groups Pages
/component_viewer/typedefs element

Is the enclosing element for type definitions.

Example:

<typedefs>
<typedef name="Thread_CB" info="RTOS Task Control Block" size="52">
<member name="Cb_Type" type="uint8_t" offset="0" info="Type of Control Block"/>
</typedef>
</typedefs>

 

Parent Element Element Chain
component_viewer /component_viewer element
Child Element Description Type Occurrence
typedef Define types. TypedefType 1..*

 


/component_viewer/typedefs/typedef

Define complex data types that are used in <readlist> and <event> elements.

Example:

<typedefs>
<!-- Structure reflecting an array -->
<typedef name="TypeArray1" size="8">
<member name="type_ref" type="uint32_t" offset="0" info="Pointer to array"/>
<member name="id1" type="uint8_t" offset="4" info="Type ID"/>
<member name="attr" type="uint8_t" offset="5" info="Type Attribute"/>
<var name="idx" type="uint32_t" info="Index in array"/>
</typedef>
<!-- Helper variables for Stack-usage calculation -->
<typedef name="TypeArray2" size="8">
<var name="XcurSP" type="uint32_t" value="0"/>
<var name="bSimpleStk" type="int32_t"/>
</typedef>
</typedefs>

 

Parent Element Element Chain
typedefs /component_viewer/typedefs element
Attributes Description Type Use
name Define the name of a data type. This name is used in readlist element. xs:anySimpleType required
size Size to read in target memory in [Bytes]. You can enter Expressions to calculate the size or use Built-in Functions. xs:anySimpleType optional
const Value for a constant variable. Default value is 0. You can enter Expressions and use Built-in Functions. xs:anySimpleType optional
info Descriptive text with additional information (comment). xs:anySimpleType optional
Child Element Description Type Occurrence
member Name of a member variable in target memory. MemberType 0..*
var Temporary variables for local calculations in component viewer. VarType 0..*