com.buglabs.bug.module.camera.pub
Interface ICameraModuleControl

All Known Implementing Classes:
CameraModuleControl

public interface ICameraModuleControl

Provides hardware control of the Camera Module


Method Summary
 int getSelectedCamera()
          Returns the slot number of the selected camera.
 int setFlashBeamIntensity(int intensity)
          Sets the beam intensity
 int setLEDFlash(boolean state)
          Turns Flash LED off
 int setSelectedCamera(int slot)
          Selects a camera based on slot number.
 

Method Detail

setFlashBeamIntensity

int setFlashBeamIntensity(int intensity)
                          throws java.io.IOException
Sets the beam intensity

Parameters:
intensity - The intensity of the beam. 0 = low, 1 = high
Returns:
negative value if request was not successful.
Throws:
java.io.IOException

setLEDFlash

int setLEDFlash(boolean state)
                throws java.io.IOException
Turns Flash LED off

Returns:
negative value if request was not successful.
Throws:
java.io.IOException

setSelectedCamera

int setSelectedCamera(int slot)
                      throws java.io.IOException
Selects a camera based on slot number.

Parameters:
slot - the slot number of the desired camera.
Returns:
negative value if request was not sucessful.
Throws:
java.io.IOException

getSelectedCamera

int getSelectedCamera()
                      throws java.io.IOException
Returns the slot number of the selected camera.

Returns:
negative value if request was not successful.
Throws:
java.io.IOException