blob: 0bfd4c7ee9d04448fa363f1f4ec56636f4d0da34 [file] [log] [blame]
/******************************************************************************
* Modification Notice:
* --------------------------
* This software is modified by MediaTek Inc. and the information contained
* herein is confidential. The software may not be copied and the information
* contained herein may not be used or disclosed except with the written
* permission of MediaTek Inc. (C) 2018
*
* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
*
* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*******************************************************************************/
/* Doxygene header *********************************************************//**
*
* @file mml1_afc.h
* @brief MML1 AFC header file.
* @details Multi-Mode LTE /NR RAT AFC interface
*//***************************************************************************/
#ifndef __MML1_AFC_H__
#define __MML1_AFC_H__
/*******************************************************************************
* #include
*******************************************************************************/
#include "mml1_rf_interface.h"
#include "mml1_rf_afc.h"
////////// End #include //////////
/*******************************************************************************
* Defines
*******************************************************************************/
/**
* @brief LTE carrier freq unit is 100kHz, extend LTE freq to kHz to align synthesizer carrier frequency (kHz). (if do reversely, rounding error may exist)
* @date 2018.09.20
*/
#define MML1_AFC_ALIGN_LTE_FREQ_TO_KHZ (100)
// LTE carrier freq init value
#define MML1_AFC_INIT_TARGET_FREQ (20000) // 20000MHz where 100KHz is for a single unit
kal_int32 MML1_Afc_Calc_Syn_Hz_By_DAC( kal_uint16 dac, kal_uint32 carrier_freq_in_khz ); // For Meta mode API
/*****************************************************************************//**
* @brief Provide fix synthesizer value (hz) for LTE / NR RAT under ENDC coband scenario.
* @param[in] sim_index: 0/1 for sim1/sim2
* @param[in] target_syn_freq: 100kHz format, for synth setting frequency.
* @param[out] NA
* @return frequency error (Hz) for fix synth config under endc coband.
* @date 2016.11.28 (latest modified date)
*******************************************************************************/
kal_int32 MML1_Afc_Endc_Coband_Syn_Fe_Cal( const kal_uint8 sim_index, kal_uint32 target_syn_freq); // For ENDC coband fe prepare
#endif /* #define __MML1_AFC_H__ */
/* Doxygene end of defgroup header!!! **********************************//**@}*/