openpcd/openpicc/application/led.h @ master
1 |
/***************************************************************
|
---|---|
2 |
*
|
3 |
* OpenBeacon.org - LED support
|
4 |
*
|
5 |
* Copyright 2007 Milosch Meriac <meriac@openbeacon.de>
|
6 |
*
|
7 |
***************************************************************
|
8 |
|
9 |
This program is free software; you can redistribute it and/or modify
|
10 |
it under the terms of the GNU General Public License as published by
|
11 |
the Free Software Foundation; version 2.
|
12 |
|
13 |
This program is distributed in the hope that it will be useful,
|
14 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
15 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
16 |
GNU General Public License for more details.
|
17 |
|
18 |
You should have received a copy of the GNU General Public License along
|
19 |
with this program; if not, write to the Free Software Foundation, Inc.,
|
20 |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
21 |
*/
|
22 |
|
23 |
#ifndef __LED_H__
|
24 |
#define __LED_H__
|
25 |
|
26 |
#include "openpicc.h"
|
27 |
|
28 |
extern void vLedSetBrightness(unsigned int led, int brightness); |
29 |
extern void vLedSet(int led, bool_t on); |
30 |
extern void vLedBlink(int led); |
31 |
extern void vLedSetRed(bool_t on); |
32 |
extern void vLedBlinkRed(void); |
33 |
extern void vLedSetGreen(bool_t on); |
34 |
extern void vLedBlinkGreen(void); |
35 |
extern void vLedHaltBlinking(int reason); |
36 |
extern void vLedInit(void); |
37 |
|
38 |
#endif/*__PROTO_H__*/ |