SetupDesignGuide.pdf - Firmware Encoding Index
SetupDesignGuide.pdf - Firmware Encoding Index
SetupDesignGuide.pdf - Firmware Encoding Index
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Setup Design Guide<br />
DRAFT<br />
4.2.9 subtitle<br />
Subtitle strings are intended to be used by authors to separate sections of questions into semantic<br />
groups.<br />
Example: subtitle text = STR_SUBTITLE_TEXT;<br />
4.2.10 text<br />
Unlike HTML, text is simply another tag. This enables IFR to be more easily localized. The first<br />
example shows a simple usage case where a static string is being printed. The second example shows a<br />
use case which is more complex and allows for a one-time callback to acquire the secondary text data.<br />
The second case is described in more detail in section 4.3.3.<br />
Example: text text = STR_MISCELLANEOUS_TEXT;<br />
Example: text text = STR_MISCELLANEOUS_TEXT;<br />
4.2.11 oneof / endoneof<br />
text = STR_CPU_DERIVED_TEXT,<br />
flags = DYNAMIC,<br />
key = CPU_FREQUENCY_KEY;<br />
This command provides the ability to choose from multiple choices. Each of the choices is defined by<br />
an option statement. To support the ability to reset the user choices to a specific set of defaults, the<br />
flags settings contains a bit-mask which defines which option is defined as a system default and/or a<br />
manufacturing setting.<br />
Note that the flags setting is used to determine which choice is a system default. In the case of<br />
option 3 the flags setting is set for a manufacturing default setting. It is an error condition if more<br />
than one option has the DEFAULT or MANUFACTURING flag turned on.<br />
Also notice that this is the first keyword example that the results of the user’s choice can be reflected<br />
into a NVRAM storage location. See 6.2 to learn more about NVRAM configuration and to better<br />
understand how this works programmatically.<br />
It is also reasonable that a particular option can have both the default and manufacturing bits set. In this<br />
case it would be specified with a flags = DEFAULT | MANUFACTURING.<br />
Example: oneof<br />
varid = NvRamMap.SerialPortQuestion1,<br />
prompt = STR_ONE_OF_PROMPT,<br />
help = STR_ONE_OF_HELP,<br />
option text = STR_SERIAL_PORT1, value=0, flags=NULL;<br />
option text = STR_SERIAL_PORT2, value=1, flags=DEFAULT;<br />
option text = STR_SERIAL_PORT3, value=2, flags=MANUFACTURING;<br />
endoneof;<br />
A second example shows how one would create a oneof command which required dynamic<br />
interaction with a hardware driver. Note from the first example that the key and flags settings are<br />
optional for this command. This example is not compatible with exporting data to runtime, and thus<br />
31