Basic implementation of Xbus message parsing and generation for embedded processors. The code has no dependencies and should also work for other MCU architectures than ARM provided a C99 compiler is available.

Dependents:   MTi-1_example_LPC1768 MTi-1_rikbeun MTi-1_example MTi-1_example ... more

Important Information

This library is deprecated and no longer maintained. There are new embedded examples available in the MT SDK folder of the MT Software Suite. For more information please visit: https://xsenstechnologies.force.com/knowledgebase/s/article/Introduction-to-the-MT-SDK-programming-examples-for-MTi-devices

For an example of using the Xbus library to communicate with an MTi-1 series device using a full-duplex UART see:

Import programMTi-1_example

Example of using Xbus library to communicate with an MTi-1 series device using a full-duplex UART connection.

Committer:
tjerkhofmeijer
Date:
Fri Oct 02 16:22:33 2015 +0200
Revision:
1:c24f69a2eff4
Parent:
0:eb25b1785ee4
Xbus library is updated to support MTi 1-series' I2C and SPI interfaces

Who changed what in which revision?

UserRevisionLine numberNew contents of line
alexandery 0:eb25b1785ee4 1 /*!
alexandery 0:eb25b1785ee4 2 * \file
alexandery 0:eb25b1785ee4 3 * \copyright Copyright (C) Xsens Technologies B.V., 2015.
alexandery 0:eb25b1785ee4 4 *
alexandery 0:eb25b1785ee4 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
alexandery 0:eb25b1785ee4 6 * use this file except in compliance with the License. You may obtain a copy
alexandery 0:eb25b1785ee4 7 * of the License at
alexandery 0:eb25b1785ee4 8 *
alexandery 0:eb25b1785ee4 9 * http://www.apache.org/licenses/LICENSE-2.0
alexandery 0:eb25b1785ee4 10 *
alexandery 0:eb25b1785ee4 11 * Unless required by applicable law or agreed to in writing, software
alexandery 0:eb25b1785ee4 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
alexandery 0:eb25b1785ee4 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
alexandery 0:eb25b1785ee4 14 * License for the specific language governing permissions and limitations
alexandery 0:eb25b1785ee4 15 * under the License.
alexandery 0:eb25b1785ee4 16 */
alexandery 0:eb25b1785ee4 17
alexandery 0:eb25b1785ee4 18 #ifndef __XBUSUTILITY_H
alexandery 0:eb25b1785ee4 19 #define __XBUSUTILITY_H
alexandery 0:eb25b1785ee4 20
alexandery 0:eb25b1785ee4 21 #include <stdint.h>
alexandery 0:eb25b1785ee4 22
alexandery 0:eb25b1785ee4 23 uint8_t const* XbusUtility_readU8(uint8_t* out, uint8_t const* in);
alexandery 0:eb25b1785ee4 24 uint8_t const* XbusUtility_readU16(uint16_t* out, uint8_t const* in);
alexandery 0:eb25b1785ee4 25 uint8_t const* XbusUtility_readU32(uint32_t* out, uint8_t const* in);
alexandery 0:eb25b1785ee4 26
alexandery 0:eb25b1785ee4 27 uint8_t* XbusUtility_writeU8(uint8_t* out, uint8_t in);
alexandery 0:eb25b1785ee4 28 uint8_t* XbusUtility_writeU16(uint8_t* out, uint16_t in);
alexandery 0:eb25b1785ee4 29 uint8_t* XbusUtility_writeU32(uint8_t* out, uint32_t in);
alexandery 0:eb25b1785ee4 30
alexandery 0:eb25b1785ee4 31 #endif // __XBUSUTILITY_H