| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2005-2011, Broadcom Corporation |
|---|
| 3 | * All Rights Reserved |
|---|
| 4 | * Confidential Property of Broadcom Corporation |
|---|
| 5 | * |
|---|
| 6 | * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | * |
|---|
| 10 | * $brcm_Workfile: bthd_3x7x.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/1 $ |
|---|
| 12 | * $brcm_Date: 10/10/11 2:13p $ |
|---|
| 13 | * |
|---|
| 14 | * [File Description:] |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/portinginterface/thd/7552/bthd_3x7x.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/1 10/10/11 2:13p farshidf |
|---|
| 21 | * SW7552-134: update to 2.0 of 3461 code |
|---|
| 22 | * |
|---|
| 23 | * Hydra_Software_Devel/4 10/10/11 1:52p farshidf |
|---|
| 24 | * SW7552-134: update to match V2_0 of 3461 |
|---|
| 25 | * |
|---|
| 26 | * Hydra_Software_Devel/3 8/17/11 2:24p farshidf |
|---|
| 27 | * SW7552-105: update the frontend with 3461_V1_0_REL label |
|---|
| 28 | * |
|---|
| 29 | * Hydra_Software_Devel/2 4/26/11 2:30p farshidf |
|---|
| 30 | * SWDTV-6190: fix the header file |
|---|
| 31 | * |
|---|
| 32 | ***************************************************************************/ |
|---|
| 33 | |
|---|
| 34 | #ifndef _BTHD_3x7x_H__ |
|---|
| 35 | #define _BTHD_3x7x_H__ |
|---|
| 36 | |
|---|
| 37 | #include "bthd.h" |
|---|
| 38 | |
|---|
| 39 | #ifdef __cplusplus |
|---|
| 40 | extern "C" { |
|---|
| 41 | #endif |
|---|
| 42 | |
|---|
| 43 | /*************************************************************************** |
|---|
| 44 | Callback structure to TNR from THD |
|---|
| 45 | ***************************************************************************/ |
|---|
| 46 | |
|---|
| 47 | typedef enum BTHD_CallbackMode{ |
|---|
| 48 | BTHD_CallbackMode_eSetMode = 0, |
|---|
| 49 | BTHD_CallbackMode_eRequestMode = 1, |
|---|
| 50 | BTHD_CallbackMode_eEnablePower = 2, |
|---|
| 51 | BTHD_CallbackMode_eDisablePower = 3, |
|---|
| 52 | BTHD_CallbackMode_eSmartTune = 4, |
|---|
| 53 | BTHD_CallbackMode_eLast |
|---|
| 54 | }BTHD_CallbackMode; |
|---|
| 55 | |
|---|
| 56 | typedef struct BTHD_P_ThdCallbackData_s{ |
|---|
| 57 | void* hTunerChn; |
|---|
| 58 | uint16_t Mode; /*Callback is to send data on eSetMode, Callback is to get data on eRequestMode*/ |
|---|
| 59 | uint32_t Symbol_Rate; /*Upper Symbol_Rate currently being scanned on eSetMode: return last value sent on eRequestMode*/ |
|---|
| 60 | int32_t Freq_Offset; /*Front end offset to use on eSetMode: return last value sent on eRequestMode*/ |
|---|
| 61 | uint32_t RF_Freq; /*RF frequency of the tuner on eRequestMode: set to 0 if unknown*/ |
|---|
| 62 | int32_t Total_Mix_After_ADC; /*Sum of mixer frequencies after ADC on eRequestMode*/ |
|---|
| 63 | int16_t PreADC_Gain_x256db ; /*Gain in db*256 before ADC on eRequestMode: set to 0x8000 if unknown*/ |
|---|
| 64 | int16_t PostADC_Gain_x256db; /*Gain in db*256 after ADC on eRequestMode: set to 0x8000 if unknown*/ |
|---|
| 65 | int16_t External_Gain_x256db; /*Gain in db*256 external to chip (like external LNA) on eRequestMode: set to 0x8000 if unknown*/ |
|---|
| 66 | uint16_t SmartTune; /*SmartTune mode*/ |
|---|
| 67 | }BTHD_P_ThdCallbackData_t; |
|---|
| 68 | |
|---|
| 69 | /*************************************************************************** |
|---|
| 70 | * Summary: |
|---|
| 71 | * This function returns the default settings for 7550 THD module. |
|---|
| 72 | * |
|---|
| 73 | * Description: |
|---|
| 74 | * This function is responsible for returns the default setting for |
|---|
| 75 | * 7550 THD module. The returning default setting should be used when |
|---|
| 76 | * opening the device. |
|---|
| 77 | * |
|---|
| 78 | * Returns: |
|---|
| 79 | * TODO: |
|---|
| 80 | * |
|---|
| 81 | * See Also: |
|---|
| 82 | * None. |
|---|
| 83 | * |
|---|
| 84 | ***************************************************************************/ |
|---|
| 85 | BERR_Code BTHD_3x7x_GetDefaultSettings(BTHD_Settings *); |
|---|
| 86 | |
|---|
| 87 | /*************************************************************************** |
|---|
| 88 | * Summary: |
|---|
| 89 | * This function returns the default inbandParams for 7550 THD module. |
|---|
| 90 | * |
|---|
| 91 | * Description: |
|---|
| 92 | * This function is responsible for returns the default setting for |
|---|
| 93 | * 7550 THD module. The returning default setting should be used when |
|---|
| 94 | * opening the device. |
|---|
| 95 | * |
|---|
| 96 | * Returns: |
|---|
| 97 | * TODO: |
|---|
| 98 | * |
|---|
| 99 | * See Also: |
|---|
| 100 | * None. |
|---|
| 101 | * |
|---|
| 102 | ***************************************************************************/ |
|---|
| 103 | BERR_Code BTHD_3x7x_GetDefaultInbandParams(BTHD_InbandParams *); |
|---|
| 104 | |
|---|
| 105 | |
|---|
| 106 | #ifdef __cplusplus |
|---|
| 107 | } |
|---|
| 108 | #endif |
|---|
| 109 | |
|---|
| 110 | #endif /* _BTHD_3x7x_H__ */ |
|---|
| 111 | |
|---|