Example for updating the MTi-1's firmware. Uses a platform independent, retargetable pure C implementation of the firmware updater protocol.

Dependencies:   mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

mtinterface.cpp File Reference

mtinterface.cpp File Reference

Go to the source code of this file.

Functions

static void * allocateMessageDataWrapper (size_t bufferSize)
 Callback function for XbusParserCallback for allocating a block of memory.
static void deallocateMessageDataWrapper (void const *buffer)
 Callback function for XbusParserCallback for deallocating a block of memory.
static void xbusParserCallbackFunctionWrapper (struct XbusMessage const *message)
 Callback function for XbusParserCallback that handles completely received xbus messages from the motion tracker.

Detailed Description

Copyright (C) Xsens Technologies B.V., 2015.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file mtinterface.cpp.


Function Documentation

static void* allocateMessageDataWrapper ( size_t  bufferSize ) [static]

Callback function for XbusParserCallback for allocating a block of memory.

Parameters:
bufferSizebuffer size

Definition at line 37 of file mtinterface.cpp.

static void deallocateMessageDataWrapper ( void const *  buffer ) [static]

Callback function for XbusParserCallback for deallocating a block of memory.

Parameters:
bufferPointer to the buffer that should be deallocated

Definition at line 46 of file mtinterface.cpp.

static void xbusParserCallbackFunctionWrapper ( struct XbusMessage const *  message ) [static]

Callback function for XbusParserCallback that handles completely received xbus messages from the motion tracker.

Parameters:
Pointerto the received xbus message

Definition at line 55 of file mtinterface.cpp.