headset_pio.h

来自「bc5_stereo:bluetooth stereo Headset CODE」· C头文件 代码 · 共 80 行

H
80
字号
/****************************************************************************
Copyright (C) Cambridge Silicon Radio Ltd. 2004-2007

FILE NAME
    headset_pio.h
    
DESCRIPTION
    Part of the ledmanager Module responsible for managing the PIO outputs excluding LEDs
    
*/

#ifndef HEADSET_PIO_H
#define HEADSET_PIO_H

#define DIM_MSG_BASE (0x1000)

#include "headset_ledmanager.h"


/****************************************************************************
  FUNCTIONS
*/

/****************************************************************************
NAME	
	PioSetPowerPin

DESCRIPTION
    Controls the internal regulators to latch / remove the power on state.
    
*/
void PioSetPowerPin ( hsTaskData * pApp , PowerPin_t pEnable ) ;


/****************************************************************************
NAME	
	PioSetLedPin

DESCRIPTION
    Fn to change set an LED attached to a PIO, a special LED pin , or a tricolour LED.
    
*/
void PioSetLedPin ( LedTaskData * pLedTask , uint16 pPIO , bool pOnOrOff ) ;


/****************************************************************************
NAME	
	PioSetPio

DESCRIPTION
    Fn to change a PIO.
    
*/
void PioSetPio ( uint16 pPIO , bool pOnOrOff  ) ;


/****************************************************************************
NAME	
	PioSetInternalLDO

DESCRIPTION
    Fn to set the internal LDO pin.  
    
*/
void PioSetInternalLDO ( bool pEnable) ;


/****************************************************************************
NAME	
	PioSetDimState  
	
DESCRIPTION
    Update funtion for a led that is currently dimming.
    
*/
void PioSetDimState ( LedTaskData * pLedTask , uint16 pPIO );


#endif

⌨️ 快捷键说明

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