sbgECom Library
4.0.1987-stable
C library to interface SBG Systems IMU/AHRS/INS
|
Import/export/save settings commands. More...
Go to the source code of this file.
Typedefs | |
typedef enum _SbgEComSettingsAction | SbgEComSettingsAction |
Enumerations | |
enum | _SbgEComSettingsAction { SBG_ECOM_REBOOT_ONLY = 0 , SBG_ECOM_SAVE_SETTINGS = 1 , SBG_ECOM_RESTORE_DEFAULT_SETTINGS = 2 } |
Functions | |
SbgErrorCode | sbgEComCmdSettingsAction (SbgEComHandle *pHandle, SbgEComSettingsAction action) |
SbgErrorCode | sbgEComCmdImportSettings (SbgEComHandle *pHandle, const void *pBuffer, size_t size) |
SbgErrorCode | sbgEComCmdExportSettings (SbgEComHandle *pHandle, void *pBuffer, size_t *pSize, size_t maxSize) |
Import/export/save settings commands.
The MIT license
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
typedef enum _SbgEComSettingsAction SbgEComSettingsAction |
Definition of all the settings actions available.
Definition of all the settings actions available.
SbgErrorCode sbgEComCmdSettingsAction | ( | SbgEComHandle * | pHandle, |
SbgEComSettingsAction | action | ||
) |
Send a command to execute a specific system action to reboot/save/restore default settings.
Execute one of the available settings action:
[in] | pHandle | A valid sbgECom handle. |
[in] | action | One of the available SbgEComSettingsAction. |
SbgErrorCode sbgEComCmdImportSettings | ( | SbgEComHandle * | pHandle, |
const void * | pBuffer, | ||
size_t | size | ||
) |
Send a complete set of settings to the device and store them into the FLASH memory.
The device will reboot automatically to use the new settings.
[in] | pHandle | A valid sbgECom handle. |
[in] | pBuffer | Read only buffer containing the settings. |
[in] | size | Size of the buffer. |
SbgErrorCode sbgEComCmdExportSettings | ( | SbgEComHandle * | pHandle, |
void * | pBuffer, | ||
size_t * | pSize, | ||
size_t | maxSize | ||
) |
Retrieve a complete set of settings from the device as a buffer.
[in] | pHandle | A valid sbgECom handle. |
[in] | pBuffer | Allocated buffer that can hold the received settings. |
[out] | pSize | The number of bytes that have been stored into pBuffer. |
[in] | maxSize | The maximum buffer size in bytes that can be stored into pBuffer. |