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

📄 headset_leds.h

📁 BlueLab 3.5.2 单声道耳机源码
💻 H
字号:
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2006
Part of BlueLab 3.6.2-release

FILE NAME
    headset_LEDs.c
    
DESCRIPTION
    Module responsible for managing the PIO outputs including LEDs
    
*/

#ifndef HEADSET_LEDS_H
#define HEADSET_LEDS_H


#include "headset_leddata.h"
#include "headset_states.h"


void LedsInit ( LedTaskData * pTask ) ;

/****************************************************************************
NAME 
 LedsIndicateEvent

DESCRIPTION
 displays event notification

RETURNS
 void
    
*/

void LedsIndicateEvent ( LedTaskData * pLEDTask , headsetEvents_t pEvent ) ;

/****************************************************************************
NAME 
 LedsIndicateState

DESCRIPTION
 displays state indication information

RETURNS
 void
    
*/
void LedsIndicateState ( LedTaskData * pLEDTask , headsetState pState ) ;

void LedsIndicateNoState ( LedTaskData * pLEDTask ) ;

/****************************************************************************
NAME 
 LedsCheckForFilter

DESCRIPTION
 checks and sets a filter if one is defined for the given event

RETURNS
 void
    
*/
void LedsCheckForFilter ( LedTaskData * pLEDTask , headsetEvents_t pEvent ) ;


/****************************************************************************
NAME 
 LedsSetLedActivity

DESCRIPTION
    Sets a Led Activity to a known state
RETURNS
 void
*/
void LedsSetLedActivity ( LEDActivity_t * pLed , IndicationType_t pType , uint16 pIndex ) ;
/****************************************************************************
NAME 
 LedsResetAllLeds

DESCRIPTION
    resets all led pins to off and cancels all led and state indications
RETURNS
 void
*/
void LedsResetAllLeds ( LedTaskData * pLEDTask) ;

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -