Interface DeviceParameter

Represents a device-specific parameter with optional metadata flags.

Extends the base Parameter interface with additional fields used to describe access, category, and mapping information.

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.

esiType?: string

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

flags?: {
    access?: "ro" | "rw" | "wo";
    category?: "m" | "o" | "c";
    pdoMapping?: "r" | "tr" | "t";
    safetyMapping?: "si" | "so" | "sio" | "sp";
}

Optional set of flags defining parameter characteristics.

Type declaration

  • Optional access?: "ro" | "rw" | "wo"

    Access level of the parameter.

    • 'ro' — Read-only (default)
    • 'rw' — Read/write
    • 'wo' — Write-only
  • Optional category?: "m" | "o" | "c"

    Category of the parameter.

    • 'm' — Mandatory
    • 'o' — Optional (default)
    • 'c' — Conditional
  • Optional pdoMapping?: "r" | "tr" | "t"

    PDO (Process Data Object) mapping type.

    • 't' — Transmit PDO (Inputs)
    • 'r' — Receive PDO (Outputs)
    • 'tr' — Transmit or Receive PDO
  • Optional safetyMapping?: "si" | "so" | "sio" | "sp"

    Safety-related mapping type.

    • 'si' — Safe Inputs
    • 'so' — Safe Outputs
    • 'sio' — Safe Input or Output
    • 'sp' — Safety Parameter Set
floatValue?: null | number
group?: null | string

Group or category name for the parameter.

id: string

Unique identifier of the parameter.

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
isSmm?: boolean

Flag indicating if the parameter belongs to an 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.

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).

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

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

Generated using TypeDoc