Rate This Document
Findability
Accuracy
Completeness
Readability

InjectData

Function Usage

Injects data.

Restrictions

This API cannot be blocked for a long time (maximum: 200 ms).

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 injection is successful.
  • Negative error code: Injection failed.