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.

70 lines
2.5 KiB

​
7 years ago
7 years ago
​
7 years ago
​
​
​
​
​
​
​
​
​
​
6 years ago
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 years ago
​
​
​
​
​
6 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 getState( void );
  23. bool getState2( void );
  24. bool setMode( U8 Mode );
  25. bool setShadowPoly( simplePolygone *SP );
  26. bool setShadowStatus( bool Status, uint8_t MaskID = 0 );
  27. bool setShadowTrace( vectorZoneMask *VM );
  28. bool setParameters( PLGS_PARAMETERS ptr );
  29. };
  30. class protocolLGS_SERVER: public protocolLGSm{
  31. private:
  32. basicLogCollection *m_pLog;
  33. public:
  34. explicit protocolLGS_SERVER( basicTransport *Transport = NULL, U8 DeviceID = 0 );
  35. virtual ~protocolLGS_SERVER();
  36. public:
  37. bool create(void){ return protocolLGSm::create(); };
  38. bool sendBorderError( uint8_t Error );
  39. bool sendBorderData( uint32_t SampleID, uint8_t KernelID, thresholdNode *WorkingSAF);
  40. bool sendEvent( uint8_t Code);
  41. bool sendFlip( uint16_t Count);
  42. bool sendMode( uint8_t Mode);
  43. bool sendParameters( PLGS_PARAMETERS ptr );
  44. bool sendScan( void );
  45. bool sendShadowInfo( ShadowMask *ShObj );
  46. bool sendShadowStatus( bool Status, uint8_t ShadowID = 0 );
  47. bool sendShadowPoly( simplePolygone *SP );
  48. bool sendSetPolyACK( uint8_t id );
  49. bool sendResetACK( void );
  50. bool sendFullResetACK( void );
  51. bool sendGenericACK( bool Status );
  52. bool sendState( uint8_t State);
  53. bool sendState2( uint8_t State, uint8_t Coumt = 0, uint8_t *Data = NULL );
  54. bool sendTarget( uint16_t Angle, uint16_t Azimuth, uint16_t Range );
  55. bool sendTargetW( uint16_t Angle, uint16_t Azimuth, uint16_t Range, uint32_t Width);
  56. bool sendTargetM( uint32_t SampleID, uint8_t Kernel, uint16_t Range, uint32_t Width, bool isBlack = false );
  57. bool sendTargetZ( TARGET_DATA *ptr );
  58. /* Proto Object Things */
  59. void setTransport( basicTransport *tPtr ){ m_oDataTransport = tPtr; };
  60. };
  61. #endif