struct Keyleds::Device::Protocol

Overview

Describes a protocol that a device can communicate over.

Defined in:

bridge.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(type : UInt8, prefix : String, version_major : UInt32, version_minor : UInt32, build : UInt32, is_active : Bool, product_id : UInt16, misc : StaticArray(UInt8, 5)) #

[View source]

Instance Method Detail

def build : UInt32 #

def clone #

[View source]
def copy_with(type _type = @type, prefix _prefix = @prefix, version_major _version_major = @version_major, version_minor _version_minor = @version_minor, build _build = @build, is_active _is_active = @is_active, product_id _product_id = @product_id, misc _misc = @misc) #

[View source]
def is_active : Bool #

def misc : StaticArray(UInt8, 5) #

def prefix : String #

def product_id : UInt16 #

def type : UInt8 #

def version_major : UInt32 #

def version_minor : UInt32 #