Versions in this module Expand all Collapse all v1 v1.0.0 Aug 29, 2026 Changes in this version + var ErrDisconnected = errors.New("hamdial: the dial was disconnected") + type Button int + const Button1 + const Button2 + const Button3 + const Button4 + const Button5 + const Button6 + const Button7 + const DialButton + const NoButton + type ButtonPressedListener interface + ButtonPressed func(button Button) + type ButtonPressedListenerFunc func(button Button) + func (f ButtonPressedListenerFunc) ButtonPressed(button Button) + type ButtonReleasedListener interface + ButtonReleased func(button Button) + type ButtonReleasedListenerFunc func(button Button) + func (f ButtonReleasedListenerFunc) ButtonReleased(button Button) + type Dial struct + func Open(info DialInfo) (*Dial, error) + func OpenDial(localName string) (*Dial, error) + func OpenDialAt(address string) (*Dial, error) + func (d *Dial) Address() string + func (d *Dial) Close() error + func (d *Dial) Name() string + func (d *Dial) Notify(listener any) + func (d *Dial) Path() string + func (d *Dial) Run(ctx context.Context) error + func (d *Dial) Send(payload []byte) error + func (d *Dial) SetHapticFeedback(enabled bool) error + type DialInfo struct + Address string + Name string + Path string + func ListDials(localName string) ([]DialInfo, error) + type DialTurnedListener interface + DialTurned func(direction Direction) + type DialTurnedListenerFunc func(direction Direction) + func (f DialTurnedListenerFunc) DialTurned(direction Direction) + type Direction int + const Clockwise + const CounterClockwise + type DisconnectedListener interface + Disconnected func() + type DisconnectedListenerFunc func() + func (f DisconnectedListenerFunc) Disconnected() + type ReportListener interface + Report func(reportID byte, data []byte) + type ReportListenerFunc func(reportID byte, data []byte) + func (f ReportListenerFunc) Report(reportID byte, data []byte)