ACX_FACTORY_CIRCUIT_OPERATION_CALLBACKS_INIT函数 (acxcircuit.h)

ACX_FACTORY_CIRCUIT_OPERATION_CALLBACKS_INIT 函数初始化ACX_FACTORY_CIRCUIT_OPERATION_CALLBACKS配置结构。 此函数不使用任何输入。

语法

void ACX_FACTORY_CIRCUIT_OPERATION_CALLBACKS_INIT(
  PACX_FACTORY_CIRCUIT_OPERATION_CALLBACKS Config
);

参数

Config

初始化 ACX_FACTORY_CIRCUIT_OPERATION_CALLBACKS 配置结构,用于存储线路工厂操作回调信息。

返回值

备注

示例

示例用法如下所示。

    //
    // Get a FactoryCircuitInit structure.
    //
    PACXFACTORYCIRCUIT_INIT factoryInit = NULL;
    factoryInit = AcxFactoryCircuitInitAllocate(Device);

    //
    // Add factory identifiers.
    //
    RETURN_NTSTATUS_IF_FAILED(AcxFactoryCircuitInitAssignComponentUri(factoryInit, &dspFactoryUri));
    RETURN_NTSTATUS_IF_FAILED(AcxFactoryCircuitInitAssignName(factoryInit, &dspFactoryName));

    //
    // Assign the circuit's operation-callbacks.
    //
    ACX_FACTORY_CIRCUIT_OPERATION_CALLBACKS operationCallbacks;
    ACX_FACTORY_CIRCUIT_OPERATION_CALLBACKS_INIT(&operationCallbacks);

    operationCallbacks.EvtAcxFactoryCircuitCreateCircuitDevice = Dsp_EvtAcxFactoryCircuitCreateCircuitDevice;
    operationCallbacks.EvtAcxFactoryCircuitCreateCircuit = Dsp_EvtAcxFactoryCircuitCreateCircuit;

    AcxFactoryCircuitInitSetOperationCallbacks(factoryInit, &operationCallbacks);

ACX 要求

最低 ACX 版本: 1.0

有关 ACX 版本的详细信息,请参阅 ACX 版本概述

要求

要求
Header acxcircuit.h

另请参阅