encoder_sensor.h 452 B

123456789101112131415161718
  1. #pragma once
  2. class CMessageQueue;
  3. class CEncoderSensor
  4. {
  5. public:
  6. CEncoderSensor(CMessageQueue* q);
  7. void Notify(int8_t * buffer,int32_t size);
  8. void SetSensorSocket(SensorSocket<CEncoderSensor>* can);
  9. void Start();
  10. void Stop();
  11. void SetChannelReady(bool ret){_channelReady=ret;}
  12. private:
  13. CMessageQueue* _message;
  14. SensorSocket<CEncoderSensor> * _socket;
  15. std::mutex _lock;
  16. bool _channelReady;
  17. };