Gx6192/Gx6256/Gx6864MuxSetSelectorMode

Purpose

Sets a mux group's selector mode.

Syntax

Gx6256MuxSetSelectorMode (nHandle, nMuxGroup, nSelectorMode, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX6192/GX6256/GX6864 board.
nMuxGroup
SHORT
Mux Group numbers are:
0.      GX6256_GROUP_A
1.      GX6256_GROUP_B
2.      GX6256_GROUP_C
3.      GX6256_GROUP_D
4.      GX6256_GROUP_E
5.      GX6256_GROUP_F
6.      GX6256_GROUP_G
7.      GX6256_GROUP_H
8.      GX6256_GROUP_I
9.      GX6256_GROUP_J
10.   GX6256_GROUP_K
11.   GX6256_GROUP_L
12.   GX6256_GROUP_M
13.   GX6256_GROUP_N
14.   GX6256_GROUP_O
15.  GX6256_GROUP_P  
pnSelectorMode
PSHORT
Mux selector modes are:
0.      GX6256_SELECTOR_MODE_NONE: The Mux, Matrix, and external lines are not connected to each other.
1.      GX6256_SELECTOR_MODE_MATRIX_ONLY: The Mux and Matrix are allowed to connect but the external lines are disconnected.
2.      GX6256_SELECTOR_MODE_EXTERNAL_ONLY: The Mux and the external lines are allowed to connect to each other.
3.      GX6256_SELECTOR_MODE_MATRIX_AND_EXTERNAL: The Mux is allowed to connect to the Matrix and external lines.
4.    GX6256_SELECTOR_MODE_MATRIX_ISOLATED: The Mux is not allowed to connect to the selector, effectively making it isolated from the rest of the board.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

 

Example

The following sets Mux group B selector mode to matrix only:

 

Gx6256MuxSetSelectorMode(nHandle, GX6256_GROUP_B, GX6256_SELECTOR_MODE_MATRIX_ONLY, &nStatus);

 

See Also

Gx6192/Gx6256/Gx6864MuxGetSelectorMode, GxSWGetErrorString