| 1 | /*************************************************************************** |
|---|
| 2 | * (c)2005-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 | * $brcm_Workfile: bads_utils.h $ |
|---|
| 39 | * $brcm_Revision: 6 $ |
|---|
| 40 | * $brcm_Date: 3/18/11 4:33p $ |
|---|
| 41 | * |
|---|
| 42 | * Module Description: |
|---|
| 43 | * |
|---|
| 44 | * Revision History: |
|---|
| 45 | * |
|---|
| 46 | * $brcm_Log: /AP/bcm3128/a0/src/driver/ads/bads_utils.h $ |
|---|
| 47 | * |
|---|
| 48 | * 6 3/18/11 4:33p farshidf |
|---|
| 49 | * SW3461-1: merge main |
|---|
| 50 | * |
|---|
| 51 | * ADS_3128_1/1 3/15/11 5:14p cbrooks |
|---|
| 52 | * bcm3128-1:Added new HAB for CWC and changed FFEDFE command |
|---|
| 53 | * |
|---|
| 54 | * 5 2/8/11 11:48a farshidf |
|---|
| 55 | * SW3128-1: update the constellation function |
|---|
| 56 | * |
|---|
| 57 | * 4 1/26/11 6:54p cbrooks |
|---|
| 58 | * sw3128-1:Fixed prototypes |
|---|
| 59 | * |
|---|
| 60 | * 3 1/26/11 3:28p cbrooks |
|---|
| 61 | * sw3128-1:Cleanup Code |
|---|
| 62 | * |
|---|
| 63 | * 2 1/25/11 9:30p cbrooks |
|---|
| 64 | * sw3128-1: Cleanup Code |
|---|
| 65 | * |
|---|
| 66 | * 1 12/17/10 4:12p farshidf |
|---|
| 67 | * SW3128-1: new files |
|---|
| 68 | * |
|---|
| 69 | ***************************************************************************/ |
|---|
| 70 | #ifndef BADS_UTILS_H__ |
|---|
| 71 | #define BADS_UTILS_H__ |
|---|
| 72 | |
|---|
| 73 | #ifdef __cplusplus |
|---|
| 74 | extern "C" { |
|---|
| 75 | #endif |
|---|
| 76 | |
|---|
| 77 | /***************************************************************************** |
|---|
| 78 | * ADS Function Prototypes Used by PI or Local |
|---|
| 79 | *****************************************************************************/ |
|---|
| 80 | BERR_Code BADS_P_Read_Constellation( |
|---|
| 81 | BADS_3x7x_ChannelHandle hChn, /* [in] Device channel handle */ |
|---|
| 82 | int16_t nbrToGet, /* [in] Number values to get */ |
|---|
| 83 | int16_t *iVal, /* [out] Ptr to array to store output I soft decision */ |
|---|
| 84 | int16_t *qVal, /* [out] Ptr to array to store output Q soft decision */ |
|---|
| 85 | int16_t *nbrGotten /* [out] Number of values gotten/read */ |
|---|
| 86 | ); |
|---|
| 87 | BERR_Code BADS_P_HAB_Read_Integrators(BADS_3x7x_ChannelHandle hChn, uint8_t *HAB_Buffer, uint8_t Size_HAB); |
|---|
| 88 | BERR_Code BADS_P_HAB_Read_FFEDFE(BADS_3x7x_ChannelHandle hChn, uint8_t *HAB_Buffer, uint8_t Size_HAB, uint8_t FFE); |
|---|
| 89 | BERR_Code BADS_P_HAB_Read_CWC(BADS_3x7x_ChannelHandle hChn, uint8_t *HAB_Buffer, uint8_t Size_HAB) ; |
|---|
| 90 | |
|---|
| 91 | /***************************************************************************** |
|---|
| 92 | * ADS Function Prototypes Used Local |
|---|
| 93 | *****************************************************************************/ |
|---|
| 94 | BERR_Code BADS_P_Range_Check(BADS_3x7x_ChannelHandle); |
|---|
| 95 | void BADS_P_Set_CFL_Frequency(BADS_3x7x_ChannelHandle hChn, int32_t CFL_Frequency); |
|---|
| 96 | void BADS_P_Set_CFL_Integrator(BADS_3x7x_ChannelHandle hChn, int32_t CFL_Error); |
|---|
| 97 | void BADS_P_Set_TL_Frequency(BADS_3x7x_ChannelHandle hChn, uint32_t Symbol_Rate); |
|---|
| 98 | void BADS_P_Set_TL_Sweep(BADS_3x7x_ChannelHandle hChn, uint32_t Symbol_Rate, int32_t TL_Sweep_Rate); |
|---|
| 99 | void BADS_P_Set_CPL_Integrator(BADS_3x7x_ChannelHandle hChn, uint32_t Symbol_Rate, int32_t CPL_Error); |
|---|
| 100 | void BADS_P_Set_CPL_Sweep(BADS_3x7x_ChannelHandle hChn, uint32_t Symbol_Rate, int32_t CPL_Sweep_Rate); |
|---|
| 101 | int32_t BADS_P_Get_CFL_Frequency(BADS_3x7x_ChannelHandle hChn); |
|---|
| 102 | uint32_t BADS_P_Get_TL_Frequency(BADS_3x7x_ChannelHandle hChn); |
|---|
| 103 | int32_t BADS_P_Get_VID_Error(BADS_3x7x_ChannelHandle hChn); |
|---|
| 104 | int32_t BADS_P_Get_CFL_Error(BADS_3x7x_ChannelHandle hChn); |
|---|
| 105 | int32_t BADS_P_Get_CPL_Error(BADS_3x7x_ChannelHandle hChn, uint32_t Symbol_Rate); |
|---|
| 106 | |
|---|
| 107 | #ifdef __cplusplus |
|---|
| 108 | } |
|---|
| 109 | #endif |
|---|
| 110 | |
|---|
| 111 | #endif |
|---|