message

package
v0.0.0-...-ac268a5 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: LGPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CurrentSet    uint16 = 0xFFFF
	CurrentPreset uint16 = 0xFFFF
)
View Source
const (
	RawMessageBegin uint8 = 1
	RawMessageExt   uint8 = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveChange

type ActiveChange struct {
	Message
}

func (*ActiveChange) Copy

func (m *ActiveChange) Copy() IMessage

func (ActiveChange) Parse

func (m ActiveChange) Parse(p *pod.Pod) (status.St, interface{}, error)

type Float32

type Float32 [4]byte

func (Float32) Get

func (i Float32) Get() float32

func (*Float32) Set

func (i *Float32) Set(v float32)

type IMessage

type IMessage interface {
	Copy() IMessage
	GetData() []byte
	GetType() uint16
	GetSubType() uint16
	IsOk() bool
	LogInfo()
	Parse(*pod.Pod) (status.St, interface{}, error)
	SetData([]byte)
}

func GenActiveChange

func GenActiveChange(pbi pod.PedalBoardItem) IMessage

func GenDTClassChange

func GenDTClassChange(dt *pod.DT) IMessage

func GenDTModeChange

func GenDTModeChange(dt *pod.DT) IMessage

func GenDTTopologyChange

func GenDTTopologyChange(dt *pod.DT) IMessage

func GenParameterCabChange

func GenParameterCabChange(p pod.Parameter) IMessage

func GenParameterChange

func GenParameterChange(p pod.Parameter) IMessage

func GenParameterChangeMax

func GenParameterChangeMax(p pod.Parameter) IMessage

func GenParameterChangeMin

func GenParameterChangeMin(p pod.Parameter) IMessage

func GenParameterPedalBoardChange

func GenParameterPedalBoardChange(p pod.Parameter) IMessage

func GenParameterTempoChange

func GenParameterTempoChange(p pod.Parameter) IMessage

func GenParameterTempoChange2

func GenParameterTempoChange2(p pod.Parameter) IMessage

func GenPresetChange

func GenPresetChange(presetID uint8) IMessage

func GenPresetChangeAlert

func GenPresetChangeAlert() IMessage

func GenPresetLoad

func GenPresetLoad() IMessage

func GenPresetQuery

func GenPresetQuery(presetID uint16, setID uint16) IMessage

func GenPresetSet

func GenPresetSet(p *pod.Preset, oldMsg *PresetLoad, presetID uint16, setID uint16) IMessage

DirtyHack TODO: Cleanup

func GenSetChange

func GenSetChange(setID uint8) IMessage

func GenSetQuery

func GenSetQuery(id uint32) IMessage

func GenSetupChange

func GenSetupChange() IMessage

func GenStatusQueryPresetID

func GenStatusQueryPresetID() IMessage

func GenStatusQuerySave

func GenStatusQuerySave() IMessage

func GenStatusQuerySetID

func GenStatusQuerySetID() IMessage

func GenTypeChange

func GenTypeChange(pbi pod.PedalBoardItem) IMessage

func NewMessage

func NewMessage(rm RawMessage) (IMessage, error)

type Int32

type Int32 [4]byte

func (Int32) Get

func (i Int32) Get() int32

func (*Int32) Set

func (i *Int32) Set(v int32)

type Message

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

func (*Message) Copy

func (m *Message) Copy() IMessage

func (*Message) GetData

func (m *Message) GetData() []byte

func (*Message) GetSubType

func (m *Message) GetSubType() uint16

func (*Message) GetType

func (m *Message) GetType() uint16

func (*Message) IsOk

func (m *Message) IsOk() bool

func (Message) LogInfo

func (m Message) LogInfo()

func (*Message) Parse

func (m *Message) Parse(*pod.Pod) (status.St, interface{}, error)

func (*Message) SetData

func (m *Message) SetData(data []byte)

type ParameterChange

type ParameterChange struct {
	Message
}

func (*ParameterChange) Copy

func (m *ParameterChange) Copy() IMessage

func (ParameterChange) Parse

func (m ParameterChange) Parse(p *pod.Pod) (status.St, interface{}, error)

type ParameterChangeMax

type ParameterChangeMax struct {
	Message
}

func (*ParameterChangeMax) Copy

func (m *ParameterChangeMax) Copy() IMessage

func (ParameterChangeMax) Parse

func (m ParameterChangeMax) Parse(p *pod.Pod) (status.St, interface{}, error)

type ParameterChangeMin

type ParameterChangeMin struct {
	Message
}

func (*ParameterChangeMin) Copy

func (m *ParameterChangeMin) Copy() IMessage

func (ParameterChangeMin) Parse

func (m ParameterChangeMin) Parse(p *pod.Pod) (status.St, interface{}, error)

type ParameterTempoChange

type ParameterTempoChange struct {
	Message
}

func (*ParameterTempoChange) Copy

func (m *ParameterTempoChange) Copy() IMessage

func (ParameterTempoChange) Parse

func (m ParameterTempoChange) Parse(p *pod.Pod) (status.St, interface{}, error)

type ParameterTempoChange2

type ParameterTempoChange2 struct {
	Message
}

func (*ParameterTempoChange2) Copy

func (m *ParameterTempoChange2) Copy() IMessage

func (ParameterTempoChange2) Parse

func (m ParameterTempoChange2) Parse(p *pod.Pod) (status.St, interface{}, error)

type PresetChange

type PresetChange struct {
	Message
}

func (*PresetChange) Copy

func (m *PresetChange) Copy() IMessage

func (PresetChange) Parse

func (m PresetChange) Parse(p *pod.Pod) (status.St, interface{}, error)

type PresetChangeAlert

type PresetChangeAlert struct {
	Message
}

func (*PresetChangeAlert) Copy

func (m *PresetChangeAlert) Copy() IMessage

func (PresetChangeAlert) Parse

func (m PresetChangeAlert) Parse(p *pod.Pod) (status.St, interface{}, error)

type PresetLoad

type PresetLoad struct {
	Message
}

func (*PresetLoad) Copy

func (m *PresetLoad) Copy() IMessage

func (PresetLoad) Parse

func (m PresetLoad) Parse(p *pod.Pod) (status.St, interface{}, error)

type PresetQuery

type PresetQuery struct {
	Message
}

func (*PresetQuery) Copy

func (m *PresetQuery) Copy() IMessage

type PresetSet

type PresetSet struct {
	Message
}

func (*PresetSet) Copy

func (m *PresetSet) Copy() IMessage

type RawMessage

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

func NewRawMessage

func NewRawMessage(data []byte) *RawMessage

func NewRawMessages

func NewRawMessages(m IMessage, ukno0 uint8, ukno1 uint8) []RawMessage

func (*RawMessage) Export

func (m *RawMessage) Export() []byte

func (*RawMessage) Extend

func (m *RawMessage) Extend(rm *RawMessage) error

func (*RawMessage) GetType

func (m *RawMessage) GetType() uint8

func (RawMessage) LogInfo

func (m RawMessage) LogInfo()

type SetChange

type SetChange struct {
	Message
}

func (*SetChange) Copy

func (m *SetChange) Copy() IMessage

func (SetChange) Parse

func (m SetChange) Parse(p *pod.Pod) (status.St, interface{}, error)

type SetLoad

type SetLoad struct {
	Message
}

func (*SetLoad) Copy

func (m *SetLoad) Copy() IMessage

func (SetLoad) Parse

func (m SetLoad) Parse(p *pod.Pod) (status.St, interface{}, error)

type SetQuery

type SetQuery struct {
	Message
}

func (*SetQuery) Copy

func (m *SetQuery) Copy() IMessage

type SetupChange

type SetupChange struct {
	Message
}

func (*SetupChange) Copy

func (m *SetupChange) Copy() IMessage

func (SetupChange) Parse

func (m SetupChange) Parse(p *pod.Pod) (status.St, interface{}, error)

type StatusQuery

type StatusQuery struct {
	Message
}

func (*StatusQuery) Copy

func (m *StatusQuery) Copy() IMessage

type StatusResponse

type StatusResponse struct {
	Message
}

func (*StatusResponse) Copy

func (m *StatusResponse) Copy() IMessage

func (StatusResponse) Parse

func (m StatusResponse) Parse(p *pod.Pod) (status.St, interface{}, error)

type TypeChange

type TypeChange struct {
	Message
}

func (*TypeChange) Copy

func (m *TypeChange) Copy() IMessage

func (TypeChange) Parse

func (m TypeChange) Parse(p *pod.Pod) (status.St, interface{}, error)

type Uint16

type Uint16 [2]byte

func (Uint16) Get

func (u Uint16) Get() uint16

func (*Uint16) Set

func (u *Uint16) Set(v uint16)

type Uint32

type Uint32 [4]byte

func (Uint32) Get

func (u Uint32) Get() uint32

func (*Uint32) Set

func (u *Uint32) Set(v uint32)

Jump to

Keyboard shortcuts

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