#ifndef PAYLOAD_SPECS_H
#define PAYLOAD_SPECS_H

#define buf_size 32

#define MB1P 0
#define MB2P 1
#define LB1P 2
#define LB2P 3
#define CIDBP 4
#define COMBP 5
#define DATASTRBP 6

#define start_magic_len 2
#define end_magic_len 1
#define len_len 2

#define BID 0xFF

#define CIDB 0
#define COMB 1
#define DATASTRB 2

const int com_preamble_len = 2;

const int preamble_len = start_magic_len + len_len;
const int net_extra_len = preamble_len + end_magic_len;

const unsigned char magic_start1 = 0xEE;
const unsigned char magic_start2 = 0xAE;
const unsigned char magic_end = 0xFC;

#endif
