Standard Artesyn Functions
10-61
} NVEx;
NVField ExFields[] = {
{ “XPos”, (char *) &NVEx.XPos, sizeof(NVEx.XPos),
NV_TYPE_DECIMAL, 0, 100, NULL},
{ “YPos”, (char *) &NVEx.YPos, sizeof(NVEx.YPos),
NV_TYPE_DECIMAL, 0, 200, NULL},
{ “Depth” (char *) &NVEx.Mag, sizeof(NVEx.Mag),
NV_TYPE_DECIMAL, 0, 4, NULL}
}
NVGroup ExGroups[] = {
{ “Window”, sizeof(ExFields)/sizeof(NVField), ExFields }
};
If passed a pointer to the ExGroups structure, the function
DispGroup
gen-
erates the display shown below. The second parameter
EditFlag
indicates
whether to allow changes to the data structure after it is displayed (same as in
the
nvdisplay
command).
Window Display Configuration
XPos 100
YPos 200
Magnitude 4
The
SetNvDefaults
function, when called with a pointer to the ExGroup
structure, initializes the data structure to those values specified in the
NVGroup structure. The second parameter
NumGroups
indicates the number
of groups to be initialized.
The
NVOp
function stores and recovers data structures from nonvolatile
memory. The only requirement of the data structure to be stored in nonvola-
tile memory is that the first field of the structure be NVInternal, which is
where all the bookkeeping for the nonvolatile memory section is done. The
first parameter
NVOpCmd
indicates the command to be performed. A sum-
mary of the commands is shown in the following table:
The second parameter,
Base
, indicates the base address of the data structure to
be operated on, and the
Size
parameter indicates the size of the data structure
to be operated on. The
Offset
parameter specifies the byte offset in the non-
volatile memory device where the data structure is to be stored. An example
of how to initialize, store, and recall the example data structure is shown
below.
Table 10-7.
NVOp
Commands
Command
Value
Description
NV_OP_FIX
0
Fix nonvolatile section checksum.
NV_OP_CLEAR
1
Clear nonvolatile section.
NV_OP_CK
2
Check if nonvolatile section is valid.
NV_OP_OPEN
3
Open nonvolatile section.
NV_OP_SAVE
4
Save nonvolatile section.
NV_OP_CMP
5
Compare nonvolatile section data.
Summary of Contents for BajaPPC-750
Page 2: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Page 4: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Page 7: ......
Page 19: ...xii BajaPPC 750 Contents...
Page 57: ...3 12 BajaPPC 750 Central Processing Unit May 2002...
Page 77: ...5 12 BajaPPC 750 PMC PCI Interface May 2002...
Page 111: ...6 34 BajaPPC 750 VMEbus Interface May 2002...
Page 135: ...8 18 BajaPPC 750 Serial and Parallel I O May 2002...
Page 207: ...10 68 BajaPPC 750 Monitor May 2002...