1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<HTML> 3<HEAD> 4<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows"> 6<META http-equiv="Content-Style-Type" content="text/css"> 7<TITLE>CAMERA_SetLED*</TITLE> 8<LINK rel="stylesheet" href="../css/nitro.css" type="text/css"> 9</HEAD> 10<BODY> 11<H1 align="left">CAMERA_SetLED* <IMG src="../image/TWL.gif" align="middle"></H1> 12<H2>Syntax</H2> 13<DL> 14 <DD> 15 <CODE>#include <twl/camera.h></CODE><BR> 16 <BR> 17 <CODE><A href="CAMERAResult.html">CAMERAResult</A> CAMERA_SetLED(BOOL isBlink);</CODE> 18 <BR> 19 <CODE><A href="CAMERAResult.html">CAMERAResult</A> CAMERA_SetLEDAsync(BOOL isBlink, <A href="CAMERACallback.html">CAMERACallback</A> callback, void *arg);</CODE> 20</DL> 21<H2>Arguments</H2> 22<TABLE border="1" width="100%"> 23 <TBODY> 24 <TR> 25 <TD width="13%"><EM><STRONG>isBlink</STRONG></EM></TD> 26 <TD width="87%">Specify <CODE>TRUE</CODE> for blinking and <CODE>FALSE</CODE> otherwise.</TD> 27 </TR> 28 <TR> 29 <TD width="13%"><EM><STRONG>callback</STRONG></EM></TD> 30 <TD width="87%">Function that is called when asynchronous processing has completed.</TD> 31 </TR> 32 <TR> 33 <TD width="13%"><EM><STRONG>arg</STRONG></EM></TD> 34 <TD width="87%">Arguments when the callback function is invoked.</TD> 35 </TR> 36 </TBODY> 37</TABLE> 38 39<H2>Return Values</H2> 40<P> 41Returns <CODE>CAMERA_RESULT_SUCCESS</CODE> if configuration was successful. 42</P> 43 44<H2>Description</H2> 45<P> 46Changes the outer camera LED to blink or stay lit.<BR><BR><BR> 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.<BR> Note that this will consequently fail if the outer camera is not active.<BR><BR> <BR>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. 47</P> 48 49<H2>See Also</H2> 50<P><CODE><A href="CAMERA_I2CActivate.html">CAMERA_I2CActivate*</A></CODE></P> 51<H2>Revision History</H2> 52<P>2008/05/23 Initial version.</P> 53<hr><p>CONFIDENTIAL</p></body> 54</HTML> 55