15.03.2015 Views

SetupDesignGuide.pdf - Firmware Encoding Index

SetupDesignGuide.pdf - Firmware Encoding Index

SetupDesignGuide.pdf - Firmware Encoding Index

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Setup Design Guide<br />

DRAFT<br />

should only be used in cases where the calling application is intended to be a pre-boot only utility. For<br />

further information on the DYNAMIC and INTERACTIVE flags, see sections 4.3.3 and 4.3.4.<br />

Example: oneof<br />

varid = NULL.BootOptionSelection,<br />

prompt = STR_BOOT_OPTION_SELECTION,<br />

help = STR_BOOT_OPTION_HELP,<br />

key = BOOT_OPTION_KEY,<br />

flags = DYNAMIC | INTERACTIVE,<br />

// There are no options defined in this case. The initial set of options are<br />

// not known since they are system specific. For instance – when looking up<br />

// a file, one cannot know how many file systems will be found on available<br />

// media.<br />

endoneof;<br />

More information about interacting with hardware is contained in section 2.6.<br />

4.2.12 checkbox / endcheckbox<br />

The result returned by Checkbox is zero if the box is not checked and one if it is. If the default value<br />

needs to be one, set the flags parameter to turn on the DEFAULT flag bit.<br />

Notice that this is an example that the results of the user’s choice can be reflected into a NVRAM<br />

storage location. See 6.2 to learn more about NVRAM configuration and to better understand how this<br />

works programmatically.<br />

Example: checkbox<br />

4.2.13 numeric<br />

endcheckbox;<br />

varid = NvRamMap.SerialPortQuestion2,<br />

prompt = STR_CHECK_BOX,<br />

help = STR_CHECK_BOX_HELP,<br />

flags = DEFAULT,<br />

This command allows for numeric entry by selecting from numeric choices. The step portion of the<br />

numeric command allows for the defining of at what rate the value increments when selection the next<br />

or previous entry. If the step is set to zero, the user will be prompted for manual input of the numeric<br />

value.<br />

Notice that this is an example that the results of the user’s choice can be reflected into a NVRAM<br />

storage location. See 6.2 to learn more about NVRAM configuration and to better understand how this<br />

works programmatically.<br />

Example: numeric<br />

varid = NvRamMap.SystemTimeoutValue,<br />

prompt = STR_NUMERIC,<br />

help = STR_NUMERIC_HELP,<br />

min = 0,<br />

max = 35,<br />

32

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!