![Lattice Semiconductor LatticeMico32 Скачать руководство пользователя страница 88](http://html1.mh-extra.com/html/lattice-semiconductor/latticemico32/latticemico32_hardware-developer-user-manual_3843852088.webp)
C
REATING
C
USTOM
C
OMPONENTS
IN
L
ATTICE
M
ICO
S
YSTEM
:
Specifying Software Elements
82
LatticeMico32 Hardware Developer User Guide
parameters are listed in the Value drop-down menu on the basis of the
structure member’s data type.
Table 11 shows the data types that are available for elements of the structure
and the parameters available for initializing members of an element if you
choose to initialize the element during platform creation.
Figure 43: Specifying Software Elements
Step 1: Enter function name.
Step 2: Enter structure name.
Step 3: Add structure members.
a: Select a data type or enter a
data-type name.
c: Select box if an array.
b: Enter member name.
d: Select parameter for initial
value or leave it uninitialized.
Step 4: Click
Add
button.
Table 11: Structure Element Data Types
Data Type
Can Element Be Initialized
During Platform
Creation?
Parameter Value Type
Notes
void *
No
N/A
int *
No
N/A
const char *
Yes
String, List
Values are enclosed in
quotation marks.
char *
Yes
String, List
Values are enclosed in
quotation marks.
unsigned char *
Yes
String, List
Values are enclosed in
quotation marks.
int
Yes
Integer, List, Define
List must be a numeric list.