Versions in this module Expand all Collapse all v1 v1.0.1 Sep 6, 2022 v1.0.0 Sep 5, 2022 Changes in this version + const HIDpp1_ErrAlreadyExists + const HIDpp1_ErrBusy + const HIDpp1_ErrConnectFail + const HIDpp1_ErrInvalidAddress + const HIDpp1_ErrInvalidParamValue + const HIDpp1_ErrInvalidSubID + const HIDpp1_ErrInvalidValue + const HIDpp1_ErrRequestUnavailable + const HIDpp1_ErrResourceError + const HIDpp1_ErrTooManyDevices + const HIDpp1_ErrUnknownDevice + const HIDpp1_ErrWrongPINCode + const HIDpp1_Success + const HIDpp2_ErrBusy + const HIDpp2_ErrHWError + const HIDpp2_ErrInvalidArgument + const HIDpp2_ErrInvalidFeatureIndex + const HIDpp2_ErrInvalidFunctionID + const HIDpp2_ErrLogitechInternal + const HIDpp2_ErrOutOfRange + const HIDpp2_ErrUnknown + const HIDpp2_ErrUnsupported + const HIDpp2_Success + const ReportIDLong + const ReportIDShort + const ReportIDVeryLong + type Device struct + func Devices() (devs []*Device) + func New(d Interface, deviceIndex byte) (dev *Device, err error) + func (d *Device) Call(reportId, featureIndex, functionIndex byte, data ...byte) ([]byte, error) + func (d *Device) Close() + func (d *Device) Features() (m map[uint16]Feature, err error) + func (d *Device) IndexOf(featureId uint16) (feature Feature, found bool) + func (d *Device) NotificationChan(index byte, c chan []byte) + func (d *Device) Open() error + func (d *Device) Version() (version byte, err error) + type Feature struct + Id uint16 + Index byte + Type TypeBitfield + Version byte + func (f Feature) String() string + type Hidpp1Err byte + func (e Hidpp1Err) Error() string + type Hidpp2Err byte + func (e Hidpp2Err) Error() string + type HidppErr interface + type Interface interface + Close func() + Events func() <-chan []byte + Open func() error + Opened func() bool + Write func(p []byte) (n int, err error) + type TypeBitfield byte