Function resolveSiiCategoryType

  • Resolve a raw SII category type value into a normalized SiiCategoryType.

    Returns

    Resolved category type, or undefined if not recognized.

    Remarks

    • The SII specification defines both fixed category IDs and value ranges:

      Mapped ranges:

      • 0x0001–0x0009 → DEVICE_SPECIFIC
      • 0x0800–0x1FFF → VENDOR_SPECIFIC
      • 0x2000–0x2FFF → APPLICATION_SPECIFIC
      • 0x3000–0xFFFE → VENDOR_SPECIFIC
    • For values outside these ranges, a direct enum lookup is attempted:

      • Matches known categories such as STRINGS, GENERAL, FMMU, etc.
    • The END marker (0xFFFF) is handled via direct enum lookup.

    Note

    • Range-based values are normalized to a single enum representative (e.g. all vendor-specific values map to VENDOR_SPECIFIC).
    • The original numeric value is not preserved.
    • Unknown values return undefined and should be treated as unsupported categories.

    Parameters

    • value: number

      Raw 16-bit category type value from SII.

    Returns SiiCategoryType | undefined

Generated using TypeDoc