CommsDSL Specification
  • Introduction
  • Version
  • Schema Definition
  • Multiple Files
  • Namespaces
  • Platforms
  • References
  • Properties
  • Numeric Values
  • Boolean Values
  • Names
  • Protocol Versioning
  • Schema
  • Fields
    • Common Properties of Fields
    • enum Field
    • int Field
    • set Field
    • bitfield Field
    • bundle Field
    • string Field
    • data Field
    • list Field
    • float Field
    • ref Field
    • optional Field
    • variant Field
    • Referencing Values of Other Fields
  • Messages
  • Interfaces
  • Aliases
  • Frames
    • Common Properties of Layers
    • payload Layer
    • id Layer
    • size Layer
    • sync Layer
    • checksum Layer
    • value Layer
    • custom Layer
  • Protocol Versioning Summary
  • Appendix
    • Properties of schema
    • Common Properties of Fields
    • Properties of enum Field
    • Properties of int Field
    • Properties of set Field
    • Properties of bitfield Field
    • Properties of bundle Field
    • Properties of string Field
    • Properties of data Field
    • Properties of list Field
    • Properties of float Field
    • Properties of ref Field
    • Properties of optional Field
    • Properties of variant Field
    • Units
    • Properties of message
    • Properties of interface
    • Properties of alias
    • Properties of frame
    • Common Properties of Layers
    • Properties of checksum Layer
    • Properties of value Layer
    • Properties of custom Layer
Powered by GitBook
On this page

Was this helpful?

  1. Appendix

Properties of float Field

PreviousProperties of list FieldNextProperties of ref Field

Last updated 5 years ago

Was this helpful?

The <float> field has all the properties as well as ones listed below. Refer to chapter for detailed description.

Property Name

Allowed type / value

DSL Version

Required

Default Value

Description

type

"float", "double"

1

yes

Underlying primitive type.

defaultValue

floating point value, nan, inf, -inf

1

no

0.0

Default value. Must fit the underlying type.

endian

"big" or "little"

1

no

Endian of the field.

units

1

no

Units of the value.

validRange

"[ fp_value, fp_value ]"

1

no

Range of valid values.

validValue

floating point value, nan, inf, -inf

1

no

Valid value.

validMin

floating point value

1

no

Valid minimal value. All the numbers above it are considered to be valid.

validMax

floating point value

1

no

Valid maximal value. All the numbers below it are considered to be valid.

validFullRange

1

no

false

Mark all the range of existing FP values to be valid, excluding nan, inf, and -inf.

validCheckVersion

1

no

false

Take into account protocol version when generating code for field's value validity check.

displayDecimals

1

no

0

Indicates to GUI analysis how many digits need to be displayed after the fraction point.

nonUniqueSpecialsAllowed

2

no

false

Allow non unique <special>-s.

displaySpecials

2

no

true

Control displaying <special> values in analysis tools.

Properties of <special> Child Element of <float> Field

Property Name

Allowed type / value

DSL Version

Required

Default Value

Description

name

1

yes

Name of the value.

val

floating point value, nan, inf, -inf

1

yes

Numeric value.

description

string

1

no

Human readable description of the value.

sinceVersion

1

no

0

Version of the protocol in which value was introduced.

deprecated

1

no

max unsigned

Version of the protocol in which value was deprecated. Must be greater than value of sinceVersion.

displayName

string

2

no

Name to display in various analysis tools.

endian of

string

common
<float> Field
schema
units
bool
bool
numeric
bool
bool
name
unsigned
unsigned