GetParam
Function Usage
Obtains the parameter values of a module.
Prototype
VmiErrCode GetParam(VmiDataType module, VmiCmd cmd, uint8_t *param, uint32_t size)
Parameter Description
Field Name |
Input/Output |
Field Type |
Description |
|---|---|---|---|
module |
Input |
VmiDataType |
Module data type. |
cmd |
Input |
VmiCmd |
Operation instruction for obtaining the parameter values. |
param |
Input |
uint8_t* |
Pointer to the output parameter data. |
size |
Input |
uint32_t |
Size of the output data. |
Return Value Description
Data type: enum VmiErrCode: int32_t
The value can be any of the following:
- OK (0): The parameters are obtained successfully.
- Other values: The parameters fail to be obtained, and an error code is returned.
Parent topic: Function APIs