MotoHawk:Blocks:Structure Declaration
From MotoHawk
Jump to navigationJump to searchStructure 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 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. |