⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 leds.h

📁 蓝牙立体声耳机 firmware
💻 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 + -