InjectData
Function Usage
Injects data.
Prototype
VmiErrCode InjectData(VmiDataType module, VmiCmd cmd, uint8_t *data, uint32_t size)
Parameter Description
Field Name |
Input/Output |
Field Type |
Description |
|---|---|---|---|
module |
Input |
VmiDataType |
Module data type. |
cmd |
Input |
VmiCmd |
Operation instruction during data injection. |
data |
Input |
uint8_t* |
Pointer to the data to be sent. |
size |
Input |
uint32_t |
Size of the data to be injected. |
Return Value Description
Data type: enum VmiErrCode: int32_t
The value can be any of the following:
- OK (0): The data injection is successful.
- Other values: The data injection fails, and an error code is returned.
Parent topic: Functional APIs