input-mirisdr.h 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * input-mirisdr.h
  3. * MiriSDR-specific declarations
  4. *
  5. * Copyright (c) 2015-2021 Tomasz Lemiech <szpajder@gmail.com>
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. #include <mirisdr.h> // mirisdr_dev_t
  21. #define MIRISDR_BUFSIZE 320000
  22. #define MIRISDR_DEFAULT_LIBUSB_BUFFER_COUNT 10
  23. #define MIRISDR_DEFAULT_SAMPLE_RATE 2560000
  24. typedef struct {
  25. mirisdr_dev_t* dev; // pointer to libmirisdr device struct
  26. char* serial; // dongle serial number
  27. int index; // dongle index
  28. int correction; // correction in Hertz (PPM correction is not supported by libmirisdr)
  29. int gain; // gain in dB
  30. int bufcnt; // libusb buffer count
  31. } mirisdr_dev_data_t;