Example for updating the MTi-1's firmware. Uses a platform independent, retargetable pure C implementation of the firmware updater protocol.
xbusmessageid.h
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 #ifndef XBUSMESSAGEID_H 00018 #define XBUSMESSAGEID_H 00019 00020 00021 /*! \brief Xbus message IDs. */ 00022 enum XsMessageId 00023 { 00024 XMID_Wakeup = 0x3E, 00025 XMID_WakeupAck = 0x3F, 00026 XMID_ReqDid = 0x00, 00027 XMID_DeviceId = 0x01, 00028 XMID_GotoConfig = 0x30, 00029 XMID_GotoConfigAck = 0x31, 00030 XMID_GotoMeasurement = 0x10, 00031 XMID_GotoMeasurementAck = 0x11, 00032 XMID_MtData2 = 0x36, 00033 XMID_ReqOutputConfig = 0xC0, 00034 XMID_SetOutputConfig = 0xC0, 00035 XMID_OutputConfig = 0xC1, 00036 XMID_Reset = 0x40, 00037 XMID_ResetAck = 0x41, 00038 XMID_Error = 0x42, 00039 XMID_ToggleIoPins = 0xBE, 00040 XMID_ToggleIoPinsAck = 0xBF, 00041 XMID_FirmwareUpdate = 0xF2, 00042 XMID_GotoBootLoader = 0xF0, 00043 XMID_GotoBootLoaderAck = 0xF1, 00044 XMID_ReqFirmwareRevision = 0x12, 00045 XMID_FirmwareRevision = 0x13 00046 00047 00048 }; 00049 00050 00051 00052 #endif // XBUSMESSAGEID_H
Generated on Wed Jul 13 2022 07:56:15 by 1.7.2