module
Matter::Schema::SpecificationVersion
Overview
Schema for encoding/decoding specification versions Format: 0xMMmmPPrr where MM=major, mm=minor, PP=patch, rr=reserved
Defined in:
matter/schema/specification_version.crConstant Summary
-
SPECIFICATION_VERSION =
17039872_u32 -
Current Matter specification version (1.4.2)
Class Method Summary
-
.current : SpecificationVersionData
Get the current specification version as a struct
-
.decode(encoded : UInt32) : SpecificationVersionData
Decode a 32-bit integer to a version struct
-
.encode(major : UInt8, minor : UInt8, patch : UInt8, reserved : UInt8 = 0_u8) : UInt32
Encode a version from components to a 32-bit integer
-
.encode(version : SpecificationVersionData) : UInt32
Encode a version struct to a 32-bit integer
-
.to_s(version : SpecificationVersionData) : String
Format a version as a string (e.g., "1.4.2")
- .to_s(encoded : UInt32) : String
Class Method Detail
def self.decode(encoded : UInt32) : SpecificationVersionData
#
Decode a 32-bit integer to a version struct
def self.encode(major : UInt8, minor : UInt8, patch : UInt8, reserved : UInt8 = 0_u8) : UInt32
#
Encode a version from components to a 32-bit integer
def self.encode(version : SpecificationVersionData) : UInt32
#
Encode a version struct to a 32-bit integer
def self.to_s(version : SpecificationVersionData) : String
#
Format a version as a string (e.g., "1.4.2")