diff options
| author | Tero Kontkanen <tero.kontkanen@granitedevices.fi> | 2017-05-29 22:14:53 +0300 |
|---|---|---|
| committer | Tero Kontkanen <tero.kontkanen@granitedevices.fi> | 2017-05-29 22:22:26 +0300 |
| commit | c2a59b64b486ced4dd91d4dba1005205322d6bc6 (patch) | |
| tree | 3c52fed1bc93d10cce0423136e57f79e851543d0 /devicedeployment.h | |
| parent | ddb349e44fe421d977cbf5501ad2204b7dbc7546 (diff) | |
| download | SimpleMotionV2-c2a59b64b486ced4dd91d4dba1005205322d6bc6.tar.gz SimpleMotionV2-c2a59b64b486ced4dd91d4dba1005205322d6bc6.zip | |
-Added smLoadConfigurationFromBuffer to be operated from RAM buffer instead of file
-Fix bug of smLoadConfiguration returning CFGCommunicationError repeatedly after the first connection error
Diffstat (limited to 'devicedeployment.h')
| -rw-r--r-- | devicedeployment.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/devicedeployment.h b/devicedeployment.h index f6fa08e..f86c7dc 100644 --- a/devicedeployment.h +++ b/devicedeployment.h @@ -82,6 +82,19 @@ typedef enum */ LIB LoadConfigurationStatus smLoadConfiguration( const smbus smhandle, const int smaddress, const char *filename, unsigned int mode, int *skippedCount, int *errorCount ); +/** + * @brief smConfigureParametersFromBuffer Same as smConfigureParameters but reads data from user specified memory address instead of file. Configures all target device parameters from file and performs device restart if necessary. This can take few seconds to complete. This may take 2-5 seconds to call. + * @param smhandle SM bus handle, must be opened before call + * @param smaddress Target SM device address + * @param drcData Pointer to to a memory where .drc file is loaded + * @param drcDataLen Number of bytes available in the drcData buffer + * @param mode Combined from CONFIGMODE_ define bits (can logic OR mutliple values). + * @return Enum LoadConfigurationStatus + * + * Requires DRC file version 111 or later to use CONFIGMODE_REQUIRE_SAME_FW. + */ +LIB LoadConfigurationStatus smLoadConfigurationFromBuffer(const smbus smhandle, const int smaddress, const smuint8 *drcData, const int drcDataLength, unsigned int mode, int *skippedCount, int *errorCount ); + /** * @brief smGetDeviceFirmwareUniqueID Reads installed firmware binary checksum that can be used to verify whether a wanted FW version is installed |
