Advertisement
Zy0d0x

cm108.h

Sep 20th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. /**
  2. * Hacked-together cm108-ptt library. Nearly 100% copied from Hamlib.
  3. * Do-not-trust and will-do-evil-things generally apply.
  4. *
  5. * Also the hidraw device is hardcoded to /dev/hidraw0 (see below in cm108_open)
  6. *
  7. * Have fun with it :D
  8. */
  9.  
  10. /*
  11. * Hamlib Interface - CM108 GPIO communication header
  12. * Copyright (c) 2000-2003 by Frank Singleton
  13. * Copyright (c) 2000-2010 by Stephane Fillod
  14. * Copyright (c) 2011 by Andrew Errington
  15. *
  16. * This library is free software; you can redistribute it and/or modify
  17. * it under the terms of the GNU Library General Public License as
  18. * published by the Free Software Foundation; either version 2 of
  19. * the License, or (at your option) any later version.
  20. *
  21. * This program is distributed in the hope that it will be useful,
  22. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  23. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  24. * GNU Library General Public License for more details.
  25. *
  26. * You should have received a copy of the GNU Library General Public
  27. * License along with this library; if not, write to the Free Software
  28. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  29. *
  30. */
  31.  
  32. #ifndef _CM108_H
  33. #define _CM108_H 1
  34.  
  35. #define CM108_VID "04D8"
  36. #define CM108_PID "00DD"
  37.  
  38.  
  39. /*
  40.  
  41. Old ID's
  42.  
  43. #define CM108_VID "0d8c"
  44. #define CM108_PID "000c"
  45.  
  46. */
  47.  
  48. /* Hamlib internal use, see rig.c */
  49. const char* cm108_find_device();
  50. int cm108_open();
  51. int cm108_close(int fd);
  52. void cm108_ptt_set(int fd, int state);
  53.  
  54. #endif /* _CM108_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement