123456789101112131415161718 |
- #pragma once
- class CMessageQueue;
- class CEncoderSensor
- {
- public:
- CEncoderSensor(CMessageQueue* q);
- void Notify(int8_t * buffer,int32_t size);
- void SetSensorSocket(SensorSocket<CEncoderSensor>* can);
- void Start();
- void Stop();
- void SetChannelReady(bool ret){_channelReady=ret;}
- private:
- CMessageQueue* _message;
- SensorSocket<CEncoderSensor> * _socket;
- std::mutex _lock;
-
- bool _channelReady;
- };
|