camPresent (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

MX2/DX4 pro/AX9 pro/MX2 turbo/encore/warp, AX9 turbo, NX-200, NX-400

Firmware version:

1.07 / 1.00.00


The function returns information about whether the camera module is present or not.

 

 

Input:        

None.

 

Returns: BOOL

TRUE:

If the camera module is present.

FALSE:

If the camera module is not present.

 

Declaration:

FUNCTION camPresent : BOOL;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
  // Open the camera library
  camOpen();
 
BEGIN
   ...
  // Test for camera module
  IF camPresent() THEN
       ...
  END_IF;
   ...
END;
 
END_PROGRAM;