Added 64-bit types to reg_write.
authorFlorian Pose <fp@igh-essen.com>
Thu, 09 Apr 2009 14:56:23 +0000
changeset 1395 e9fe40c458cc
parent 1394 e77728ddf0f9
child 1396 9d04cc08f40f
Added 64-bit types to reg_write.
tool/CommandRegWrite.cpp
--- a/tool/CommandRegWrite.cpp	Thu Apr 09 10:21:47 2009 +0000
+++ b/tool/CommandRegWrite.cpp	Thu Apr 09 14:56:23 2009 +0000
@@ -146,6 +146,10 @@
 				int32_t val;
 				strValue >> val;
 				*(int32_t *) data.data = cpu_to_le32(val);
+			} else if (dataType->name == "int64") {
+				int64_t val;
+				strValue >> val;
+				*(int64_t *) data.data = cpu_to_le64(val);
 			} else if (dataType->name == "uint8") {
 				uint16_t val; // uint8_t is interpreted as char
 				strValue >> val;
@@ -160,6 +164,10 @@
 				uint32_t val;
 				strValue >> val;
 				*(uint32_t *) data.data = cpu_to_le32(val);
+			} else if (dataType->name == "uint64") {
+				uint64_t val;
+				strValue >> val;
+				*(uint64_t *) data.data = cpu_to_le64(val);
 			} else if (dataType->name == "string" ||
 					dataType->name == "octet_string") {
 				data.length = strValue.str().size();