CAMERA_SetLED*

Syntax

#include <twl/camera.h>

CAMERAResult CAMERA_SetLED(BOOL isBlink);
CAMERAResult CAMERA_SetLEDAsync(BOOL isBlink, CAMERACallback callback, void *arg);

Arguments

isBlink Specify TRUE for blinking and FALSE otherwise.
callback Function that is called when asynchronous processing has completed.
arg Arguments when the callback function is invoked.

Return Values

Returns CAMERA_RESULT_SUCCESS if configuration was successful.

Description

Changes the outer camera LED to blink or stay lit.


The outer camera LED lights up when the outer camera is activated. You can call this function in this state to switch the LED between blinking and constantly lit state.
Note that this will consequently fail if the outer camera is not active.


Blinking starts from the unlit state and will only transition to the constantly lit state while lit. As a result, even if it is set to blink and then immediately changed to be constantly lit, it will always blink once.

See Also

CAMERA_I2CActivate*

Revision History

2008/05/23 Initial version.


CONFIDENTIAL