GSSCOMMS.H 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. BOOL gssCommsSetType(int type); //0 = net, 1 = serial, 2 = modem
  2. W32 gssCommsGetType(void);
  3. void gssCommsSetComPort(int port); //1,2,3,4
  4. void gssCommsSetComBaudRate(int baud);
  5. void gssCommsSetCommandBase(unsigned base);
  6. int gss16550(int port);
  7. W32 gssCommsInitSystem(W32 maxnodes);
  8. W32 gssCommsUnInitSystem(void);
  9. BOOL gssCommsGetNetworkAddr(_NETNOW_NODE_ADDR * sNodeAddr);
  10. W32 gssCommsNetAddrToNode(_NETNOW_NODE_ADDR * sNodeAddr);
  11. W32 gssCommsGetActiveNodes(void);
  12. W32 gssCommsGetConsoleNode(void);
  13. W32 gssCommsAddNode(_NETNOW_NODE_ADDR * sNode);
  14. W32 gssCommsDeleteNode(W32 wNode);
  15. void gssCommsSortNodes(void);
  16. BOOL gssCommsPostListen(void);
  17. BOOL gssCommsSendData(PSTR pheader,W32 hsize,PSTR pdata,W32 dsize,W32 wNode);
  18. BOOL gssCommsGetData(PSTR pHeader,W32 wHSize,PSTR pData, W32 wDSize);
  19. BOOL gssCommsGetHeader(PSTR pHeader,W32 wHSize,PSTR * pPacket);
  20. void gssCommsGetBlock(PSTR pPacket,PSTR pData,W32 wDSize);
  21. extern int gssreadchar(void);
  22. extern int gsswritechar(int val);
  23. extern int gsstxfree(void);
  24. extern int gssrxused(void);
  25. extern int gsstxused(void);
  26. extern int gssrxfree(void);
  27. extern void gssclrtx(void);
  28. extern void gssclrrx(void);
  29. enum {gssNORESPONSE=-1,gssOK,gssCONNECT,gssRING,gssNOCARRIER,gssERROR,gssNODIALTONE,gssBUSY,gssNOANSWER};
  30. void gssModemInit(char * string);
  31. void gssModemDial(char * string,int tone); //if (tone) tone dialling else pulse dialling
  32. void gssModemHangUp(void);
  33. void gssModemAnswer(void);
  34. int gssModemCheckResponse(void);
  35. char * gssModemGetReturnString(int val);
  36.