rfClose  (Function)

Top  Previous  Next

Architecture:

X32 / NX32L

Device support:

AX9 pro, CX1 pro/pro-c/warp/warp-c, SX1, AX9 turbo, NX-900, LX5

Firmware version:

2.20 / 1.51.00


This function will close the RF interface. After the RF interface is closed, it cannot be used until opened again.

See rfOpen on how to open the RF interface.

 

When rfClose is called, any threads blocked in rfReceive will resume operation with error code -1.

 

 

Input:

None.

 

Returns: INT

0


- Success.

- 1


- RF not open. Use rfOpen to open interface.

- 4


- RF not supported on device.

 

Declaration:

FUNCTION rfClose : INT;

 

Example:

INCLUDE rtcu.inc
 
PROGRAM example;
BEGIN
rfOpen(id := 1);
 ...
rfClose();
END;
END_PROGRAM;