Syntax
VMUINT vm_firmware_get_info(
    VMSTR value, 
    VMUINT length, 
    VM_FIRMWARE_KEY_INFO key
);
ContentsIndex
PreviousUpNext
vm_firmware_get_info
Example
Syntax
VMUINT vm_firmware_get_info(
    VMSTR value, 
    VMUINT length, 
    VM_FIRMWARE_KEY_INFO key
);
Description

Get firmware information, e.g. firmware version, build date, and maximum memory that LinkIt application can use.

Parameters
Parameters 
Description 
VMSTR value 
[OUT] A buffer to store the firmware information in ASCII string. Pass NULL to get the required buffer length from return value. 
VMUINT length 
[IN] Size of the buffer in bytes, it should be 1 byte larger than the required buffer length to accomodate the terminating NULL. e.g. if length is 12 and the information string is 15 bytes long, only the first 12 character will be written to the buffer without the terminating NULL
VM_FIRMWARE_KEY_INFO key 
[IN] Firmware information to retrieve. See VM_FIRMWARE_KEY_INFO
Returns

The actual written length in bytes, not including the terminating NULL.

Example
VMCHAR value[30] = {0};
VMUINT written = vm_firmware_get_info(value,
                                      sizeof(value),
                                      VM_FIRMWARE_HOST_VERSION);
File

vmfirmware.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.