// The following ifdef block is the standard way of creating macros which make exporting
// from a DLL simpler. All files within this DLL are compiled with the HQADLL_EXPORTS
// symbol defined on the command line. this symbol should not be defined on any project
// that uses this DLL. This way any other project whose source files include this file see
// HQADLL_API functions as being imported from a DLL, whereas this DLL sees symbols
// defined with this macro as being exported.
#ifndef _HQADLL_H_
#define _HQADLL_H_
#ifdef HQADLL_EXPORTS
#define HQADLL_API __declspec(dllexport)
#elif RT2800_ATE_DLL_EXPORTS
#define HQADLL_API
#else
#define HQADLL_API __declspec(dllimport)
#endif
#if 0
#ifdef __cpluscplus
extern "C" {
#endif
// This class is exported from the HQADLL.dll
class HQADLL_API CHQADLL {
public:
CHQADLL(void);
// TODO: add your methods here.
};
extern HQADLL_API int nHQADLL;
HQADLL_API int fnHQADLL(void);
#endif
#ifdef _AP
#include <pcap.h>
//#include "EtherCmd.h"
#endif
//==============================================================================//
// HQA Struct
//==============================================================================//
//==============================================================================//
// HQA Export Function
//==============================================================================//
// 1. Init Adapter
HQADLL_API int _stdcall HQA_OpenAdapter();
HQADLL_API int _stdcall HQA_CloseAdapter();
HQADLL_API int _stdcall HQA_RadioOn();
HQADLL_API int _stdcall HQA_RadioOff();
HQADLL_API int _stdcall HQA_GetInterface(ULONG DeviceInterFace);
// 2. Tx/Rx Test
HQADLL_API int _stdcall HQA_StartTx(ULONG PacketCount/*TxCount*/,
USHORT PacketSize/*TxLength*/);
HQADLL_API int _stdcall HQA_StartTxExt(void* TxFrames);
HQADLL_API int _stdcall HQA_StartContiTx();
HQADLL_API int _stdcall HQA_StartTxCarrier();
HQADLL_API int _stdcall HQA_StartRx();
HQADLL_API int _stdcall HQA_StopTx();
HQADLL_API int _stdcall HQA_StoptContiTx();
HQADLL_API int _stdcall HQA_StopTxCarrier( );
HQADLL_API int _stdcall HQA_StopRx();
HQADLL_API int _stdcall HQA_SetTxPath(UCHAR TxPath);
HQADLL_API int _stdcall HQA_SetRxPath(UCHAR RxPath);
HQADLL_API int _stdcall HQA_SetTxIPG(ULONG TxIPG);
HQADLL_API int _stdcall HQA_SetTxPower0(CHAR TxPower0);
HQADLL_API int _stdcall HQA_SetTxPower1(CHAR TxPower1);
HQADLL_API int _stdcall HQA_AntennaSel(UCHAR AntSel);
HQADLL_API int _stdcall HQA_GetTXPayloadInfo(PULONG TXPaylodLength, PUCHAR TXPayload);
HQADLL_API int _stdcall HQA_SetUSBTxAggregate(BOOL bAggregate);
HQADLL_API int _stdcall HQA_SetUSBTxAggregateCount(int AggregateCount);
HQADLL_API int _stdcall HQA_GetGetRXMPDU(UCHAR* buffer, ULONG bufsize);
HQADLL_API int _stdcall HQA_SetTxPattern(DWORD TxPattern);
HQADLL_API int _stdcall HQA_SetTxPatternInc(BOOL TxPatternInc);
HQADLL_API int _stdcall HQA_SetTxPatternRandom(BOOL TxPatternRandom);
HQADLL_API int _stdcall HQA_SetTxPayload(void* TxFramesExt);
HQADLL_API int _stdcall HQA_SetLDPC(BOOL IsEnable);
// 3. Channel/Preamble/Rate/... setting
HQADLL_API int _stdcall HQA_SetChannel(UCHAR Channel);
HQADLL_API int _stdcall HQA_SetPreamble(UCHAR Preamble);
HQADLL_API int _stdcall HQA_SetRate(UCHAR McsRate);
HQADLL_API int _stdcall HQA_SetNss(UCHAR Nss);
HQADLL_API int _stdcall HQA_SetSystemBW(UCHAR SysBW);
HQADLL_API int _stdcall HQA_SetPerPktBW(UCHAR PerPktBW);
HQADLL_API int _stdcall HQA_SetPrimaryBW(UCHAR PrimaryBW);
HQADLL_API int _stdcall HQA_SetFreqOffset(UCHAR FreqOffset);
HQADLL_API int _stdcall HQA_SetAutoResponder(UCHAR AutoRsp);
HQADLL_API int _stdcall HQA_SetTssiOnOff(UCHAR TssiOnOff);
HQADLL_API int _stdcall HQA_SetRx_H_L_Temperature(UCHAR CompersationOnOff);
HQADLL_API int _stdcall HQA_SetRadioMode(BOOL bRadioMode);
// 4. Statistics Counter
HQADLL_API int _stdcall HQA_ResetTxRxCounter();
HQADLL_API int _stdcall HQA_GetStatistics(CHAR StatisticsBuffer[], int BufferSize);
HQADLL_API int _stdcall HQA_GetRxOKData(ULONG *RxOKDataPacket);
HQADLL_API int _stdcall HQA_GetRxOKOther(ULONG *RxOKOtherPacket);
HQADLL_API int _stdcall HQA_GetRxAllPktCount(ULONG *RxPacketcount);
HQADLL_API int _stdcall HQA_GetTxTransmitted(ULONG *TxTransmittedCounter);
HQADLL_API int _stdcall HQA_GetHwCounter(ULONG *FcsErr, ULONG *RxOverflow, ULONG *PhyErr, ULONG *FalseCCA);
HQADLL_API int _stdcall HQA_CalibrationOperation(ULONG CalibrationID, ULONG* Parameter, ULONG ParameterSize);
HQADLL_API int _stdcall HQA_SetFWChannel();
// 5. MAC/BBP/RF Register Access
HQADLL_API int _stdcall HQA_MacRegRead(ULONG Offset, ULONG* Data);
HQADLL_API int _stdcall HQA_MacRegWrite(ULONG Offset, ULONG Data);
HQADLL_API int _stdcall HQA_MacRegBulkRead(ULONG Offset, ULONG* Data, ULONG Length);
HQADLL_API int _stdcall HQA_BbpRegRead(ULONG Offset, ULONG* Data);
HQADLL_API int _stdcall HQA_BbpRegWrite(ULONG Offset, ULONG Data);
HQADLL_API int _stdcall HQA_RfRegRead(UCHAR Bank, UCHAR Id, UCHAR *Data);
HQADLL_API int _stdcall HQA_RfRegWrite(UCHAR Bank, UCHAR Id, UCHAR Data);
HQADLL_API int _stdcall HQA_RfRegReadV2(ULONG WfSel, ULONG offset, ULONG *Data);
HQADLL_API int _stdcall HQA_RfRegWriteV2(ULONG WfSel, ULONG offset, ULONG Data);
HQADLL_API int _stdcall HQA_RfRegBulkReadV2(ULONG WfSel, ULONG offset, ULONG *Data, ULONG Length);
HQADLL_API int _stdcall HQA_RfRegbulkWriteV2(ULONG WfSel, ULONG offset, ULONG *Data, ULONG Length);
// 6. EEPROM/eFuse
HQADLL_API int _stdcall HQA_ReadEEPROM(USHORT Offset, USHORT Length, PUSHORT Data);
HQADLL_API int _stdcall HQA_WriteEEPROM(USHORT Offset, USHORT Length, PUSHORT Data);
HQADLL_API int _stdcall HQA_CheckEfuseMode(BOOL *bEfuseMode);
HQADLL_API int _stdcall HQA_GetFreeEfuseBlock(PUCHAR FreeBlkNum);
HQADLL_API int _stdcall HQA_GetEfuseBlockNr(PUSHORT pEfusueBlockNr);
HQADLL_API int _stdcall HQA_WriteEFuseFromBuffer();
HQADLL_API int _stdcall HQA_SetTxAddr(void *TxFrames);
HQADLL_API int _stdcall HQA_SetEfuseBufferMode(BOOL EfuseBufferMode);
// 7. Temperature compensation
HQADLL_API int _stdcall HQA_ReadTempReferenceValue(PCHAR pTempRefValue);
HQADLL_API int _stdcall HQA_GetThermalValue(UCHAR *ThermalValue);
/****************************************/
// 9. ATE mode API
/****************************************/
HQADLL_API int _stdcall HQA_SetATEMode(BOOL bATEMode);
HQADLL_API int _stdcall HQA_SetForceLoadEE(BOOL bForceLoadEE);
HQADLL_API int _stdcall HQA_ReinitEepromSetting();
//HQADLL_API int _stdcall HQA_GetInitialTemperature(PCHAR pInitTemperature);
HQADLL_API int _stdcall HQA_TSSI_DC_Cal(PCHAR tssi_dc0);
HQADLL_API int _stdcall HQA_IsCalibrationFree();
/****************************************/
// 10. SLT test
/****************************************/
HQADLL_API int _stdcall HQA_GetRxU2MData(ULONG *RxU2MDataPacket);
HQADLL_API int _stdcall HQA_SecuritySetting(PUCHAR PeerMAC, UCHAR CipherAlg);
HQADLL_API int _stdcall HQA_GetCurrentAddr(UCHAR* Addr);
HQADLL_API int _stdcall HQA_SetSLTMode(BOOL bSLTMode);
HQADLL_API int _stdcall HQA_GetRxRSSI(LONG *RxRSSI);
HQADLL_API int _stdcall HQA_GetRxSNR(double *RxSNR);
HQADLL_API int _stdcall HQA_SetTXRXLoopback(BOOL LoopbackMode);
/****************************************/
// 11. Flash
/****************************************/
#ifdef _USB
HQADLL_API bool _stdcall HQA_FlashEraseAll();
HQADLL_API bool _stdcall HQA_FlashWrite(ULONG FlashSize, char* FilePathName);
HQADLL_API bool _stdcall HQA_FlashRead(ULONG FlashSize, char* FilePathName);
HQADLL_API bool _stdcall HQA_EraseSector(ULONG address);
#endif
/****************************************/
// 12. Others
/****************************************/
HQADLL_API int _stdcall HQA_SetSideBandOption(BOOL bSideBandOption);
HQADLL_API int _stdcall HQA_OpenEDCCA();
HQADLL_API int _stdcall HQA_CloseEDCCA();
//***************************************/
#ifdef _AP
HQADLL_API int _stdcall HQA_SetINicMode();
HQADLL_API int _stdcall HQA_SetStandaloneMode();
HQADLL_API int _stdcall HQA_SetBuffermodeOrEeprom();
HQADLL_API int _stdcall HQA_Setefuse();
HQADLL_API int _stdcall HQA_SetOpenAdapter(char *AdapterNam
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
MT7662E_QA_Tool.zip (12个子文件)
MT7662E_QA_Tool
MT7662EQA.exe 4.4MB
HQADLL.lib 30KB
HQADLL.h 11KB
FW_7662.bin 81KB
x64Driver
MT62EQx.sys 56KB
mt62eqx.cat 9KB
MT62EQx.inf 5KB
Setup.ini 261B
ROM_7662.bin 22KB
x86Driver
MT62EQ.inf 6KB
MT62EQ.sys 38KB
HQADLL.dll 198KB
共 12 条
- 1
资源评论
- evering2020-04-26可以用,还不错
QingNing3028
- 粉丝: 61
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功