?? leds.h
字號:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
This file was autogenerated by ledparse and
provides simple LED indications
*/
#ifndef MULTI_LEDS_H
#define MULTI_LEDS_H
#include <stdlib.h>
#include <stdio.h>
/*INSERTED_CODE_HERE*/
typedef enum LedPatternTag
{
LEDS_OFF ,
RED_BLUE_ALT_RPT_FAST ,
BLUE_ON ,
RED_ON ,
BLUE_TWO_FLASHES ,
BLUE_ONE_SEC_ON_RPT ,
RED_TWO_FLASHES ,
RED_TWO_FLASHES_FAST ,
RED_ONE_SEC_ON_RPT ,
RED_BLUE_ONE_SEC_ON_RPT,
RED_CONT_BLUE_ONE_SEC_ON_RPT,
BLUE_FOUR_FLASHES_FAST,
BLUE_SHORT_ON_RPT,
RED_BLUE_SHORT_ON_RPT,
RED_CONT_BLUE_SHORT_ON_RPT
} LedPattern_t ;
/*END_OF_INSERTED_CODE*/
/****************************************************************************
NAME
ledsPlay
DESCRIPTION
Play an LED pattern.
If a repeating pattern is already playing
- then this will be interuppted and the new pattern (non repeating or repeating)
will be played. If the new pattern is non-repeating then the interrupted
pattern will be resumed after completion of the non-repeating pattern
If a non-repeating pattern is currently playing
- if the new pattern is also a non-repeating pattern, then returns false
(caller is responsible for queuing LEDS)
- if the new pattern is a repeating pattern, then this will be played on completion
of the non-repeating current pattern
RETURNS
bool (whether the LED Pattern has been started or not)
*/
bool ledsPlay ( LedPattern_t pNewPattern ) ;
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -