blob: 0bfd4c7ee9d04448fa363f1f4ec56636f4d0da34 [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/******************************************************************************
2* Modification Notice:
3* --------------------------
4* This software is modified by MediaTek Inc. and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2018
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*******************************************************************************/
35
36/* Doxygene header *********************************************************//**
37 *
38 * @file mml1_afc.h
39 * @brief MML1 AFC header file.
40 * @details Multi-Mode LTE /NR RAT AFC interface
41 *//***************************************************************************/
42
43#ifndef __MML1_AFC_H__
44#define __MML1_AFC_H__
45
46/*******************************************************************************
47* #include
48*******************************************************************************/
49#include "mml1_rf_interface.h"
50#include "mml1_rf_afc.h"
51
52////////// End #include //////////
53
54/*******************************************************************************
55* Defines
56*******************************************************************************/
57
58/**
59* @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)
60* @date 2018.09.20
61*/
62#define MML1_AFC_ALIGN_LTE_FREQ_TO_KHZ (100)
63// LTE carrier freq init value
64#define MML1_AFC_INIT_TARGET_FREQ (20000) // 20000MHz where 100KHz is for a single unit
65
66
67kal_int32 MML1_Afc_Calc_Syn_Hz_By_DAC( kal_uint16 dac, kal_uint32 carrier_freq_in_khz ); // For Meta mode API
68
69
70/*****************************************************************************//**
71 * @brief Provide fix synthesizer value (hz) for LTE / NR RAT under ENDC coband scenario.
72 * @param[in] sim_index: 0/1 for sim1/sim2
73 * @param[in] target_syn_freq: 100kHz format, for synth setting frequency.
74 * @param[out] NA
75 * @return frequency error (Hz) for fix synth config under endc coband.
76 * @date 2016.11.28 (latest modified date)
77 *******************************************************************************/
78kal_int32 MML1_Afc_Endc_Coband_Syn_Fe_Cal( const kal_uint8 sim_index, kal_uint32 target_syn_freq); // For ENDC coband fe prepare
79
80
81#endif /* #define __MML1_AFC_H__ */
82
83/* Doxygene end of defgroup header!!! **********************************//**@}*/
84