48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
|
/******************************************************************************
|
||
|
*
|
||
|
* Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or modify it
|
||
|
* under the terms of version 2 of the GNU General Public License as
|
||
|
* published by the Free Software Foundation.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||
|
* more details.
|
||
|
*
|
||
|
******************************************************************************/
|
||
|
|
||
|
#ifndef __ODMCFOTRACK_H__
|
||
|
#define __ODMCFOTRACK_H__
|
||
|
|
||
|
#define CFO_TH_XTAL_HIGH 20 /* kHz */
|
||
|
#define CFO_TH_XTAL_LOW 10 /* kHz */
|
||
|
#define CFO_TH_ATC 80 /* kHz */
|
||
|
|
||
|
typedef struct _CFO_TRACKING_ {
|
||
|
bool bATCStatus;
|
||
|
bool largeCFOHit;
|
||
|
bool bAdjust;
|
||
|
u8 CrystalCap;
|
||
|
u8 DefXCap;
|
||
|
int CFO_tail[2];
|
||
|
int CFO_ave_pre;
|
||
|
u32 packetCount;
|
||
|
u32 packetCount_pre;
|
||
|
|
||
|
bool bForceXtalCap;
|
||
|
bool bReset;
|
||
|
} CFO_TRACKING, *PCFO_TRACKING;
|
||
|
|
||
|
void ODM_CfoTrackingReset(void *pDM_VOID
|
||
|
);
|
||
|
|
||
|
void ODM_CfoTrackingInit(void *pDM_VOID);
|
||
|
|
||
|
void ODM_CfoTracking(void *pDM_VOID);
|
||
|
|
||
|
void ODM_ParsingCFO(void *pDM_VOID, void *pPktinfo_VOID, s8 *pcfotail);
|
||
|
|
||
|
#endif
|