Bewerken

Delen via


AcxCircuitInitSetAcxCircuitPnpPowerCallbacks function (acxcircuit.h)

The AcxCircuitInitSetAcxCircuitPnpPowerCallbacks function sets the driver's PNP callbacks for the ACXCIRCUIT.

Syntax

void AcxCircuitInitSetAcxCircuitPnpPowerCallbacks(
  PACXCIRCUIT_INIT                CircuitInit,
  PACX_CIRCUIT_PNPPOWER_CALLBACKS EvtPnpPowerCallbacks
);

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.

EvtPnpPowerCallbacks

An ACX_FACTORY_CIRCUIT_PNPPOWER_CALLBACKS PnP power callbacks structure that defines the callbacks.

Return value

None

Remarks

Before calling AcxCircuitInitSetAcxCircuitPnpPowerCallbacks, your driver should initialize its ACX_CIRCUIT_PNPPOWER_CALLBACKS structure by calling ACX_CIRCUIT_PNPPOWER_CALLBACKS_INIT. The ACX_CIRCUIT_PNPPOWER_CALLBACKS structure is used as input to the AcxCircuitInitSetAcxCircuitPnpPowerCallbacks method.

Example

Example usage is shown below.

    //
    // Assign the circuit's pnp-power callbacks.
    //
    ACX_CIRCUIT_PNPPOWER_CALLBACKS_INIT(&powerCallbacks);
    powerCallbacks.EvtAcxCircuitPowerUp = CodecR_EvtCircuitPowerUp;
    powerCallbacks.EvtAcxCircuitPowerDown = CodecR_EvtCircuitPowerDown;
    AcxCircuitInitSetAcxCircuitPnpPowerCallbacks(circuitInit, &powerCallbacks);

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