initial commit

This commit is contained in:
2026-10-08 14:10:53 +02:00
commit 1d5f4f0fdd
4 changed files with 85 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef ANOU_H
#define ANOU_H
class ANOUServer
{
char* portname; //name of the serial port (eg.: /dev/ttyUSB1)
char buffer[1024]; //message buffer
int* addresses; //known client addresses
public:
int ConfigureSerialPort(); //configuring the serial port
int StartListener(); //start listening on the serial port
int WriteSerialPort(char* message); //write the message to the serial port
char* AssemblePacket(int src_addr, int dst_addr, char** message)
char* AssembleMessage(int type, char* mode, char* value); //append the value and the message type to the message mode
int SHAW(bool force_readdress); //Stateful Host Addressing Waterfall protocol
};
#endif