Sub-unit Attribute
Description
Obtains the value of a sub-unit attribute. These values facilitate operation using PIPLX_OpSwitch.
Prototype
DWORD PIPLX_SubAttribute(SESSION session, DWORD CardNum, DWORD SubNum, BOOL Out, DWORD AttrCode, DWORD *AttrValue);
Parameters:
CardNum - card number
SubNum - sub-unit number
Out - sub-unit function: 0 for INPUT, 1 for OUTPUT
AttrCode - a value indicating the sub-unit attribute to be queried, see below
AttrValue - pointer to variable to receive the attribute's value
Returns:
Zero for success, or non-zero error code.
AttrCode values
Value |
Ident |
Function |
1 |
SUB_ATTR_CHANNEL_SUBSWITCHES |
Gets number of subswitches per logical channel (matrix crosspoint) |
2 |
SUB_ATTR_X_ISO_SUBSWITCHES |
Gets number of subswitches per logical X-isolator |
3 |
SUB_ATTR_Y_ISO_SUBSWITCHES |
Gets number of subswitches per logical Y-isolator |
4 |
SUB_ATTR_X_LOOPTHRU_SUBSWITCHES |
Gets number of subswitches per logical X-loopthru |
5 |
SUB_ATTR_Y_LOOPTHRU_SUBSWITCHES |
Gets number of subswitches per logical Y-loopthru |
0x100 |
SUB_ATTR_NUM_X_SEGMENTS |
Gets number of X-axis segments |
0x101 |
SUB_ATTR_X_SEGMENT01_SIZE |
Gets size of X-axis segment 1 |
0x102 |
SUB_ATTR_X_SEGMENT02_SIZE |
Gets size of X-axis segment 2 |
0x103 |
SUB_ATTR_X_SEGMENT03_SIZE |
Gets size of X-axis segment 3 |
0x104 |
SUB_ATTR_X_SEGMENT04_SIZE |
Gets size of X-axis segment 4 |
0x105 |
SUB_ATTR_X_SEGMENT05_SIZE |
Gets size of X-axis segment 5 |
0x106 |
SUB_ATTR_X_SEGMENT06_SIZE |
Gets size of X-axis segment 6 |
0x107 |
SUB_ATTR_X_SEGMENT07_SIZE |
Gets size of X-axis segment 7 |
0x108 |
SUB_ATTR_X_SEGMENT08_SIZE |
Gets size of X-axis segment 8 |
0x109 |
SUB_ATTR_X_SEGMENT09_SIZE |
Gets size of X-axis segment 9 |
0x10A |
SUB_ATTR_X_SEGMENT10_SIZE |
Gets size of X-axis segment 10 |
0x10B |
SUB_ATTR_X_SEGMENT11_SIZE |
Gets size of X-axis segment 11 |
0x10C |
SUB_ATTR_X_SEGMENT12_SIZE |
Gets size of X-axis segment 12 |
0x200 |
SUB_ATTR_NUM_Y_SEGMENTS |
Gets number of Y-axis segments |
0x201 |
SUB_ATTR_Y_SEGMENT01_SIZE |
Gets size of y-axis segment 1 |
0x202 |
SUB_ATTR_Y_SEGMENT02_SIZE |
Gets size of y-axis segment 2 |