Wideband autonomous SDR analysis engine forked from sdr-visual-suite
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

26 строки
563B

  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. }
  16. type StatsProvider interface {
  17. Stats() SourceStats
  18. }
  19. var ErrNotImplemented = errors.New("sdrplay support not built; build with -tags sdrplay or use --mock")