Interface Parameter

Represents a generic parameter with required properties: index, subindex, name, value, typeValueKey.

Hierarchy

Properties

bitSize?: number

Size of the parameter in bits.

canBeMappedAsRxPdo?: boolean

Indicates if the parameter can be mapped as an RxPDO.

canBeMappedAsTxPdo?: boolean

Indicates if the parameter can be mapped as a TxPDO.

defaultData?: number

Default numeric value for the parameter, if defined.

description?: string

Human-readable description of the parameter or subitem.

disabledValue?: number

Value of the parameter that is considered disabled.

esiExtensionError?: Error

Error when extending this parameter with ESI: unit, min/max, documentation and options. Typically the error means there is no object in ESI that matches this parameter index and subindex.

esiType?: string

Raw ESI data type string (e.g., "UINT16", "STRING(50)").

fieldName?: string

For parameters that correspond to motion master proto fields the fieldName should be camelCase proto field name, otherwise the value is arbitrary.

floatValue?: null | number
group?: null | string

Group or category name for the parameter.

id: string

Uniquely identifies this parameter. For example, if this is a device parameter, the parameter ID could be "0x1080:02.8602-01-0000755-2243".

index: number

Index from the object dictionary or invented one for the virtual parameter.

inputType?: ParameterInputType

Suggested HTML form input type for the parameter.

intValue?: null | number
interfaceUnit?: string

Interface unit value preserved for reference or restoration.

isBeta?: boolean

Indicates if this parameter is considered a beta feature, which may be subject to change or removal in future releases. This flag can be used to conditionally display or hide the parameter in user interfaces, or to provide warnings about its stability.

isSmm?: boolean

Is this parameter defined in SMM module.

mandatory?: boolean

Indicates if the parameter is mandatory (true) or optional (false/undefined).

max?: null | number

Maximum allowed numeric value for the parameter, if applicable.

min?: null | number

Minimum allowed numeric value for the parameter, if applicable.

name: string

The 'name' property is mandatory.

options?: {
    [key: string]: number;
}

Textual representation of numerical value options for a parameter.

Type declaration

  • [key: string]: number
originalOptions?: Record<string, any>

Original options preserved for reference or restoration.

originalUnit?: string

Original unit value preserved for reference or restoration.

Optional plot configuration used for visualization on charts.

radix?: 2 | 10 | 16

Radix: binary, decimal or hexadecimal. Used for parseInt and input display format.

rawValue?: null | Uint8Array
readAccess?: null | boolean
recordDescription?: string

Description specifically for record data types, if applicable.

stringValue?: null | string
strlen?: number

Maximum length allowed for STRING type parameters, adjusted to accommodate firmware-specific constraints.

subindex: number

Subindex from the object dictionary or invented one for the virtual parameter.

typeValue?: "intValue" | "uintValue" | "floatValue" | "stringValue" | "rawValue"

Optional type value string representing the parameter data type.

typeValueKey?: "intValue" | "uintValue" | "floatValue" | "stringValue" | "rawValue"

The 'typeValueKey' property represents the 'oneof type_value' from the proto file. It is used when parameter values are set on the device.

uintValue?: null | number
unit?: null | string

Unit symbol associated with the parameter (empty string if none).

unitConverterId?: keyof UnitConverters

Sets a special unit type on this parameter that allows users to switch the unit. Each unit type comes with multiple options and parser and formatter functions. For example 'position' unit type has options 'inc', 'deg' and 'rad'.

The 'value' property can be a string, number, or buffer.

valueType?: null | ValueType
writeAccess?: null | boolean

Generated using TypeDoc