| 1 | /****************************************************************************** |
|---|
| 2 | * (c)2010-2011 Broadcom Corporation |
|---|
| 3 | * |
|---|
| 4 | * This program is the proprietary software of Broadcom Corporation and/or its licensors, |
|---|
| 5 | * and may only be used, duplicated, modified or distributed pursuant to the terms and |
|---|
| 6 | * conditions of a separate, written license agreement executed between you and Broadcom |
|---|
| 7 | * (an "Authorized License"). Except as set forth in an Authorized License, Broadcom grants |
|---|
| 8 | * no license (express or implied), right to use, or waiver of any kind with respect to the |
|---|
| 9 | * Software, and Broadcom expressly reserves all rights in and to the Software and all |
|---|
| 10 | * intellectual property rights therein. IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU |
|---|
| 11 | * HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY |
|---|
| 12 | * NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE. |
|---|
| 13 | * |
|---|
| 14 | * Except as expressly set forth in the Authorized License, |
|---|
| 15 | * |
|---|
| 16 | * 1. This program, including its structure, sequence and organization, constitutes the valuable trade |
|---|
| 17 | * secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof, |
|---|
| 18 | * and to use this information only in connection with your use of Broadcom integrated circuit products. |
|---|
| 19 | * |
|---|
| 20 | * 2. TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" |
|---|
| 21 | * AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR |
|---|
| 22 | * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO |
|---|
| 23 | * THE SOFTWARE. BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES |
|---|
| 24 | * OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, |
|---|
| 25 | * LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION |
|---|
| 26 | * OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF |
|---|
| 27 | * USE OR PERFORMANCE OF THE SOFTWARE. |
|---|
| 28 | * |
|---|
| 29 | * 3. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS |
|---|
| 30 | * LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR |
|---|
| 31 | * EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR |
|---|
| 32 | * USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF |
|---|
| 33 | * THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT |
|---|
| 34 | * ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE |
|---|
| 35 | * LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF |
|---|
| 36 | * ANY LIMITED REMEDY. |
|---|
| 37 | * |
|---|
| 38 | *****************************************************************************/ |
|---|
| 39 | /*************************************************************************** |
|---|
| 40 | * (c)2005-2011 Broadcom Corporation |
|---|
| 41 | * |
|---|
| 42 | * |
|---|
| 43 | * $brcm_Workfile: bthd_acq_dvbt.h $ |
|---|
| 44 | * $brcm_Revision: 7 $ |
|---|
| 45 | * $brcm_Date: 10/13/11 7:32p $ |
|---|
| 46 | * |
|---|
| 47 | * [File Description:] |
|---|
| 48 | * |
|---|
| 49 | * Revision History: |
|---|
| 50 | * |
|---|
| 51 | * $brcm_Log: /AP/ctfe/core/thd/bthd_acq_dvbt.h $ |
|---|
| 52 | * |
|---|
| 53 | * 7 10/13/11 7:32p farshidf |
|---|
| 54 | * SW3461-64: merge to main |
|---|
| 55 | * |
|---|
| 56 | * Fw_Integration_Devel/2 10/13/11 6:58p farshidf |
|---|
| 57 | * SW3461-64: merge to integ |
|---|
| 58 | * |
|---|
| 59 | * Fw_Integration_Devel/AP_V3_0_THD_DEV/1 9/26/11 2:40p mbsingh |
|---|
| 60 | * SW3461-1: Merge from 2.0 dev branch (This is mainly a shift to WPO |
|---|
| 61 | * algorithm) |
|---|
| 62 | * |
|---|
| 63 | * Fw_Integration_Devel/AP_V2_0_THD_DEV/3 9/14/11 4:58p mbsingh |
|---|
| 64 | * - Fix function naming |
|---|
| 65 | * |
|---|
| 66 | * Fw_Integration_Devel/AP_V2_0_THD_DEV/2 9/8/11 10:49p mbsingh |
|---|
| 67 | * SW3461-1: Separated SetFW function cleanly now to make DVBT work for |
|---|
| 68 | * ISDBT containing chips also. In initial merged code from THD_FTT_WPO |
|---|
| 69 | * branch DVBT would work only in non ISDBT chips due to wrong SetFW |
|---|
| 70 | * function selection |
|---|
| 71 | * |
|---|
| 72 | * 6 8/24/11 5:55p farshidf |
|---|
| 73 | * SW7552-60: merge to main |
|---|
| 74 | * |
|---|
| 75 | * Fw_Integration_Devel/1 8/24/11 5:48p farshidf |
|---|
| 76 | * SW7552-60: add the isdb-t constellation |
|---|
| 77 | * |
|---|
| 78 | * Fw_Integration_Devel/AP_V2_0_THD_DEV/1 8/24/11 5:41p farshidf |
|---|
| 79 | * SW7552-60: add the softdecision for isdbt |
|---|
| 80 | * |
|---|
| 81 | * 5 6/8/11 6:24p farshidf |
|---|
| 82 | * SW3461-1: merge main |
|---|
| 83 | * |
|---|
| 84 | * Hydra_Software_Devel/2 5/5/11 12:31p farshidf |
|---|
| 85 | * SWDTV-6857: latest DVB-T code from 3461 label FW_3461_A0_05032011_1344 |
|---|
| 86 | * |
|---|
| 87 | * 4 5/3/11 1:37p mpovich |
|---|
| 88 | * SW3461-1: Merge to main of intermediate label, FW_3461_A0_05022011_1100 |
|---|
| 89 | * (05/02/2011 Pace build). |
|---|
| 90 | * |
|---|
| 91 | * DVB_3461_1/2 4/21/11 6:05p farshidf |
|---|
| 92 | * SW3461-1: merge main |
|---|
| 93 | * |
|---|
| 94 | * 3 4/20/11 4:56p farshidf |
|---|
| 95 | * SW3461-1: make it host compatible |
|---|
| 96 | * |
|---|
| 97 | * 2 4/8/11 3:11p farshidf |
|---|
| 98 | * SW3461-1: main merge |
|---|
| 99 | * |
|---|
| 100 | * DVB_3461_1/1 4/7/11 10:59p jputnam |
|---|
| 101 | * SW3461-1: Removed obsolete lock functions. Reverted state machine so |
|---|
| 102 | * that SP, TPS, and FEC states are revisited upon FFTWindowMode change. |
|---|
| 103 | * Force RS_SYNC_LOSS interrupt if P_Acquire returns without locking to |
|---|
| 104 | * force proper update of lock state. |
|---|
| 105 | * |
|---|
| 106 | * 1 1/6/11 10:03a jputnam |
|---|
| 107 | * SW3461-1: Separated DVB-T specific functions into dedicated file |
|---|
| 108 | * |
|---|
| 109 | * |
|---|
| 110 | ***************************************************************************/ |
|---|
| 111 | #ifndef _BTHD_ACQ_DVBT_H__ |
|---|
| 112 | #define _BTHD_ACQ_DVBT_H__ |
|---|
| 113 | |
|---|
| 114 | #if __cplusplus |
|---|
| 115 | extern "C" { |
|---|
| 116 | #endif |
|---|
| 117 | |
|---|
| 118 | /*************************************************************************** |
|---|
| 119 | * Function prototypes |
|---|
| 120 | ***************************************************************************/ |
|---|
| 121 | void BTHD_P_DvbtSetMode(BTHD_3x7x_Handle,THD_TransmissionMode_t,THD_GuardInterval_t,THD_Qam_t,THD_CodeRate_t,THD_CodeRate_t,THD_DvbtHierarchy_t); |
|---|
| 122 | BTHD_RESULT BTHD_P_DvbtSetTPS(BTHD_3x7x_Handle,THD_TransmissionMode_t,THD_GuardInterval_t); |
|---|
| 123 | void BTHD_P_DvbtSetOI(BTHD_3x7x_Handle); |
|---|
| 124 | void BTHD_P_DvbtSetEq(BTHD_3x7x_Handle,THD_CoChannelMode_t); |
|---|
| 125 | void BTHD_P_DvbtSetViterbi(BTHD_3x7x_Handle,THD_CodeRate_t,THD_CodeRate_t); |
|---|
| 126 | BTHD_RESULT BTHD_P_DvbtSetFEC(BTHD_3x7x_Handle); |
|---|
| 127 | BTHD_RESULT BTHD_P_DvbtGetNotch(BTHD_3x7x_Handle,THD_TransmissionMode_t); |
|---|
| 128 | BTHD_RESULT BTHD_P_DvbtSetICE(BTHD_3x7x_Handle,THD_TransmissionMode_t,THD_GuardInterval_t); |
|---|
| 129 | void BTHD_P_DvbtSetFrame(BTHD_3x7x_Handle); |
|---|
| 130 | void BTHD_P_DvbtStatus(BTHD_3x7x_Handle) ; |
|---|
| 131 | void BTHD_P_DvbtResetStatus(BTHD_3x7x_Handle); |
|---|
| 132 | BTHD_RESULT BTHD_P_DvbtAcquire(BTHD_3x7x_Handle); |
|---|
| 133 | BERR_Code BTHD_P_GetDvbtSoftDecisionBuf(BTHD_3x7x_Handle, int16_t, int16_t *, int16_t *, int16_t *); |
|---|
| 134 | void BTHD_P_DvbtSetFWFtt( BTHD_3x7x_Handle,THD_FFTWindowMode_t,THD_TransmissionMode_t,THD_GuardInterval_t); |
|---|
| 135 | |
|---|
| 136 | #ifdef __cplusplus |
|---|
| 137 | } |
|---|
| 138 | #endif |
|---|
| 139 | |
|---|
| 140 | #endif /* BTHD_ACQ_DVBT_H__ */ |
|---|
| 141 | |
|---|