Wideband autonomous SDR analysis engine forked from sdr-visual-suite
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

31 řádky
660B

  1. package sdr
  2. import "errors"
  3. type Source interface {
  4. Start() error
  5. Stop() error
  6. ReadIQ(n int) ([]complex64, error)
  7. }
  8. type ConfigurableSource interface {
  9. UpdateConfig(sampleRate int, centerHz float64, gainDb float64, agc bool, bwKHz int) error
  10. }
  11. type SourceStats struct {
  12. BufferSamples int `json:"buffer_samples"`
  13. Dropped uint64 `json:"dropped"`
  14. Resets uint64 `json:"resets"`
  15. LastSampleAgoMs int64 `json:"last_sample_ago_ms"`
  16. }
  17. type StatsProvider interface {
  18. Stats() SourceStats
  19. }
  20. type Flushable interface {
  21. Flush()
  22. }
  23. var ErrNotImplemented = errors.New("sdrplay support not built; build with -tags sdrplay or use --mock")