📄 am_hw_primitive_builder_spkr.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 file contains code for sending primitives to the speech coder that relate to the speaker.****************************** REVISION HISTORY ******************************Date Author Reference Number======== ======== ================03-11-20 a18984 LIBdd49666 Reset of duration of vibrate(int duration) turns off the vibrator00-12-21 mtaraba CSGce82934 main_comp_hardware.h within engine_audio vob should be removed00-08-09 mtaraba CR - CSGce55882 Eliminate file gsm.h from audio manager00-08-04 ktang PR - CSGce67917 Update audio Manager to support Synergy Lite tone defs - Changed start_vibrator function for vib ringer support00-04-27 mkloza PR - CSGce54341 MATRIX command implementation - removed update_spkr()00-03-27 mkloza PR - CSGce52150 Blue Tooth modifications for P2K platform - added speaker phone selection00-02-08 cfarrel PR - CSGce48312 - Removed the #include statements related to BIC00-02-02 holmesc PR - CSGce46205 Audio Manager Updates for HAPI - change spkr/vibrator selection using hPortWrite()*//************** INCLUDES ******************************************************/#include <SUAPI/suapi.h>#include <stddef.h>#include <ENGINE_HAPI/hapi_ext.h>#include <ENGINE_AUDIO/td_ckm_phone_adaptor_type.h>#include <audio/AM_Timer_Vibrate.H>#include <audio/AM_Timer_Container.H>#include <ENGINE_AUDIO/rat_command_req.h>#include <ENGINE_AUDIO/am_util_bits.h>#include <audio/am_hw_primitive_builder_main.h>#include <audio/AM_HW_Primitive_Builder.H>#include <ENGINE_AUDIO/am_hw_string_primitive.h>#include <ENGINE_AUDIO/io_codec.h>/************** LOCAL CONSTANTS ***********************************************//************** LOCAL STRUCTURES, ENUMS, AND TYPEDEFS *************************//************** LOCAL FUNCTION PROTOTYPES *************************************//************** LOCAL MACROS **************************************************//************** LOCAL VARIABLES ***********************************************//************** FUNCTION DEFINITIONS ******************************************//* * function to turn of vibrator */voidAM_HW_Primitive_Builder :: stop_vibrator (){ if (vibrate_timer.IsActive()) { TD_AUD_TONE_UNION_T vib = {DL_AUDIO_TONE_TYPE_ALERT_VIBE_PULSE + 1}; vibrate_timer.SetDelays(vib, 1, 0); am_timer_handler.Stop(&vibrate_timer); vibrate_timer.RunSequence(); }}/* * function to turn on vibrator */voidAM_HW_Primitive_Builder :: start_vibrator (TD_AUD_TONE_UNION_T vib, UINT8 cycles, UINT8 dsp_seq){ vibrate_timer.SetDelays(vib, cycles, dsp_seq); am_timer_handler.Start(&vibrate_timer);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -