rfbcClose (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Firmware version:

2.60 / 1.51.00


This function will close the RFBC protocol interface. After the interface is closed, it cannot be used until opened again. See rfbcOpen on how to open the RFBC interface.

When rfbcClose is called, any threads blocked in a rfbc function will resume operation with error code -1.

 

 

Input:

None.

 

Returns: INT

0

-

Ok. Interface is closed.

-1

-

Interface is not open (see rfbcOpen).

-4

-

RF communication is not available.

 

Declaration:

FUNCTION rfbcClose : INT;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM example;
 
BEGIN
   rc := rfbcOpen();
   IF rc <> 0 THEN
      DebugFmt(message := "Error: rfbcOpen = \1", v1 := rc);
   END_IF;
 
   ...
 
   // Close the rfbc interface
   rfbcClose();
 
   ...
END;
END_PROGRAM;