card_fxs.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef CARD_FXS_H
  2. #define CARD_FXS_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 fxs_opcodes {
  26. XPROTO_NAME(FXS, SIG_CHANGED) = 0x06,
  27. /**/
  28. XPROTO_NAME(FXS, XPD_STATE) = 0x0F, /* Write to SLIC */
  29. XPROTO_NAME(FXS, CHAN_POWER) = 0x0F, /* Write to SLIC */
  30. XPROTO_NAME(FXS, CHAN_CID) = 0x0F, /* Write to SLIC */
  31. XPROTO_NAME(FXS, LED) = 0x0F, /* Write to SLIC */
  32. };
  33. DEF_RPACKET_DATA(FXS, SIG_CHANGED,
  34. xpp_line_t sig_status; /* channels: lsb=1, msb=8 */
  35. xpp_line_t sig_toggles; /* channels: lsb=1, msb=8 */
  36. );
  37. #endif /* CARD_FXS_H */