ACX_CIRCUIT_PNPPOWER_CALLBACKS_INIT function (acxcircuit.h)

The ACX_CIRCUIT_PNPPOWER_CALLBACKS_INIT function initializes a ACX_CIRCUIT_PNPPOWER_CALLBACKS structure. No inputs are used with this function.

Syntax

void ACX_CIRCUIT_PNPPOWER_CALLBACKS_INIT(
  PACX_CIRCUIT_PNPPOWER_CALLBACKS PnpPowerCallbacks
);

Parameters

PnpPowerCallbacks

A pointer to an initialized ACX_CIRCUIT_PNPPOWER_CALLBACKS structure.

Return value

None

Remarks

Example

Example usage is shown below.

      //
    // Add circuit identifiers.
    //
    AcxCircuitInitSetComponentId(CircuitInit, &COMPONENT_GUID);

    AcxCircuitInitAssignName(CircuitInit, &circuitName);
  
    //
    // Add circuit type.
    //
    AcxCircuitInitSetCircuitType(CircuitInit, AcxCircuitTypeRender);

    //
    // Assign the circuit's pnp-power callbacks.
    //
    {
        ACX_CIRCUIT_PNPPOWER_CALLBACKS  powerCallbacks;
        ACX_CIRCUIT_PNPPOWER_CALLBACKS_INIT(&powerCallbacks);
        powerCallbacks.EvtAcxCircuitPowerUp = R_EvtCircuitPowerUp;
        powerCallbacks.EvtAcxCircuitPowerDown = R_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

See also