You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.4 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __PROTOCOL_LGS_3D_HEADERS__
  2. #define __PROTOCOL_LGS_3D_HEADERS__
  3. #include "protocolLGSm.h"
  4. class protocolLGS_CLIENT : public protocolLGSM
  5. {
  6. private:
  7. basicLogCollection * m_pLog;
  8. public:
  9. explicit protocolLGS_CLIENT(basicTransport * Transport = NULL, uint8_t DeviceID = 0);
  10. virtual ~protocolLGS_CLIENT();
  11. public:
  12. /* Query Issuer Methods */
  13. bool doFullReset(void);
  14. bool doReset(void);
  15. bool doStartMotors(void);
  16. bool doStopMotors(void);
  17. bool create(void)
  18. {
  19. return protocolLGSM::create();
  20. }
  21. bool getDraw(uint32_t SampleID, uint8_t KernelID = 0);
  22. bool getParameters(void);
  23. bool getShadowPoly(uint8_t PolyID);
  24. bool getShadowStatus(uint8_t MaskID = 0);
  25. bool getShadowInfo(void);
  26. bool getVoltage(void);
  27. bool getState(void);
  28. bool getState2(void);
  29. bool setMode(U8 Mode);
  30. bool setShadowPoly(simplePolygone * SP);
  31. bool setShadowStatus(bool Status, uint8_t MaskID = 0);
  32. bool setShadowTrace(vectorZoneMask * VM);
  33. bool setParameters(PLGS_2D_PARAMETERS ptr);
  34. };
  35. class protocolLGS_SERVER : public protocolLGSM
  36. {
  37. private:
  38. basicLogCollection * m_pLog;
  39. public:
  40. explicit protocolLGS_SERVER(basicTransport * Transport = NULL, U8 DeviceID = 0);
  41. virtual ~protocolLGS_SERVER();
  42. public:
  43. bool create(void)
  44. {
  45. return protocolLGSM::create();
  46. }
  47. bool sendBorderError(uint8_t Error);
  48. bool sendBorderData(uint32_t SampleID, uint8_t KernelID, thresholdNode * WorkingSAF);
  49. bool sendEvent(uint8_t Code);
  50. bool sendFlip(uint16_t Count);
  51. bool sendMode(uint8_t Mode);
  52. bool sendParameters(PLGS_2D_PARAMETERS ptr);
  53. bool sendScan(void);
  54. bool sendShadowInfo(ShadowMask * ShObj);
  55. bool sendShadowStatus(bool Status, uint8_t ShadowID = 0);
  56. bool sendShadowPoly(simplePolygone * SP);
  57. bool sendSetPolyACK(uint8_t id);
  58. bool sendResetACK(void);
  59. bool sendFullResetACK(void);
  60. bool sendGenericACK(bool Status);
  61. bool sendState(uint8_t State);
  62. bool sendState2(uint8_t State, uint8_t Coumt = 0, uint8_t * Data = NULL);
  63. bool sendTarget(uint16_t Angle, uint16_t Azimuth, uint16_t Range);
  64. bool sendTargetW(uint16_t Angle, uint16_t Azimuth, uint16_t Range, uint32_t Width);
  65. bool sendTargetM(uint32_t SampleID, uint8_t Kernel, uint16_t Range, uint32_t Width, bool isBlack = false);
  66. bool sendTargetZ(TARGET_DATA * ptr);
  67. /* Proto Object Things */
  68. void setTransport(basicTransport * tPtr)
  69. {
  70. m_oDataTransport = tPtr;
  71. }
  72. };
  73. #endif