📄 am_timer_non_sc.h
字号:
/* (c) Copyright Motorola 1996, All rights reserved. Motorola Confidential Proprietary Contains confidential proprietary information of Motorola, Inc. Reverse engineering is prohibited. The copyright notice does not imply publication. DESCRIPTION: This function contains the AM Application Layer main driver routines. These functions build up information for the hardware layer, and then all at once, pass it to the hardware layer. *************** REVISION HISTORY ********************************************* Date Author Reference ======== ======== ========================== 2005-07-25 w16355 LIBgg35198 AM needs to minimize changes between audio events. - HW determined that for battery life reasons we need to cut the power of delay down to 10 seconds. 2005-07-13 e50266 LIBgg33917 Changed the KEY_PRESS_DELAY to 10 seconds from 1 min 2004-10-19 w16355 LIBff17193 Extra click sound when scrolling through sounds. - Extending the delay before powering off the audio IC to 60 seconds to minimize the chance that a user will hear clicks due to the audio IC powering up. 2004-11-05 w17860 LIBff24932 P4.4 Feature # 12583 Memory Reduction - Remove Voice Dial and Voice Tag 2004-07-06 w17860 LIBee21819 Pops and Click heard on Razor headset 04-03-26 w18944 LIBdd91496 Ramp up changes 04-01-29 w18944 LIBdd69286 Alert ramp up 01-01-29 mtaraba CSGce79517 Fix VA record in a call 00-11-10 lorih CR - CSGce74373 Need to reverse setting up audio from ending audio. - added class keypress_timer 99-11-10 bchoi CR - CSGce39480 Modify Audio Manager timer functionality to use SUAPI compliant timers.******************************************************************************/#ifndef __AM_TIMER_NON_SC_H#define __AM_TIMER_NON_SC_H#include "AM_Timers.h"#include <ENGINE_AUDIO/audio_conditional_compile_def.h>#define VA_BEEP_DELAY 98 * MS_2_TICKS //About 10 seconds#define VA_BEEP_INITIAL_DELAY 2 * MS_2_TICKS // .2 seconds - let DSP settle before beeping#define ALERT_RAMP_DELAY 10 * MS_2_TICKS //1 second#define KEY_PRESS_DELAY (100 * MS_2_TICKS) // About 10 seconds//static const CXX_TIMER_PROG aux_alert_timer = ////{ TIMER_PRIM_IDS_AUD_AUX_ALERT,// 4, // repeat 4 times (5 total).// { 5, 5, 0, 0, 0, 0 } // wait 1/2s activate, wait 1/2s deactivate.//};class Aux_Alert_Timer : public AM_Timer_Base{public: Aux_Alert_Timer(){InitialDelay = 5 * MS_2_TICKS;}; virtual void RunSequence(); };//static const CXX_TIMER_PROG ent_mute_timer = // //{ TIMER_PRIM_IDS_AUD_ENT_MUTE,// 0, // do this only once// { 40, 0, 0, 0, 0, 0 } // after 4 sec., end program.//};class Ent_Mute_Timer : public AM_Timer_Base{public: Ent_Mute_Timer(){ InitialDelay = 40 * MS_2_TICKS;}; virtual void RunSequence();};class Keypress_Timer : public AM_Timer_Base{public: Keypress_Timer(){ InitialDelay = KEY_PRESS_DELAY;}; virtual void RunSequence();};#if (MAKE_FTR_VA == TRUE)class VA_Beep_Timer : public AM_Timer_Base{public: VA_Beep_Timer(){ InitialDelay = VA_BEEP_DELAY;}; virtual void RunSequence();};#endifclass Alert_Ramp_Timer : public AM_Timer_Base{public: Alert_Ramp_Timer(){ InitialDelay = ALERT_RAMP_DELAY;}; virtual void RunSequence();};extern Aux_Alert_Timer aux_alert_timer;extern Ent_Mute_Timer ent_mute_timer;extern Keypress_Timer keypress_timer;#if (MAKE_FTR_VA == TRUE)extern VA_Beep_Timer va_beep_timer;#endifextern Alert_Ramp_Timer alert_ramp_timer;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -