Versions in this module Expand all Collapse all v0 v0.1.0 Jul 13, 2026 Changes in this version + const Baud + const VID + type Calibration struct + DarkCalPeriod float64 + DarkCalTempC float64 + LightCalOffset float64 + LightCalTempC float64 + SensorOffset float64 + type DeviceInfo struct + Port string + Product string + Serial string + func Enumerate() ([]DeviceInfo, error) + type Discovered struct + Unit UnitInfo + func Discover() ([]Discovered, error) + type IntervalSettings struct + PeriodEEPROM int + PeriodRAM int + ThresholdEEPROM float64 + ThresholdRAM float64 + type Reading struct + FrequencyHz int + MagPerArcsec2 float64 + PeriodCounts int64 + PeriodSeconds float64 + TempC float64 + func (r Reading) String() string + type SQM struct + func New(t Transport, info DeviceInfo) *SQM + func OpenBySerial(serial string) (*SQM, error) + func OpenFirst() (*SQM, error) + func OpenPort(port string) (*SQM, error) + func (s *SQM) Calibration() (Calibration, error) + func (s *SQM) Close() error + func (s *SQM) Command(prefix byte, cmd string) (string, error) + func (s *SQM) Info() DeviceInfo + func (s *SQM) IntervalSettings() (IntervalSettings, error) + func (s *SQM) Reading() (Reading, error) + func (s *SQM) UnaveragedReading() (Reading, error) + func (s *SQM) UnitInfo() (UnitInfo, error) + type Transport interface + Close func() error + Read func(p []byte) (int, error) + Write func(p []byte) (int, error) + type UnitInfo struct + Feature int + Model int + Protocol int + Serial int