ACX_FACTORY_CIRCUIT_PNPPOWER_CALLBACKS structure (acxcircuit.h)
The ACX_FACTORY_CIRCUIT_PNPPOWER_CALLBACKS structure contains pointers to an ACXFACTORYCIRCUIT's Plug and Play and power event callback functions.
Syntax
typedef struct _ACX_FACTORY_CIRCUIT_PNPPOWER_CALLBACKS {
ULONG Size;
PFN_ACX_FACTORY_CIRCUIT_PREPARE_HARDWARE EvtAcxFactoryCircuitPrepareHardware;
PFN_ACX_FACTORY_CIRCUIT_RELEASE_HARDWARE EvtAcxFactoryCircuitReleaseHardware;
PFN_ACX_FACTORY_CIRCUIT_POWER_UP EvtAcxFactoryCircuitPowerUp;
PFN_ACX_FACTORY_CIRCUIT_POWER_DOWN EvtAcxFactoryCircuitPowerDown;
} ACX_FACTORY_CIRCUIT_PNPPOWER_CALLBACKS, *PACX_FACTORY_CIRCUIT_PNPPOWER_CALLBACKS;
Members
Size
The size, in bytes, of this structure.
EvtAcxFactoryCircuitPrepareHardware
A pointer to the driver's ACX_FACTORY_CIRCUIT_PREPARE_HARDWARE callback event callback function, or NULL.
EvtAcxFactoryCircuitReleaseHardware
A pointer to the driver's ACX_FACTORY_CIRCUIT_RELEASE_HARDWARE callback event callback function, or NULL.
EvtAcxFactoryCircuitPowerUp
A pointer to the ACX_FACTORY_CIRCUIT_POWER_UP callback event callback function, or NULL.
EvtAcxFactoryCircuitPowerDown
A pointer to the ACX_FACTORY_CIRCUIT_POWER_DOWN callback event callback function, or NULL.
Remarks
The ACX_FACTORY_CIRCUIT_PNPPOWER_CALLBACKS structure is used as input to the AcxFactoryCircuitInitSetAcxCircuitPnpPowerCallbacks method.
Your driver should initialize its ACX_FACTORY_CIRCUIT_PNPPOWER_CALLBACKS structure by calling the ACX_FACTORY_CIRCUIT_PNPPOWER_CALLBACKS_INIT function.
Example
Example usage is shown below.
//
// Assign the factory circuit's pnp-power callbacks.
//
ACX_FACTORY_CIRCUIT_PNPPOWER_CALLBACKS powerCallbacks;
ACX_FACTORY_CIRCUIT_PNPPOWER_CALLBACKS_INIT(&powerCallbacks);
powerCallbacks.EvtAcxFactoryCircuitPowerUp = EvtFactoryCircuitPowerUp;
powerCallbacks.EvtAcxFactoryCircuitPowerDown = EvtFactoryCircuitPowerDown;
AcxFactoryCircuitInitSetAcxCircuitPnpPowerCallbacks(factoryInit, &powerCallbacks);
ACX requirements
Minimum ACX version: 1.0
For more information about ACX versions, see ACX version overview.
Requirements
Requirement | Value |
---|---|
Header | acxcircuit.h |