Gx5731ModuleBufferTest

Applies To

GX5701, GX5702, GX5704

Purpose

Test the specified Module’s Buffer.

Syntax

Gx5731ModuleBufferTest (nHandle, nPort, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX5731 board.
nPort
SHORT
Specified Module's port number:
0. GX5731_PORT0: Module port 0
1. GX5731_PORT1: Module port 1
2. GX5731_PORT2: Module port 2.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

This function runs an internal test to check the specified module’s buffer for read and write operations. The specified buffer is empty upon return.

Example

The following example return the Buffer flag mode of module port 0:

 

SHORT nMode, nStatus;

Gx5731ModuleBufferTest (nHandle, GX5731_PORT0, &nStatus);

 

See Also

Gx5731ModuleBufferWriteData, Gx5731ModuleBufferReadData, Gx5731ModuleBufferGetState