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 版本概觀。
規格需求
需求 | 值 |
---|---|
標頭 | acxcircuit.h |