执行散列读 - DmaScatterExecute
函数简介
执行散列读操作,读取所有已准备的地址数据。(高级版功能,普通版无法使用)
接口名称
DmaScatterExecute
DLL调用
int32_t OLA_CALL_TYPE DmaScatterExecute(int64_t instance, int64_t scatterHandle);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| scatterHandle | 长整数型 | 散列句柄,由 DmaScatterCreate 返回 |
示例
DmaScatterPrepare(instance, scatterHandle, 0x400000, 4);
DmaScatterPrepare(instance, scatterHandle, 0x400010, 4);
int32_t result = DmaScatterExecute(instance, scatterHandle);
if (result == 1) {
// 执行成功,可以使用 DmaScatterRead 读取数据
}
返回值
整数型:1 成功,0 失败。
注意事项
- 必须先调用 DmaScatterPrepare 准备地址
- 执行后可以使用 DmaScatterRead 读取数据
- 可以多次执行以刷新数据
