Function findBitsViewEntry

  • Finds a BitsViewEntry from the parameter bits view registry based on a given CANopen object index and subindex, optionally filtering by a specific parameter structure version.

    This function supports both standard (non-SMM) and SMM parameters:

    • For non-SMM lookups (no parameterStructureVersion provided), it returns entries without a SMM LW version.
    • For SMM lookups (parameterStructureVersion provided), it maps the structure version to a SMM LW version and returns the entry matching that version.

    Returns

    The matching BitsViewEntry if found; otherwise, undefined.

    Parameters

    • index: number

      The CANopen object index of the parameter.

    • subindex: number

      The CANopen object subindex of the parameter.

    • Optional parameterStructureVersion: number

      Optional version of the parameter structure used to select the correct SMM LW entry.

    Returns BitsViewEntry | undefined

Generated using TypeDoc