| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003-2010, 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: bxdm_pp_avg.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/1 $ |
|---|
| 12 | * $brcm_Date: 2/16/10 10:50a $ |
|---|
| 13 | * |
|---|
| 14 | * [File Description:] |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /magnum/commonutils/xdm/bxdm_pp_avg.h $ |
|---|
| 19 | * |
|---|
| 20 | * Hydra_Software_Devel/1 2/16/10 10:50a nilesh |
|---|
| 21 | * SW7405-2993: Initial XDM version |
|---|
| 22 | * |
|---|
| 23 | ***************************************************************************/ |
|---|
| 24 | |
|---|
| 25 | #ifndef bxdm_pp_AVG_H__ |
|---|
| 26 | #define bxdm_pp_AVG_H__ |
|---|
| 27 | |
|---|
| 28 | #ifdef __cplusplus |
|---|
| 29 | extern "C" { |
|---|
| 30 | #endif |
|---|
| 31 | |
|---|
| 32 | #if 0 |
|---|
| 33 | } |
|---|
| 34 | #endif |
|---|
| 35 | |
|---|
| 36 | typedef struct BXDM_PPAVG_P_Context *BXDM_PPAVG_P_Handle; |
|---|
| 37 | |
|---|
| 38 | typedef struct BXDM_PPAVG_P_Settings |
|---|
| 39 | { |
|---|
| 40 | uint32_t uiNumSamples; |
|---|
| 41 | } BXDM_PPAVG_P_Settings; |
|---|
| 42 | |
|---|
| 43 | BERR_Code |
|---|
| 44 | BXDM_PPAVG_P_GetDefaultSettings( |
|---|
| 45 | BXDM_PPAVG_P_Settings *pstAvgSettings |
|---|
| 46 | ); |
|---|
| 47 | |
|---|
| 48 | BERR_Code |
|---|
| 49 | BXDM_PPAVG_P_Create( |
|---|
| 50 | BXDM_PPAVG_P_Handle *phAvg, |
|---|
| 51 | const BXDM_PPAVG_P_Settings *pstAvgSettings |
|---|
| 52 | ); |
|---|
| 53 | |
|---|
| 54 | BERR_Code |
|---|
| 55 | BXDM_PPAVG_P_Destroy( |
|---|
| 56 | BXDM_PPAVG_P_Handle hAvg |
|---|
| 57 | ); |
|---|
| 58 | |
|---|
| 59 | BERR_Code |
|---|
| 60 | BXDM_PPAVG_P_AddValueFixedPoint( |
|---|
| 61 | BXDM_PPAVG_P_Handle hAvg, |
|---|
| 62 | const BXDM_PPFP_P_DataType *pstValue |
|---|
| 63 | ); |
|---|
| 64 | |
|---|
| 65 | BERR_Code |
|---|
| 66 | BXDM_PPAVG_P_AddValueInteger( |
|---|
| 67 | BXDM_PPAVG_P_Handle hAvg, |
|---|
| 68 | int32_t iValue |
|---|
| 69 | ); |
|---|
| 70 | |
|---|
| 71 | BERR_Code |
|---|
| 72 | BXDM_PPAVG_P_Reset( |
|---|
| 73 | BXDM_PPAVG_P_Handle hAvg |
|---|
| 74 | ); |
|---|
| 75 | |
|---|
| 76 | BERR_Code |
|---|
| 77 | BXDM_PPAVG_P_GetAverage( |
|---|
| 78 | BXDM_PPAVG_P_Handle hAvg, |
|---|
| 79 | BXDM_PPFP_P_DataType *pstAverage, |
|---|
| 80 | uint32_t *puiNumSamples |
|---|
| 81 | ); |
|---|
| 82 | |
|---|
| 83 | #ifdef __cplusplus |
|---|
| 84 | } |
|---|
| 85 | #endif |
|---|
| 86 | |
|---|
| 87 | #endif /* bxdm_pp_AVG_H__ */ |
|---|