From 7b37afdd7c3ea2758391d0ff8f3930a5f1250de5 Mon Sep 17 00:00:00 2001
From: Vytor Calixto <vytorcalixto@gmail.com>
Date: Tue, 24 Nov 2015 17:16:28 -0200
Subject: [PATCH] Changed struct of Message

---
 definitions.h | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/definitions.h b/definitions.h
index 35c3de5..4117249 100644
--- a/definitions.h
+++ b/definitions.h
@@ -20,12 +20,22 @@ using namespace std;
 #define ERRO 14
 #define FIM 15
 
-typedef struct {
-    int begin   : 8,
+typedef struct{
+	int begin   : 8,
         size    : 6,
         sequence: 6,
         type    : 4,
         parity  : 8;
+}i_Control;
+
+typedef struct{
+	char begin,size,seqType,parity;
+}c_Control;
+
+typedef union {
+	c_Control c_ctrl;
+    i_Control i_ctrl;
 }Message;
 
+
 #endif
\ No newline at end of file
-- 
GitLab