axnclientif.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*********************************************************************
  2. Rhapsody : 7.2
  3. Component : AxnClient
  4. Configuration : DefaultConfig
  5. Model Element : CAxnClientIF
  6. File Path : \rtc\Rtccsf\Axn\src\axnclientif\gbl\AxnClientIF.h
  7. (c) Siemens AG Healthcare - All Rights Reserved
  8. *********************************************************************/
  9. #ifndef AxnClientIF_H
  10. #define AxnClientIF_H
  11. //## dependency axcscom
  12. #include "..\\gbl\axcscom.h"
  13. #ifndef AXN_NEUTRINO
  14. #ifdef AXN_LIB
  15. #define IMPORT_EXPORT __declspec( dllexport )
  16. #else /* AXN_LIB */
  17. #define IMPORT_EXPORT __declspec( dllimport )
  18. #endif /* AXN_LIB */
  19. #else
  20. #define IMPORT_EXPORT
  21. #endif
  22. //## package AxnClientIF
  23. //## class CAxnClientIF
  24. //## interface to the AXCS network. Create a object of the interface and
  25. //## use the object for sending and receiving to the AXCS network
  26. //##
  27. class IMPORT_EXPORT CAxnClientIF {
  28. //// Constructors and destructors ////
  29. public :
  30. //## operation CAxnClientIF()
  31. CAxnClientIF();
  32. //## operation ~CAxnClientIF()
  33. virtual ~CAxnClientIF();
  34. //// Operations ////
  35. //## operation connectToServer(ACS_ENUM,ACS_WORD)
  36. //## ACS_AXN_OK (ACS_ENUM) 1 the operation was succesful
  37. //## ACS_AXN_NOK (ACS_ENUM) 2 the operation was not succesful
  38. //##
  39. //## parameter:
  40. //## ClientAPId: MIN: 0x1 MAX: 0xFF
  41. //## wDummyTimeCounter MIN: 0 MAX: 32767,
  42. //## parameter is used for sending the dummy messages each
  43. //## wDummyTimeCounter * 200 [ms] to the Client APId
  44. virtual ACS_ENUM connectToServer(ACS_ENUM bClientId, ACS_WORD wDummyTimeCounter) = 0;
  45. //## operation recvObject(ACS_BYTE *)
  46. //## ACS_AXN_OK (ACS_ENUM) 1 the operation was succesful
  47. //## ACS_AXN_NOK (ACS_ENUM) 2 the operation was not succesful
  48. //## ACS_AXN_TIMEOUT (ACS_ENUM) 3 the operation returns after timeout
  49. //##
  50. //## parameter:
  51. //## pcObj: address of array[MAX_LEN_ACS_OBJ = 1460]
  52. virtual ACS_ENUM recvObject(ACS_BYTE * pcObj) = 0;
  53. //## operation recvObject(ACS_DWORD,ACS_BYTE*)
  54. //## ACS_AXN_OK (ACS_ENUM) 1 the operation was succesful
  55. //## ACS_AXN_NOK (ACS_ENUM) 2 the operation was not succesful
  56. //## ACS_AXN_TIMEOUT (ACS_ENUM) 3 the operation returns after timeout
  57. //##
  58. //## info: please do not use any longer
  59. virtual ACS_ENUM recvObject(ACS_DWORD l_lRecvTimeout, ACS_BYTE* pcObj) = 0;
  60. //## operation sendObject(ACS_BYTE *)
  61. //## ACS_AXN_OK (ACS_ENUM) 1 the operation was succesful
  62. //## ACS_AXN_NOK (ACS_ENUM) 2 the operation was not succesful
  63. //## parameter:
  64. //## pcObj: address of array[8 - 1460], first 8 bytes must have a valid
  65. //## filled structure of acs_obj_header_t
  66. virtual ACS_ENUM sendObject(ACS_BYTE * pcObj) = 0;
  67. //## operation getClientAPId()
  68. //## returns:
  69. //## ACS_ENUM 1 - 255 ClientAPId of the connected client
  70. virtual ACS_ENUM getClientAPId() = 0;
  71. //## operation sendObjectToServer(ACS_BYTE*)
  72. //## send a AXCS object
  73. //## ACS_AXN_OK (ACS_ENUM) 1 the operation was succesful
  74. //## ACS_AXN_NOK (ACS_ENUM) 2 the operation was not succesful
  75. //## parameter:
  76. //## pcObj: address of array[MAX_LEN_ACS_OBJ = 1460]
  77. //##
  78. //## info: please do not use any longer. Use sendObject instead.
  79. static ACS_ENUM sendObjectToServer(ACS_BYTE* pcObject);
  80. };
  81. #endif
  82. /*********************************************************************
  83. File Path : \rtc\Rtccsf\Axn\src\axnclientif\gbl\AxnClientIF.h
  84. *********************************************************************/