leds.h

来自「蓝牙立体声耳机 firmware」· C头文件 代码 · 共 65 行

H
65
字号
/****************************************************************************
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 + =
减小字号Ctrl + -
显示快捷键?