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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers xbusutility.h Source File

xbusutility.h

Go to the documentation of this file.
00001 /*!
00002  * \file
00003  * \copyright Copyright (C) Xsens Technologies B.V., 2015.
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License"); you may not
00006  * use this file except in compliance with the License. You may obtain a copy
00007  * of the License at
00008  *
00009  * http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00013  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
00014  * License for the specific language governing permissions and limitations
00015  * under the License.
00016  */
00017 
00018 #ifndef __XBUSUTILITY_H
00019 #define __XBUSUTILITY_H
00020 
00021 #include <stdint.h>
00022 
00023 uint8_t const* XbusUtility_readU8(uint8_t* out, uint8_t const* in);
00024 uint8_t const* XbusUtility_readU16(uint16_t* out, uint8_t const* in);
00025 uint8_t const* XbusUtility_readU32(uint32_t* out, uint8_t const* in);
00026 
00027 uint8_t* XbusUtility_writeU8(uint8_t* out, uint8_t in);
00028 uint8_t* XbusUtility_writeU16(uint8_t* out, uint16_t in);
00029 uint8_t* XbusUtility_writeU32(uint8_t* out, uint32_t in);
00030 
00031 #endif // __XBUSUTILITY_H