Wideband autonomous SDR analysis engine forked from sdr-visual-suite
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

36 lignes
670B

  1. //go:build !cufft
  2. package gpudemod
  3. import "errors"
  4. type DemodType int
  5. const (
  6. DemodNFM DemodType = iota
  7. DemodWFM
  8. DemodAM
  9. DemodUSB
  10. DemodLSB
  11. DemodCW
  12. )
  13. type Engine struct {
  14. maxSamples int
  15. sampleRate int
  16. }
  17. func Available() bool { return false }
  18. func New(maxSamples int, sampleRate int) (*Engine, error) {
  19. return nil, errors.New("CUDA demod not available: cufft build tag not enabled")
  20. }
  21. func (e *Engine) SetFIR(taps []float32) {}
  22. func (e *Engine) Demod(iq []complex64, offsetHz float64, bw float64, mode DemodType) ([]float32, int, error) {
  23. return nil, 0, errors.New("CUDA demod not available: cufft build tag not enabled")
  24. }
  25. func (e *Engine) Close() {}