/*
 * udp1553.h
 *
 */

#ifndef UDP1553_H_
#define UDP1553_H_


struct udp1553_stat_t
{
	struct msg_t
	{
		unsigned int counter;
		unsigned int period_ms;
		unsigned int invalid;
		unsigned int missed;
		unsigned int bc_time;
		unsigned int rt_time;
	};

	unsigned int received_datagrams;
	unsigned int valid_packets;
	unsigned int invalid_len;
	unsigned int wrong_marker;
	unsigned int wrong_ta;
	unsigned int bc_missed;
	unsigned int invalid_message;
	unsigned int valid_message;
	msg_t msg[2][32];
};

const udp1553_stat_t* udp1553_stat();


#endif /* UDP1553_H_ */
