25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

26 satır
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")