SetParam
Function Usage
Sets parameters.
Prototype
VmiErrCode SetParam(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 setting the parameter values. |
param |
Input |
uint8_t* |
Pointer to the parameters to be set. |
size |
Input |
uint32_t |
Size of the data to be set. |
Return Value Description
Data type: enum VmiErrCode: int32_t
The value can be any of the following:
- OK (0): The parameters are set successfully.
- Other values: The parameters fail to be set, and an error code is returned.
Parent topic: Functional APIs