module

Matter::Schema::SpecificationVersion

Schema for encoding/decoding specification versions Format: 0xMMmmPPrr where MM=major, mm=minor, PP=patch, rr=reserved

Constants

SPECIFICATION_VERSION = 17039872_u32

Current Matter specification version (1.4.2)

Class methods

current

Get the current specification version as a struct

Source
decode(encoded : UInt32) : SpecificationVersionData

Decode a 32-bit integer to a version struct

Source
encode(major : UInt8, minor : UInt8, patch : UInt8, reserved : UInt8 = 0_u8) : UInt32

Encode a version from components to a 32-bit integer

Source
encode(version : SpecificationVersionData) : UInt32

Encode a version struct to a 32-bit integer

Source
to_s(version : SpecificationVersionData) : String

Format a version as a string (e.g., "1.4.2")

Source
to_s(encoded : UInt32) : String
Source