card_fxo.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef CARD_FXO_H
  2. #define CARD_FXO_H
  3. /*
  4. * Written by Oron Peled <oron@actcom.co.il>
  5. * Copyright (C) 2004-2006, Xorcom
  6. *
  7. * All rights reserved.
  8. *
  9. * This program is free software; you can redistribute it and/or modify
  10. * it under the terms of the GNU General Public License as published by
  11. * the Free Software Foundation; either version 2 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This program is distributed in the hope that it will be useful,
  15. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. * GNU General Public License for more details.
  18. *
  19. * You should have received a copy of the GNU General Public License
  20. * along with this program; if not, write to the Free Software
  21. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  22. *
  23. */
  24. #include "xpd.h"
  25. enum fxo_opcodes {
  26. XPROTO_NAME(FXO, SIG_CHANGED) = 0x06, /**/
  27. XPROTO_NAME(FXO, DAA_WRITE) = 0x0F, /* Write to DAA */
  28. XPROTO_NAME(FXO, CHAN_CID) = 0x0F, /* Write to DAA */
  29. XPROTO_NAME(FXO, LED) = 0x0F, /* Write to DAA */
  30. };
  31. DEF_RPACKET_DATA(FXO, SIG_CHANGED,
  32. xpp_line_t sig_status; /* channels: lsb=1, msb=8 */
  33. xpp_line_t sig_toggles; /* channels: lsb=1, msb=8 */
  34. );
  35. #endif /* CARD_FXO_H */