matrix

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destination

type Destination struct {
	Label  string  `json:"label"`
	Id     uint16  `json:"id"`
	Source *Source `json:"source"`
}

func (*Destination) GetID

func (dst *Destination) GetID() uint16

func (*Destination) GetIDInt

func (dst *Destination) GetIDInt() int

func (*Destination) GetLabel

func (dst *Destination) GetLabel() string

func (*Destination) GetSource

func (dst *Destination) GetSource() *Source

func (*Destination) SetLabel

func (dst *Destination) SetLabel(lbl string)

type Matrix

type Matrix struct {
	// contains filtered or unexported fields
}

func (*Matrix) ForEachDestination

func (matrix *Matrix) ForEachDestination(callback func(uint16, *Destination))

func (*Matrix) GetDestination

func (matrix *Matrix) GetDestination(dst uint16) *Destination

func (*Matrix) GetSource

func (matrix *Matrix) GetSource(src uint16) *Source

func (*Matrix) Init

func (matrix *Matrix) Init(numDestinations, numSources uint16)

func (*Matrix) MarshalJSON

func (matrix *Matrix) MarshalJSON() ([]byte, error)

func (*Matrix) SetCrosspoint

func (matrix *Matrix) SetCrosspoint(dst uint16, src uint16)

type Source

type Source struct {
	Label string `json:"label"`
	Id    uint16 `json:"id"`
}

func (*Source) GetID

func (src *Source) GetID() uint16

func (*Source) GetIDInt

func (src *Source) GetIDInt() int

func (*Source) GetLabel

func (src *Source) GetLabel() string

func (*Source) SetLabel

func (src *Source) SetLabel(lbl string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL