home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / psion / opp16f_zip / INCLUDE / SDK / SYS$NCP.OPH < prev    next >
Encoding:
Text File  |  1995-12-21  |  2.3 KB  |  82 lines

  1. /* AC: added these 3 include files */
  2.  
  3. #ifndef P_EPOC_OPH
  4. #include <sdk\epoc>
  5. #endif
  6.  
  7. #ifndef P_SERIAL_OPH
  8. #include <p\serial>
  9. #endif
  10.  
  11. #ifndef P_MODEM_OPH
  12. #include <p\modem>
  13. #endif
  14.  
  15. #define NCLINK_VERSION_NUMBER       3
  16. #define NCLINK_MINOR_VERNO          1
  17.  
  18. /* Informational data obtained by supervisory reads */
  19.  
  20. #define PHYS_LINK_FAILED        0       /* Link layer has failed*/
  21. #define PHYS_CONNECT_FAILED     1       /* Waiting for connection failed */
  22. #define PHYS_CHARS_FAILED       2       /* Setting serial characteristics failed */
  23. #define PHYS_INIT_FAILED        3       /* Initialization of modem failed */
  24. #define PHYS_DIAL_FAILED        4       /* Dialling phone number failed */
  25. #define PHYS_MDMCONFIG_FAILED   5       /* additional modem config failed */
  26. #define PHYS_PHYS_LINK_ESTABLISHED 6    /* A physical link established */
  27. #define PHYS_WAITING_FOR_CALL   7       /* Physical layer waiting for call */
  28. #define PHYS_DIALLING_NUMBER    8       /* Physical layer dialling */
  29. #define PHYS_CONFIGURING_MODEM  9       /* configuring modem */
  30. #define PHYS_NCP_LINK_ESTAB_OK  10       /* Ncp link established OK */
  31. #define PHYS_NCP_LINK_ESTAB_NEW_NCP 11  /* Talking to different Ncp */
  32. #define PHYS_NCP_LINK_ESTAB_INVALID_VER  12 /* Remote NCP is V1.0 !!*/
  33. #define PHYS_NCP_LINK_END 13            /* remote NCP is terminating */
  34. #define PHYS_SERCONFIG_FAILED   14      /* serial port not there */
  35.  
  36. #define MAX_DVR_NAME    10   /* Max device driver name size (incl zero term) */
  37. #define MAX_PHONE_NO    40   /* Max phone number length */
  38. #define MAX_MODEM_CMD   40   /* Max extra modem config */
  39.  
  40. /* Control functions to perform */
  41.  
  42. #define NCLINK_CTRL_RETRY   0
  43. #define NCLINK_CTRL_EXIT    1
  44. #define NCLINK_CTRL_NEWNCP_OK   2
  45. #define NCLINK_CTRL_NEW_CONFIG  3
  46.  
  47. STRUCT DVRS
  48.     sch#(SIZEOF(P_SRCHAR))
  49.     mch#(SIZEOF(P_MDMCHR))
  50.     errcorrect%
  51.     connectbaud%
  52.     serdvr#(MAX_DVR_NAME)
  53.     mdmdvr#(MAX_DVR_NAME)
  54.     masdvr#(MAX_DVR_NAME)
  55.     lnkdvr#(MAX_DVR_NAME)
  56.     phoneno#(MAX_PHONE_NO)
  57.     mdmconf#(MAX_MODEM_CMD)
  58. ENDS
  59.  
  60. STRUCT REM_NCP
  61.     vers%
  62.     id&
  63. ENDS
  64.  
  65. STRUCT PHY_INFO
  66.     dummy#(OPPEVAL(max(SIZEOF(REM_NCP),SIZEOF(DVRS))))
  67. ENDS
  68.  
  69. STRUCT NCLINK_INFO
  70.     cmdtype%
  71.     errno%
  72.     p#(SIZEOF(PHY_INFO))
  73. ENDS
  74.  
  75. STRUCT NCLINK_SREC
  76.     chanused%
  77.     xmitK&
  78.     recvK&
  79.     procname#(E_MAX_NAME+2)
  80. ENDS
  81.  
  82.