Documentation
¶
Index ¶
- func FindArtNetIP() (net.IP, error)
- func NodeToString(n *artnet.ControlledNode) string
- func ToNet(net uint16) (add artnet.Address)
- type ChannelValue
- type Controller
- type Sender
- type State
- func (s *State) Get() UniverseStateMap
- func (s *State) GetUniverse(u uint16) Universe
- func (s *State) GetUniverses() []uint16
- func (s *State) SetChannel(u, c uint16, v uint8)
- func (s *State) SetChannelValue(value ChannelValue)
- func (s *State) SetChannelValues(values []ChannelValue)
- func (s *State) SetUniverse(u uint16, dmx Universe)
- type Universe
- type UniverseStateMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindArtNetIP ¶
FindArtNetIP finds the matching interface with an IP address inside of the addressRange
func NodeToString ¶
func NodeToString(n *artnet.ControlledNode) string
NodeToString returns a string representation of the given Node
Types ¶
type ChannelValue ¶
ChannelValue defines an ArtNet Universe and the value of the DMX channel
type Controller ¶
type Controller interface {
Write(cntl.Command) error
SetDMXChannelValue(value ChannelValue)
SetDMXChannelValues(values []ChannelValue)
Start(ctx context.Context) error
Stop()
}
Controller is a convenience interface to use within this application
func NewController ¶
func NewController(logger logging.Logger) (Controller, error)
NewController returns a artnet Controller as an anonymous interface
type Sender ¶
type Sender interface {
SendDMXToAddress(dmx [512]byte, address artnet.Address)
Start() error
Stop()
}
Sender is an artnet controller abstraction of the base implementation of jsimonetti
type State ¶
type State struct {
// contains filtered or unexported fields
}
State stores the state of universes
func NewStateFromData ¶
NewStateFromData takes the given data and stores it into a freshly created store
func NewStateFromUniverseStateMap ¶
NewStateFromUniverseStateMap takes the given data and stores it into a freshly created store
func (*State) GetUniverse ¶
GetUniverse gets a complete DMX universe data
func (*State) GetUniverses ¶
GetUniverses returns a slice of all available universe indexes
func (*State) SetChannel ¶
SetChannel sets a given channel on a given universe on a given value.
func (*State) SetChannelValue ¶
func (s *State) SetChannelValue(value ChannelValue)
func (*State) SetChannelValues ¶
func (s *State) SetChannelValues(values []ChannelValue)
SetChannelValues sets a range of ChannelValues for convenience
func (*State) SetUniverse ¶
SetUniverse sets a complete DMX universe data
type UniverseStateMap ¶
UniverseStateMap holds the state of all used universes