source: svn/trunk/newcon3bcm2_21bu/dta/src/app/led.h @ 2

Last change on this file since 2 was 2, checked in by phkim, 11 years ago

1.phkim

  1. revision copy newcon3sk r27
  • Property svn:executable set to *
File size: 1.9 KB
Line 
1/***************************************************************************
2 *     Copyright (c) 2003-2008, Broadcom Corporation
3 *     All Rights Reserved
4 *     Confidential Property of Broadcom Corporation
5 *
6 *  THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
7 *  AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
8 *  EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
9 *
10 * $brcm_Workfile: $
11 * $brcm_Revision: $
12 * $brcm_Date: $
13 *
14 * Module Description:
15 *
16 * Revision History:
17 *
18 * $brcm_Log: $
19 *
20 *
21 ***************************************************************************/
22#ifndef LED_H__
23#define LED_H__
24
25enum led_mode_t {
26    led_off_mode,
27    led_hunt_mode,
28    led_pending_init_mode,
29    led_download_mode,
30    led_trouble_mode,
31    led_on_mode,
32    led_authorization_mode,
33    led_max
34};
35
36/***************************************************************************
37Summary:
38    Set led mode to given mode
39Description:
40    Set led mode to given mode, turning led on of off accordint to the first
41    state of led in this mode
42Input:
43    mode - desired led mode
44Output:
45    None
46Returns:
47    time delay in ms until next led_update call.
48SeeAlso:
49    None
50***************************************************************************/
51unsigned led_set_mode(enum led_mode_t mode);
52
53/***************************************************************************
54Summary:
55    Update led to the be on or off.
56Description:
57    Update led to the be on or off according to current state. Application
58    should call led_update no later than interval in ms returned by previous
59    led_update call.
60Input:
61    elapsed_time - time elasped since last call to update in ms
62Output:
63    None
64Returns:
65    time delay in ms to until next led_update call.
66SeeAlso:
67None
68***************************************************************************/
69unsigned led_update(unsigned elapsed_time);
70
71#endif /* LED_H__ */
72
Note: See TracBrowser for help on using the repository browser.