Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos mbed Xbus
Fork of MTi-1_example by
Diff: xbus/mtdata2.h
- Revision:
- 6:28cdd6ee6b9d
- Child:
- 15:558d279addd9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/xbus/mtdata2.h Wed May 13 14:51:24 2015 +0200
@@ -0,0 +1,48 @@
+/*!
+ * \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 __MTDATA2_H
+#define __MTDATA2_H
+
+#include <stdint.h>
+#include <stdbool.h>
+
+/*! \brief Xbus message ID for MTData2 packets. */
+#define MTDATA2_MESSAGE_ID (0x36)
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+enum XsDataIdentifier
+{
+ XDI_PacketCounter = 0x1020,
+ XDI_SampleTimeFine = 0x1060,
+ XDI_Quaternion = 0x2010,
+ XDI_DeltaV = 0x4010,
+ XDI_Acceleration = 0x4020,
+ XDI_RateOfTurn = 0x8020,
+ XDI_DeltaQ = 0x8030,
+ XDI_MagneticField = 0xC020,
+ XDI_StatusWord = 0xE020,
+};
+
+bool MtData2_getItem(void* item, enum XsDataIdentifier id, uint8_t const* data, uint16_t dataLength);
+
+#ifdef __cplusplus
+}
+#endif // extern "C"
+
+#endif // __MTDATA2_H
