initial commit
This commit is contained in:
+19
@@ -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
|
||||
Reference in New Issue
Block a user