#include "net/ea/protocol.h"
Go to the source code of this file.
Defines | |
#define | LOBYTE(w) ((unsigned char)(w)) |
#define | HIBYTE(w) ((unsigned char)(((unsigned short)(w)) >> 8)) |
Functions | |
void | set_coordinates (char *data, unsigned short x, unsigned short y, unsigned char direction) |
Encodes coords and direction in 3 bytes data. |
#define HIBYTE | ( | w | ) | ((unsigned char)(((unsigned short)(w)) >> 8)) |
Definition at line 25 of file protocol.cpp.
#define LOBYTE | ( | w | ) | ((unsigned char)(w)) |
Definition at line 24 of file protocol.cpp.
void set_coordinates | ( | char * | data, | |
unsigned short | x, | |||
unsigned short | y, | |||
unsigned char | direction | |||
) |