mISDNdsp.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef __mISDNdsp_H__
  2. #define __mISDNdsp_H__
  3. struct mISDN_dsp_element_arg {
  4. char *name;
  5. char *def;
  6. char *desc;
  7. };
  8. struct mISDN_dsp_element {
  9. char *name;
  10. void *(*new)(const char *arg);
  11. void (*free)(void *p);
  12. void (*process_tx)(void *p, unsigned char *data, int len);
  13. void (*process_rx)(void *p, unsigned char *data, int len,
  14. unsigned int txlen);
  15. int num_args;
  16. struct mISDN_dsp_element_arg
  17. *args;
  18. };
  19. extern int mISDN_dsp_element_register(struct mISDN_dsp_element *elem);
  20. extern void mISDN_dsp_element_unregister(struct mISDN_dsp_element *elem);
  21. struct dsp_features {
  22. int hfc_id; /* unique id to identify the chip (or -1) */
  23. int hfc_dtmf; /* set if HFCmulti card supports dtmf */
  24. int hfc_conf; /* set if HFCmulti card supports conferences */
  25. int hfc_loops; /* set if card supports tone loops */
  26. int hfc_echocanhw; /* set if card supports echocancelation*/
  27. int pcm_id; /* unique id to identify the pcm bus (or -1) */
  28. int pcm_slots; /* number of slots on the pcm bus */
  29. int pcm_banks; /* number of IO banks of pcm bus */
  30. int unclocked; /* data is not clocked (has jitter/loss) */
  31. int unordered; /* data is unordered (packets have index) */
  32. };
  33. #endif