Contains the configuration data for a VMXResource whose VMXResourceType is Interrupt.
More...
#include <VMXResourceConfig.h>
|
enum | InterruptEdge { RISING,
FALLING,
BOTH
} |
| Specifies which signal edge will generate an interrupt.
|
|
Contains the configuration data for a VMXResource whose VMXResourceType is Interrupt.
◆ InterruptConfig() [1/2]
InterruptConfig::InterruptConfig |
( |
bool |
initially_enabled = true | ) |
|
|
inline |
◆ InterruptConfig() [2/2]
InterruptConfig::InterruptConfig |
( |
InterruptEdge |
edge, |
|
|
VMXIO_InterruptHandler |
p_handler, |
|
|
void * |
p_param, |
|
|
bool |
initially_enabled = true |
|
) |
| |
|
inline |
InterruptConfig constructor; initializes values with the provided input parameters *.
- Parameters
-
edge | The signal edge which will generate an interrupt |
p_handler | The interrupt handler which will be invoked when an interrupt occurs |
p_param | The parameter to pass to the interrupt handler when an interrupt occurs; may be null |
◆ Copy()
Copies the contents of the source VMXResourceConfig object into this object.
NOTE: The source object's VMXResourceType must match this object's VMXResourceType.
- Parameters
-
[in] | p_config | The source VMXResourceConfig object from which to copy configuration data into this object. |
Implements VMXResourceConfig.
◆ GetCopy()
Instantiates a copy of the configuration data.
NOTE: The caller is responsible to delete the object returned from this method.
Implements VMXResourceConfig.
◆ GetInitiallyEnabled()
bool InterruptConfig::GetInitiallyEnabled |
( |
| ) |
|
|
inline |
Retrieves whether the interrupt is enabled automatically when activated.
◆ SetInitiallyEnabled()
void InterruptConfig::SetInitiallyEnabled |
( |
bool |
initially_enabled | ) |
|
|
inline |
Sets whether the interrupt is enabled automatically when activated.
The documentation for this struct was generated from the following file: