/*
 * message.h
 *
 * Created: 02.03.2019 09:30:53
 *  Author: Jens
 */ 


#ifndef MESSAGE_H_
#define MESSAGE_H_

typedef enum _eMsgCode
{
	NOP = 0,
	Uart,
	AdcComplete,
	Timer,

} MsgCode;

typedef struct _sMsg_t
{
	MsgCode code;
	union
	{
		struct
		{
			uint8_t data;
		} uart;
		struct
		{
			uint8_t ch;
			uint16_t data;
		} adc;
		struct
		{
			uint8_t ch;
		} timer;
	} m;
} Msg_t;

#endif /* MESSAGE_H_ */