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/Devices/Control/Firmware/lib/Communicator/Communicator.h

16 lines
448 B
C
Raw Normal View History

class Communicator
{
private:
char *messageBuffer;
2022-02-04 09:42:15 +01:00
__SIZE_TYPE__ bufferSize;
public:
Communicator(__SIZE_TYPE__ bufferSize);
2022-02-04 09:42:15 +01:00
virtual void sendMessage(int *values, int numberOfValues);
virtual void sendMessage(char *message);
virtual char *receiveMessage();
char *getBuffer();
2022-02-04 09:42:15 +01:00
int getBufferSize();
void parseIDs(int *values, int numberOfValues, char *out);
int calculateMessageOutSize(int numberOfValues);
};