ModeSelectTrait.SemanticTagStruct

class ModeSelectTrait.SemanticTagStruct : ClusterStruct


Represents a semantic tag.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

SemanticTagStruct(mfgCode: UShort, value: UShort)

Creates the SemanticTagStruct class.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

UShort

The Vendor ID if the value field is a semantic tag defined by the manufacturer, otherwise this is null.

UShort

The semantic tag within a semantic tag namespace that is either standard- or manufacturer-specific.

Public constructors

SemanticTagStruct

SemanticTagStruct(mfgCode: UShort, value: UShort)

Creates the SemanticTagStruct class.

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

mfgCode

val mfgCodeUShort

The Vendor ID if the value field is a semantic tag defined by the manufacturer, otherwise this is null.

value

val valueUShort

The semantic tag within a semantic tag namespace that is either standard- or manufacturer-specific.