MotoHawk:Blocks:Structure Declaration
From MotoHawk
Revision as of 19:59, 20 September 2012 by Wendy.Bolakowski (talk | contribs) (Created page with "=Structure Declaration= This MotoHawk™ block defines the fields for a structure, the default values for those fields, and what enumeration should be used for each field. =...")
Structure Declaration
This MotoHawk™ block defines the fields for a structure, the default values for those fields, and what enumeration should be used for each field.
Block ID
motohawk_struct_decl
Library
MotoHawk_lib/Data Storage Blocks
Description
See [../MotoHawk_topics/Structures.html Structures] for more information.
Block Parameters
| Parameter Field | Values | Comments/Description |
|---|---|---|
| Structure Name | Alpha-numeric text, single-quote enclosed. | Identify the structure by name. No special characters, such as spaces, dashes, commas (underscore allowed). |
| Initial Value | struct('Member1', uint32(0), 'Member2', uint32(0)) | Use the struct command syntax to define the fields in the structure and supply initial values |
| Enumeration Definitions | {'', {'Disabled', 'Enabled'}} | Define the enumeration for the listed fields. |