Wideband autonomous SDR analysis engine forked from sdr-visual-suite
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
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")