📄 am_timer_non_sc.cc
字号:
/* (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 ======== ======== ========================== 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-01-29 w18944 LIBdd69286 Alert ramp up 01-01-29 mtaraba CSGce79517 Fix VA record in a call 00-12-21 mtaraba CSGce82934 main_comp_hardware.h within engine_audio vob should be removed 00-11-10 lorih CR - CSGce74373 Need to reverse setting up audio path from ending audio path. - added Run_Sequence for a key press timer. 00-04-27 mkloza PR - CSGce54341 MATRIX command implementation - removed calls to turn_on_hw_line() - will have to use HAPI complient function 99-11-10 bchoi CR - CSGce39480 Modify Audio Manager timer functionality to use SUAPI compliant timers.******************************************************************************/#include <ENGINE_AUDIO/audio_conditional_compile_def.h>#include <audio/AM_Timer_Non_SC.H>#include <audio/AM_HW_Primitive_Builder.H>#include <audio/AM_App_Logic_Processor.H>#include <audio/AM_Event_Handler.H>#include <audio/AM_Tone_Sequence_Handler.H>#include <ENGINE_AUDIO/io_codec.h>extern AM_Event_Handler * am_event_handler;Aux_Alert_Timer aux_alert_timer;Ent_Mute_Timer ent_mute_timer;Keypress_Timer keypress_timer;#if (MAKE_FTR_VA == TRUE)VA_Beep_Timer va_beep_timer;#endifAlert_Ramp_Timer alert_ramp_timer;void Aux_Alert_Timer::RunSequence(){ switch(SeqIndex++) { case 0: // first run case 2: // second run case 4: // third run case 6: // forth run case 8: // fifth run // AM_HW_Primitive_Builder::turn_on_hw_line(FALSE, TRUE); ResetTimer(5 * MS_2_TICKS ); // 1/2 s activeate break; case 1: case 3: case 5: case 7: //AM_HW_Primitive_Builder::turn_on_hw_line(TRUE, TRUE); ResetTimer ( 5 * MS_2_TICKS); // wait 2 seconds then turn on break; case 9: //AM_HW_Primitive_Builder::turn_on_hw_line(FALSE, TRUE); break; } }void Ent_Mute_Timer::RunSequence(){ //AM_HW_Primitive_Builder :: turn_on_hw_line (FALSE, FALSE);}void Keypress_Timer::RunSequence(){#if (MAKE_HDW_EMU_BUS == TRUE) AM_HW_Primitive_Builder::aud_keypress_timer_expiry();#endif}#if (MAKE_FTR_VA == TRUE)void VA_Beep_Timer::RunSequence(){ am_event_handler->am_event_logic_processor.generate_va_beep();}#endifvoid Alert_Ramp_Timer::RunSequence(){ AM_App_Logic_Processor::alert_ramp_up_timer_expire();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -