These generic control functions operate on all control objects.
More...
Detailed Description
These generic control functions operate on all control objects.
All ASX control objects have type and source and destination node properties. The generic control functions that follow support querying those properites.
Function Documentation
Generic control function to get the destination node of a control.
- Parameters:
-
| hControl | A handle to an ASX control object. |
| p_hNode | The destination node ASX object handle. This can be zero if the control does not have a destination node. |
- Returns:
- Returns 0 if there is no error, otherwise one of asxERROR is returned.
- Examples:
- cobranet/main.c, and mixer/main.c.
| ASX32_API ASX_ERROR ASX_Control_GetHpiControl |
( |
ASX_HANDLE |
hControl, |
|
|
void ** |
pphHpiSubSys, |
|
|
unsigned int * |
phHpiControl |
|
) |
| |
Tunnel through ASX to get HPI control parameters (NOT IMPLEMENTED YET).
- Parameters:
-
| hControl | A handle to an ASX control object. |
| pphHpiSubSys | Pointer to an HPI_HSUBSYS object. |
| phHpiControl | Pointer to an HPI_HCONTROL object. |
- Returns:
- Returns 0 if there is no error, otherwise one of asxERROR is returned. Example
HPI_HSUBSYS *phHPISubSys;
HPI_HCONTROL hHPIControl;
ASX_HANDLE hASXControl;
ASX_Control_GetHPIControl( hASXControl, &phHPISubSys, &hHPIControl);
Generic control function to get the index of a control on its node.
The index can be greater than zero only when multiple controls are present on the same node.
- Parameters:
-
| hControl | A handle to an ASX control object. |
| p_index | The index of this control on its node. |
- Returns:
- Returns 0 if there is no error, otherwise one of asxERROR is returned.
Generic control function to get the source node of a control.
- Parameters:
-
| hControl | A handle to an ASX control object. |
| p_hNode | The source node ASX object handle. This can be zero if the control does not have a source node. |
- Returns:
- Returns 0 if there is no error, otherwise one of asxERROR is returned.
- Examples:
- cobranet/main.c, and mixer/main.c.
Returns the sub system handle of the given control.
- Parameters:
-
| hControl | A handle to an ASX control object. |
| p_nSubSystem | The returned ASX sub system type. |
- Returns:
- Returns 0 if there is no error, otherwise one of asxERROR is returned.
- Examples:
- cobranet/main.c.