HyunGyu Kim / Mbed 2 deprecated MTi-1_example

Dependencies:   mbed-rtos mbed Xbus

Fork of MTi-1_example by Xsens

Revision:
10:18a6661b7e59
Child:
14:155f9a55ec51
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/xbus/xbusmessage.h	Wed May 13 17:42:38 2015 +0200
@@ -0,0 +1,47 @@
+/*!
+ * \file
+ * \copyright
+ * Copyright (C) Xsens Technologies B.V., 2015.  All rights reserved.
+ *
+ * This source code is intended for use only by Xsens Technologies BV and
+ * those that have explicit written permission to use it from
+ * Xsens Technologies BV.
+ *
+ * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
+ * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
+ * PARTICULAR PURPOSE.
+ */
+
+#ifndef __XBUSMESSAGE_H
+#define __XBUSMESSAGE_H
+
+#include <stddef.h>
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+enum XsMessageId
+{
+	XMID_GotoConfig         = 0x30,
+	XMID_GotoConfigAck      = 0x31,
+	XMID_GotoMeasurement    = 0x10,
+	XMID_GotoMeasurementAck = 0x11,
+};
+
+struct XbusMessage
+{
+	enum XsMessageId mid;
+	uint16_t length;
+	void* data;
+};
+
+size_t XbusMessage_format(uint8_t* raw, struct XbusMessage const* message);
+
+#ifdef __cplusplus
+}
+#endif // extern "C"
+
+#endif // __XBUSMESSAGE_H