From d4311cdcf17656da17a7e1c364dc75c474f60ac4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sergi=20Hern=C3=A0ndez=20Juan?= <shernand@iri.upc.edu>
Date: Thu, 14 Jan 2016 09:19:43 +0000
Subject: [PATCH] Added a header file with some common definitions from other
 files.

---
 src/dynamixel_common.h | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/dynamixel_common.h b/src/dynamixel_common.h
index b1223bc..a28da96 100644
--- a/src/dynamixel_common.h
+++ b/src/dynamixel_common.h
@@ -16,6 +16,15 @@ typedef enum {dyn_ping=0x01,
               dyn_bulk_read=0x92,
               dyn_bulk_write=0x93} dyn_inst_t;
 
+typedef enum{DYN_NO_ERROR=0x00,
+             DYN_INST_ERROR=0x40,
+             DYN_OVERLOAD_ERROR=0x20,
+             DYN_CHECKSUM_ERROR=0x10,
+             DYN_RANGE_ERROR=0x08,
+             DYN_OVERTEMP_ERROR=0x04,
+             DYN_ANGLE_ERROR=0x02,
+             DYN_VOLTAGE_ERROR=0x01} TDynError;
+
 typedef enum {dyn_reset_all=0xFF,dyn_reset_keep_id=0x01,dyn_reset_keep_id_baud=0x02} dyn_reset_mode_t;
 
 typedef enum{no_return=0x00,return_only_read=0x01,return_all=0x02} return_level_t;
-- 
GitLab