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 />

4.2.14 date<br />

endnumeric;<br />

step = 1,<br />

default = 8,<br />

This command allows for the entry of date information.<br />

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

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

works programmatically.<br />

Also notice that date and time are the two functions that are likely to be included in a system for<br />

user input, yet not stored in a traditional NVRAM storage location. In this case, the destination is likely<br />

an RTC. This example shows the storage location as being NULL. Date and time are special cases<br />

where the storage location being NULL is translated into a call to the RTC (if available). In all other<br />

cases, a NULL parent will force the data the user inputs to be thrown away.<br />

Example: date year varid = NULL.Year,<br />

prompt = STR_DATE,<br />

help = STR_DATE_YEAR_HELP,<br />

min = 1939,<br />

max = 2076,<br />

step = 1,<br />

default = 2002;<br />

month varid = NULL.Month,<br />

prompt = STR_DATE,<br />

help = STR_DATE_MONTH_HELP,<br />

min = 1,<br />

max = 12,<br />

step = 1,<br />

default = 1;<br />

day varid = NULL.Day,<br />

prompt = STR_DATE,<br />

help = STR_DATE_DAY_HELP,<br />

min = 1,<br />

max = 31,<br />

step = 1,<br />

default = 1;<br />

33

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

Saved successfully!

Ooh no, something went wrong!