JSON key: <type name>

key

Required?

Type

Value description

This is a user-defined name that can be used in "Messages".

Yes

String

This a JSON object containing additional key/values. See Additional key/values below.

TypeDefinition Example:

"example_type" : { "type":"uint", "size":2, "endian":"big", "flags":["some_flag"] }

Additional key/values

These are:

  • type

  • size

  • endian

  • flags

JSON key: "type"

JSON value: <acd field type>. See table:

ACD TypeDefinition settings

JSON key: "size"

key

Required?

Type

Value description

size

Yes

Integer

See the table above for the appropriate values. See also flag: “var_size” below.

JSON key: "endian"

key

Required?

Type

Value description

endian

No

String

Set to "big" or "little".  Defaults to "big" if this setting is left out. See also flag: “var_size” below.

JSON key: "flags"

key

Required?

Type

Value description

flags

No

Array

A JSON array of strings. See section Flags and the list of flags below.

The currently supported flags are:

flag: "var_size"

key

Required?

Type

Value description

var_size

No

Integer

Makes a "string" or "binary" type of variable length.  “size” and “endian” are used to describe the format of the size field to decode the size from.  The decoded size is used to set the string or binary datafield.