CMSIS Configuration Wizard Annotations¶
SLC component configuration uses a subset of the CMSIS Configuration Wizard Annotation standard. Only the options listed on this page are allowed to be used in SLC-compatible configuration header files.
There are two ways of linking an annotation to code using CMSIS Configuration Wizard Annotations:
- Implicit reference to the nth integer after the annotation
- Explicit reference to a specific symbol/identifier
SLC only supports the second way, using an explicit reference to the symbol. This helps structure the list of annotations, makes it clear which annotation operates on which symbol, and ensures consistency regardless of whether the annotation is meant to reference an integer or another type of symbol.
Operators¶
<h>
¶
Creates a header element in the GUI.
1 2 3 |
|
<o>
with identifier¶
Sets the value of the following #define
with the given identifier.
Typically rendered as an input box with constraints given by attributes, or a drop-down list if one or more option attributes is given.
1 2 |
|
<q>
with identifier¶
Sets the boolean value of the following #define
with the given identifier.
Typically rendered as a checkbox or toggle.
1 2 |
|
<e>
with identifier¶
Sets the boolean value of the following #define
with the given identifier.
Typically rendered as a heading with an associated checkbox or toggle.
1 2 3 4 |
|
<s>
with length and identifier¶
Sets the string value of the following #define
with the given identifier, enforcing a maximum length.
Typically rendered as a text input box.
1 2 |
|
<a>
with length and identifier¶
Sets the value of the following #define
to the given array.
1 2 |
|
Attributes¶
<i>
- Information¶
Detailed description for the active operator.
1 |
|
<d>
- Default value¶
Default value for the active operator. For backwards compatibility, <i> Default:
is also supported.
1 2 3 |
|
<value=>
- Option¶
Option for the active <o>
operator. Constrains valid values to the ones given by option attributes.
1 2 3 4 |
|
<x..y:z>
- Range¶
Constrains range of <o>
operator to x
to y
inclusive, in steps of z
.
1 |
|
<f>
- Format¶
Format specifier for the active operator. One of
d
- decimalh
- hexadecimalo
- octalb
- binary
1 2 |
|