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.

71 lines
2.5 KiB

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