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

Constant Summary

SPECIFICATION_VERSION = 17039872_u32

Current Matter specification version (1.4.2)

Class Method Summary

Class Method Detail

def self.current : SpecificationVersionData #

Get the current specification version as a struct


[View source]
def self.decode(encoded : UInt32) : SpecificationVersionData #

Decode a 32-bit integer to a version struct


[View source]
def self.encode(major : UInt8, minor : UInt8, patch : UInt8, reserved : UInt8 = 0_u8) : UInt32 #

Encode a version from components to a 32-bit integer


[View source]
def self.encode(version : SpecificationVersionData) : UInt32 #

Encode a version struct to a 32-bit integer


[View source]
def self.to_s(version : SpecificationVersionData) : String #

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


[View source]
def self.to_s(encoded : UInt32) : String #

[View source]