Versions in this module Expand all Collapse all v0 v0.2.0 Sep 7, 2026 Changes in this version + const DataEndpointIn + const DataEndpointOut + const MsgAppFirmwareVersion + const MsgBoardSerial + const MsgDPVersion + const MsgOSDVersion + const MsgPackageSerial + var ErrRefused = errors.New("luma: the headset refused the request") + func DataRequest(msg uint16, payload []byte) []byte + func ParseData(b []byte, want uint16) (string, error) type Glasses + func (g *Glasses) AskData(msg uint16) (string, error) + func (g *Glasses) ChipVersion() ([]byte, error) + func (g *Glasses) Info() (Info, error) + type Info struct + BoardSerial string + FirmwareVersion string + PackageSerial string v0.1.0 Sep 6, 2026 Changes in this version + const CmdVersionA + const CmdVersionB + const DrainReads + const DrainTimeout + const EndpointIn + const EndpointOut + const ProductID + const Timeout + const VendorID + var ErrNoDevice = errors.New("luma: no VITURE Luma Ultra found") + var ErrNotAFrame = errors.New("luma: not a frame") + var ErrUnsupported = errors.New("luma: only macOS is wired up") + var ErrWrongCommand = errors.New("luma: the reply answers a different command") + var Magic = [2]byte + func Request(command byte, payload []byte) []byte + type Glasses struct + func Open() (*Glasses, error) + func (g *Glasses) Ask(command byte, payload []byte) (Reply, error) + func (g *Glasses) Close() error + func (g *Glasses) Version() ([]byte, error) + type Reply struct + Command byte + Field [2]byte + Rest []byte + func ParseReply(b []byte, want byte) (Reply, error) + func (r Reply) String() string