// Socket states: 0xMN
// M = 1 while data taking, 0 otherwise
// N = socket/command state
#define NUDP_CLOSED    0x00  // just created, disconnected, ...
#define NUDP_READY      0x01  // connected, ready
#define NUDP_WAITING   0x02  // command sent, waiting for response
#define NUDP_CMD_ERR  0x04  // last response incorrect
#define NUDP_DATA        0x10  // command 0x08 sent, data taking

// NUDP packet format
#define NUDP_HEADER_LENGTH   8  // header size - DO NOT change this!
#define NUDP_DATA_LENGTH  1024  // data field size - this you may adjust

#define NUDP_DATA_PACKETS  8248  // number of RAW data packets / image
