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
71 lines
2.5 KiB
#ifndef __PROTOCOL_LGS_3D_HEADERS__
|
|
#define __PROTOCOL_LGS_3D_HEADERS__
|
|
|
|
#include "protocolLGSm.h"
|
|
|
|
|
|
class protocolLGS_CLIENT: public protocolLGSM{
|
|
private:
|
|
basicLogCollection *m_pLog;
|
|
public:
|
|
explicit protocolLGS_CLIENT( basicTransport *Transport = NULL, uint8_t DeviceID = 0 );
|
|
virtual ~protocolLGS_CLIENT();
|
|
public:
|
|
/* Query Issuer Methods */
|
|
bool doFullReset( void );
|
|
bool doReset( void );
|
|
bool doStartMotors( void );
|
|
bool doStopMotors( void );
|
|
bool create(void){ return protocolLGSM::create(); };
|
|
bool getDraw( uint32_t SampleID, uint8_t KernelID = 0 );
|
|
bool getParameters( void );
|
|
bool getShadowPoly( uint8_t PolyID );
|
|
bool getShadowStatus( uint8_t MaskID = 0 );
|
|
bool getShadowInfo( void );
|
|
bool getVoltage(void);
|
|
bool getState( void );
|
|
bool getState2( void );
|
|
|
|
bool setMode( U8 Mode );
|
|
bool setShadowPoly( simplePolygone *SP );
|
|
bool setShadowStatus( bool Status, uint8_t MaskID = 0 );
|
|
bool setShadowTrace( vectorZoneMask *VM );
|
|
bool setParameters( PLGS_PARAMETERS ptr );
|
|
|
|
};
|
|
|
|
class protocolLGS_SERVER: public protocolLGSM{
|
|
private:
|
|
basicLogCollection *m_pLog;
|
|
public:
|
|
explicit protocolLGS_SERVER( basicTransport *Transport = NULL, U8 DeviceID = 0 );
|
|
virtual ~protocolLGS_SERVER();
|
|
public:
|
|
bool create(void){ return protocolLGSM::create(); };
|
|
bool sendBorderError( uint8_t Error );
|
|
bool sendBorderData( uint32_t SampleID, uint8_t KernelID, thresholdNode *WorkingSAF);
|
|
bool sendEvent( uint8_t Code);
|
|
bool sendFlip( uint16_t Count);
|
|
bool sendMode( uint8_t Mode);
|
|
bool sendParameters( PLGS_PARAMETERS ptr );
|
|
bool sendScan( void );
|
|
bool sendShadowInfo( ShadowMask *ShObj );
|
|
bool sendShadowStatus( bool Status, uint8_t ShadowID = 0 );
|
|
bool sendShadowPoly( simplePolygone *SP );
|
|
bool sendSetPolyACK( uint8_t id );
|
|
bool sendResetACK( void );
|
|
bool sendFullResetACK( void );
|
|
bool sendGenericACK( bool Status );
|
|
bool sendState( uint8_t State);
|
|
bool sendState2( uint8_t State, uint8_t Coumt = 0, uint8_t *Data = NULL );
|
|
bool sendTarget( uint16_t Angle, uint16_t Azimuth, uint16_t Range );
|
|
bool sendTargetW( uint16_t Angle, uint16_t Azimuth, uint16_t Range, uint32_t Width);
|
|
bool sendTargetM( uint32_t SampleID, uint8_t Kernel, uint16_t Range, uint32_t Width, bool isBlack = false );
|
|
bool sendTargetZ( TARGET_DATA *ptr );
|
|
/* Proto Object Things */
|
|
void setTransport( basicTransport *tPtr ){ m_oDataTransport = tPtr; };
|
|
|
|
};
|
|
|
|
|
|
#endif
|