This repository has been archived on 2023-12-22. You can view files and clone it, but cannot push or open issues or pull requests.
old-monorepo/modules/control/Firmware/lib/StreamCommunicator/StreamCommunicator.h

18 lines
452 B
C
Raw Normal View History

2022-02-04 16:01:30 +01:00
#include "Stream.h"
#include "Communicator.h"
2022-02-04 16:01:30 +01:00
2022-02-05 20:50:54 +01:00
#ifndef _STREAM_COMMUNICATOR_INCLUDED_
#define _STREAM_COMMUNICATOR_INCLUDED_
class StreamCommunicator: public Communicator
2022-02-04 16:01:30 +01:00
{
protected:
Stream &stream;
public:
StreamCommunicator(Stream &s_out, __SIZE_TYPE__ bufferSize);
void sendMessage(int *values, __SIZE_TYPE__ numberOfValues) override;
void sendMessage(const char message[]) override;
char *receiveMessage() override;
2022-02-05 20:50:54 +01:00
};
#endif