Documentation
¶
Index ¶
- type Destination
- type Matrix
- func (matrix *Matrix) ForEachDestination(callback func(uint16, *Destination))
- func (matrix *Matrix) GetDestination(dst uint16) *Destination
- func (matrix *Matrix) GetSource(src uint16) *Source
- func (matrix *Matrix) Init(numDestinations, numSources uint16)
- func (matrix *Matrix) MarshalJSON() ([]byte, error)
- func (matrix *Matrix) SetCrosspoint(dst uint16, src uint16)
- type Source
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) MarshalJSON ¶
func (*Matrix) SetCrosspoint ¶
Click to show internal directories.
Click to hide internal directories.