GX5702, GX5704
Returns the Module’s Output mode.
Gx5733ModuleGetOutputMode (nHandle, nPort, pnMode, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX5733 board. |
nPort |
SHORT |
Module port 0 (GX5733_PORT0) only. |
pnMode |
PSHORT |
Returns the Module’s Operation mode as follow:0. GX5733_MODULE_OPERATION_BUFFERED: Default operation mode, in this mode the Module is using its buffer to read/write (depend on its type input or output).1. GX5733_MODULE_OPERATION_PORT_IO: The user can use the Module’s as a static port in or port out (depend on its type input or output) |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Outputs are set to Tri-State when in disabled.
The following example returns the module port 0 output mode:
SHORT nMode, nStatus;
Gx5733ModuleGetOutputMode (nHandle, GX5733_PORT0, &nMode, &nStatus);
Gx5733ModuleSetOutputMode, Gx5733ModuleSetStrobeSource