op_intrpt_state_ptr_get()
Abstract
Obtains the client state associated with the current event.
Syntax
op_intrpt_state_ptr_get ()
| Argument | Type | Description |
|---|---|---|
| no arguments |
Return Type
void *
Pointer to the client state associated with the current event.
Example
/* get current state info */
My_Model_Data * data_ptr = op_intrpt_state_ptr_get();
Details
Because the Simulation Kernel does not know anything about the content of a client state, you must be sure to get the state information with the appropriate data type.
Purpose
Provides a mechanism for getting the state information associated with the current event. This information is the client state that was installed with op_ev_state_install(). The same information can be obtained with the op_ev_state() KP, as follows:
op_ev_state (op_ev_current() )
Errors
- Program Abort: KP requires process context.
Reference
- None