AcxCircuitInitSetAcxCircuitCompositeCallbacks function (acxcircuit.h)

The AcxCircuitInitSetAcxCircuitCompositeCallbacks function sets the driver's composite callbacks for the ACXCIRCUIT.

Syntax

void AcxCircuitInitSetAcxCircuitCompositeCallbacks(
  PACXCIRCUIT_INIT                 CircuitInit,
  PACX_CIRCUIT_COMPOSITE_CALLBACKS EvtCompositeCallbacks
);

Parameters

CircuitInit

The ACXCIRCUIT_INIT structure that defines the circuit initialization. ACXCIRCUIT_INIT is an opaque object used for circuit initialization. Use AcxCircuitInitAllocate to initialize the ACXCIRCUIT_INIT structure.

EvtCompositeCallbacks

A pointer to an initialized ACX_CIRCUIT_COMPOSITE_CALLBACKS structure that contains the callbacks to be used for the circuit.

Return value

None

Remarks

This function does not return a value.

Example

Example usage is shown below.

    //
    // Assign the circuit's composite callbacks.
    //
    {
        ACX_CIRCUIT_COMPOSITE_CALLBACKS compositeCallbacks;
        ACX_CIRCUIT_COMPOSITE_CALLBACKS_INIT(&compositeCallbacks);
        compositeCallbacks.EvtAcxCircuitCompositeCircuitInitialize = CodecR_EvtCircuitCompositeCircuitInitialize;
        compositeCallbacks.EvtAcxCircuitCompositeInitialize = CodecR_EvtCircuitCompositeInitialize;
        compositeCallbacks.EvtAcxCircuitCompositeDeinitialize = CodecR_EvtCircuitCompositeDeinitialize;
        AcxCircuitInitSetAcxCircuitCompositeCallbacks(circuitInit, &compositeCallbacks);
    }

ACX requirements

Minimum ACX version: 1.0

For more information about ACX versions, see ACX version overview.

Requirements

Requirement Value
Header acxcircuit.h
IRQL PASSIVE_LEVEL

See also