Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
baseband.h File Reference
#include "ttype.h"
#include "tether.h"
#include "device.h"

Go to the source code of this file.

Macros

#define BB_MAX_CONTEXT_SIZE   256
 
#define PREAMBLE_LONG   0
 
#define PREAMBLE_SHORT   1
 
#define F5G   0
 
#define F2_4G   1
 
#define TOP_RATE_54M   0x80000000
 
#define TOP_RATE_48M   0x40000000
 
#define TOP_RATE_36M   0x20000000
 
#define TOP_RATE_24M   0x10000000
 
#define TOP_RATE_18M   0x08000000
 
#define TOP_RATE_12M   0x04000000
 
#define TOP_RATE_11M   0x02000000
 
#define TOP_RATE_9M   0x01000000
 
#define TOP_RATE_6M   0x00800000
 
#define TOP_RATE_55M   0x00400000
 
#define TOP_RATE_2M   0x00200000
 
#define TOP_RATE_1M   0x00100000
 
#define BBvClearFOE(dwIoBase)
 
#define BBvSetFOE(dwIoBase)
 

Functions

unsigned int BBuGetFrameTime (unsigned char byPreambleType, unsigned char byPktType, unsigned int cbFrameLength, unsigned short wRate)
 
void BBvCalculateParameter (PSDevice pDevice, unsigned int cbFrameLength, unsigned short wRate, unsigned char byPacketType, unsigned short *pwPhyLen, unsigned char *pbyPhySrv, unsigned char *pbyPhySgn)
 
bool BBbReadEmbedded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char *pbyData)
 
bool BBbWriteEmbedded (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char byData)
 
void BBvReadAllRegs (unsigned long dwIoBase, unsigned char *pbyBBRegs)
 
void BBvLoopbackOn (PSDevice pDevice)
 
void BBvLoopbackOff (PSDevice pDevice)
 
void BBvSetShortSlotTime (PSDevice pDevice)
 
bool BBbIsRegBitsOn (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char byTestBits)
 
bool BBbIsRegBitsOff (unsigned long dwIoBase, unsigned char byBBAddr, unsigned char byTestBits)
 
void BBvSetVGAGainOffset (PSDevice pDevice, unsigned char byData)
 
bool BBbVT3253Init (PSDevice pDevice)
 
void BBvSoftwareReset (unsigned long dwIoBase)
 
void BBvPowerSaveModeON (unsigned long dwIoBase)
 
void BBvPowerSaveModeOFF (unsigned long dwIoBase)
 
void BBvSetTxAntennaMode (unsigned long dwIoBase, unsigned char byAntennaMode)
 
void BBvSetRxAntennaMode (unsigned long dwIoBase, unsigned char byAntennaMode)
 
void BBvSetDeepSleep (unsigned long dwIoBase, unsigned char byLocalID)
 
void BBvExitDeepSleep (unsigned long dwIoBase, unsigned char byLocalID)
 
void TimerSQ3CallBack (void *hDeviceContext)
 
void TimerState1CallBack (void *hDeviceContext)
 
void BBvAntennaDiversity (PSDevice pDevice, unsigned char byRxRate, unsigned char bySQ3)
 
void BBvClearAntDivSQ3Value (PSDevice pDevice)
 

Macro Definition Documentation

#define BB_MAX_CONTEXT_SIZE   256

Definition at line 42 of file baseband.h.

#define BBvClearFOE (   dwIoBase)
Value:
{ \
BBbWriteEmbedded(dwIoBase, 0xB1, 0); \
}

Definition at line 74 of file baseband.h.

#define BBvSetFOE (   dwIoBase)
Value:
{ \
BBbWriteEmbedded(dwIoBase, 0xB1, 0x0C); \
}

Definition at line 79 of file baseband.h.

#define F2_4G   1

Definition at line 54 of file baseband.h.

#define F5G   0

Definition at line 53 of file baseband.h.

#define PREAMBLE_LONG   0

Definition at line 49 of file baseband.h.

#define PREAMBLE_SHORT   1

Definition at line 50 of file baseband.h.

#define TOP_RATE_11M   0x02000000

Definition at line 62 of file baseband.h.

#define TOP_RATE_12M   0x04000000

Definition at line 61 of file baseband.h.

#define TOP_RATE_18M   0x08000000

Definition at line 60 of file baseband.h.

#define TOP_RATE_1M   0x00100000

Definition at line 67 of file baseband.h.

#define TOP_RATE_24M   0x10000000

Definition at line 59 of file baseband.h.

#define TOP_RATE_2M   0x00200000

Definition at line 66 of file baseband.h.

#define TOP_RATE_36M   0x20000000

Definition at line 58 of file baseband.h.

#define TOP_RATE_48M   0x40000000

Definition at line 57 of file baseband.h.

#define TOP_RATE_54M   0x80000000

Definition at line 56 of file baseband.h.

#define TOP_RATE_55M   0x00400000

Definition at line 65 of file baseband.h.

#define TOP_RATE_6M   0x00800000

Definition at line 64 of file baseband.h.

#define TOP_RATE_9M   0x01000000

Definition at line 63 of file baseband.h.

Function Documentation

bool BBbIsRegBitsOff ( unsigned long  dwIoBase,
unsigned char  byBBAddr,
unsigned char  byTestBits 
)

Definition at line 2124 of file baseband.c.

bool BBbIsRegBitsOn ( unsigned long  dwIoBase,
unsigned char  byBBAddr,
unsigned char  byTestBits 
)

Definition at line 2101 of file baseband.c.

bool BBbReadEmbedded ( unsigned long  dwIoBase,
unsigned char  byBBAddr,
unsigned char pbyData 
)

Definition at line 2016 of file baseband.c.

bool BBbVT3253Init ( PSDevice  pDevice)

Definition at line 2147 of file baseband.c.

bool BBbWriteEmbedded ( unsigned long  dwIoBase,
unsigned char  byBBAddr,
unsigned char  byData 
)

Definition at line 2059 of file baseband.c.

unsigned int BBuGetFrameTime ( unsigned char  byPreambleType,
unsigned char  byPktType,
unsigned int  cbFrameLength,
unsigned short  wRate 
)

Definition at line 1778 of file baseband.c.

void BBvAntennaDiversity ( PSDevice  pDevice,
unsigned char  byRxRate,
unsigned char  bySQ3 
)

Definition at line 2788 of file baseband.c.

void BBvCalculateParameter ( PSDevice  pDevice,
unsigned int  cbFrameLength,
unsigned short  wRate,
unsigned char  byPacketType,
unsigned short pwPhyLen,
unsigned char pbyPhySrv,
unsigned char pbyPhySgn 
)

Definition at line 1845 of file baseband.c.

void BBvClearAntDivSQ3Value ( PSDevice  pDevice)

Definition at line 2761 of file baseband.c.

void BBvExitDeepSleep ( unsigned long  dwIoBase,
unsigned char  byLocalID 
)

Definition at line 2643 of file baseband.c.

void BBvLoopbackOff ( PSDevice  pDevice)

Definition at line 2401 of file baseband.c.

void BBvLoopbackOn ( PSDevice  pDevice)

Definition at line 2347 of file baseband.c.

void BBvPowerSaveModeOFF ( unsigned long  dwIoBase)

Definition at line 2539 of file baseband.c.

void BBvPowerSaveModeON ( unsigned long  dwIoBase)

Definition at line 2517 of file baseband.c.

void BBvReadAllRegs ( unsigned long  dwIoBase,
unsigned char pbyBBRegs 
)

Definition at line 2322 of file baseband.c.

void BBvSetDeepSleep ( unsigned long  dwIoBase,
unsigned char  byLocalID 
)

Definition at line 2636 of file baseband.c.

void BBvSetRxAntennaMode ( unsigned long  dwIoBase,
unsigned char  byAntennaMode 
)

Definition at line 2605 of file baseband.c.

void BBvSetShortSlotTime ( PSDevice  pDevice)

Definition at line 2440 of file baseband.c.

void BBvSetTxAntennaMode ( unsigned long  dwIoBase,
unsigned char  byAntennaMode 
)

Definition at line 2563 of file baseband.c.

void BBvSetVGAGainOffset ( PSDevice  pDevice,
unsigned char  byData 
)

Definition at line 2463 of file baseband.c.

void BBvSoftwareReset ( unsigned long  dwIoBase)

Definition at line 2496 of file baseband.c.

void TimerSQ3CallBack ( void hDeviceContext)

Definition at line 2878 of file baseband.c.

void TimerState1CallBack ( void hDeviceContext)

Definition at line 2926 of file baseband.c.