Tydl
latest

Contents:

  • Overview
  • Status
  • Getting Started
  • Tutorial
  • Reference
    • Basic Functionality
    • Data Types
    • Supplemental Data-Related Entities
      • Field
      • Bit Fields
      • Layout
      • Reserved Field
      • Spare Field
    • Data Operations
Tydl
  • Reference
  • Supplemental Data-Related Entities
  • Edit on GitHub

Supplemental Data-Related Entities

This section documents the supplemental data-related entities provided by Tydl and describes the attributes that are applicable to each specific entity. These entities are defined in the Tydl.Data namespace.

Field

Parameterized Entity representing a member (data field) of a Record.

The following keyword parameters may be used to specify attributes of this entity:

at

Alias for location or locations (if list).

flat

Boolean Value indicating whether or not members of a nested Record field should be directly accessible (as if they were immediate children of the parent record). In other words, if flat is specified, there is no requirement to mention the name of the intermediate field. This is similar to how anonymous union fields work in C/C++. The default value is false.

hidden

Boolean Value indicating whether or not this field should be shown/printed when the parent Record is displayed. Fields marked as hidden are still accessible from auto-generated smart structure classes, however. This attribute is often used in conjunction with field aliases or unions to avoid displaying the same data twice. The default value is false.

location

Singular alias for locations.

locations

If this attribute is specified, the associated field will not be appended to the end of the parent Record, but will instead overlay one or more fields in the parent record. The value of this attribute is expected to be an ordered list of Field names from the parent Record into which the bytes of the associated field content are to be stored.

reserved

Boolean Value indicating whether or not this field should be classified as a reserved field that is not explicitly defined, but may be used for undocumented purposes. The default value for this field is false.

spare

Boolean Value indicating whether or not this field should be classified as a spare field that is not currently used. The default value for this field is false.

type

Type of data stored in this field.

The following positional parameters are accepted:

Argument Position

Parameter

1st

type

Bit Fields

Extension of Field, where the type attribute is a custom Word extension that contains additional fields.

The following keyword parameters may be used to specify attributes of this entity:

fields

Ordered list of key-value pairs that define the additional fields to be appended to the Word.

bit_width

This attribute indicates the bit_width of the underlying Word.

Layout

Parameterized Entity for specifying the low-level bit/byte layout to be used when storing an instance of a data Type in byte-addressable memory. This functionality is useful for changing the order that bytes or words in a data value are stored in memory.

The following keyword parameters may be used to specify attributes of this entity:

at

Alias for location or locations (if list).

location

Singular alias for locations.

locations

Ordered list of low-level fields (from representation) into which the bytes of the associated data type instance are to be stored.

of

Alias for representation.

representation

Record representing the physical memory area into which a data type instance may be stored.

Reserved Field

Extension of Field with reserved set to true and a type of Word.

The following keyword parameters may be used to specify attributes of this entity:

bit_width

This attribute indicates the bit_width of the underlying Word.

Spare Field

Extension of Field with spare set to true and a type of Word.

The following keyword parameters may be used to specify attributes of this entity:

bit_width

This attribute indicates the bit_width of the underlying Word.

Previous Next

© Copyright 2020, 2021, 2023 Jeffrey A. Webb / Copyright 2021 NTA, Inc.. Revision 48501522.

Built with Sphinx using a theme provided by Read the Docs.