⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 datarate.h

📁 VIA VT6656 USB linux source code.
💻 H
字号:
/* * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. * All rights reserved. * * This software is copyrighted by and is the sole property of * VIA Networking Technologies, Inc. This software may only be used * in accordance with the corresponding license agreement. Any unauthorized * use, duplication, transmission, distribution, or disclosure of this * software is expressly forbidden. * * This software is provided by VIA Networking Technologies, Inc. "as is" * and any express or implied warranties, including, but not limited to, the * implied warranties of merchantability and fitness for a particular purpose * are disclaimed. In no event shall VIA Networking Technologies, Inc. * be liable for any direct, indirect, incidental, special, exemplary, or * consequential damages. * * * File: datarate.h * * Purpose: Handles the auto fallback & data rates functions * * Author: Lyndon Chen * * Date: July 16, 2002 * */ #ifndef __DATARATE_H__#define __DATARATE_H__/*---------------------  Export Definitions -------------------------*/#define FALLBACK_PKT_COLLECT_TR_H  50   // pkts#define FALLBACK_PKT_COLLECT_TR_L  10   // pkts#define FALLBACK_POLL_SECOND       5    // 5 sec#define FALLBACK_RECOVER_SECOND    30   // 30 sec#define FALLBACK_THRESHOLD         15   // percent#define UPGRADE_THRESHOLD          5    // percent#define UPGRADE_CNT_THRD           3    // times#define RETRY_TIMES_THRD_H         2    // times#define RETRY_TIMES_THRD_L         1    // times#define RATE_1M         0#define RATE_2M         1#define RATE_5M         2#define RATE_11M        3#define RATE_6M         4#define RATE_9M         5#define RATE_12M        6#define RATE_18M        7#define RATE_24M        8#define RATE_36M        9#define RATE_48M       10#define RATE_54M       11#define RATE_AUTO      12#define MAX_RATE       12/*---------------------  Export Classes  ----------------------------*/    /*---------------------  Export Variables  --------------------------*//*---------------------  Export Types  ------------------------------*//*---------------------  Export Functions  --------------------------*/VOIDRATEvParseMaxRate(    IN PVOID pDeviceHandler,        IN PWLAN_IE_SUPP_RATES pItemRates,    IN PWLAN_IE_SUPP_RATES pItemExtRates,    IN BOOL bUpdateBasicRate,        OUT PWORD pwMaxBasicRate,    OUT PWORD pwMaxSuppRate,    OUT PWORD pwSuppRate,        OUT PBYTE pbyTopCCKRate,    OUT PBYTE pbyTopOFDMRate    );VOIDRATEvTxRateFallBack(    IN PVOID pDeviceHandler,        IN PKnownNodeDB psNodeDBTable    );BYTE
RATEuSetIE(
    IN PWLAN_IE_SUPP_RATES pSrcRates,
    IN PWLAN_IE_SUPP_RATES pDstRates,
    IN UINT                uRateLen
    );    WORD
RATEwGetRateIdx(
    IN BYTE byRate
    );        
BYTE
DATARATEbyGetRateIdx(
    IN BYTE byRate
    );        
#endif //__DATARATE_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -