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

📄 baseband.c

📁 VIA VT6656 USB linux source code.
💻 C
📖 第 1 页 / 共 5 页
字号:
/* * 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: baseband.c * * Purpose: Implement functions to access baseband * * Author: Jerry Chen * * Date: Jun. 5, 2002 * * Functions: *      BBuGetFrameTime        - Calculate data frame transmitting time *      BBvCaculateParameter   - Caculate PhyLength, PhyService and Phy Signal parameter for baseband Tx *      BBbVT3184Init          - VIA VT3184 baseband chip init code *      BBvLoopbackOn          - Turn on BaseBand Loopback mode *      BBvLoopbackOff         - Turn off BaseBand Loopback mode * * Revision History: * * */#if !defined(__TMACRO_H__)#include "tmacro.h"#endif#if !defined(__TBIT_H__)#include "tbit.h"#endif#if !defined(__TETHER_H__)#include "tether.h"#endif#if !defined(__MAC_H__)#include "mac.h"#endif#if !defined(__BASEBAND_H__)#include "baseband.h"#endif#if !defined(__RF_H__)#include "rf.h"#endif#if !defined(__SROM_H__)#include "srom.h"#endif#if !defined(__CONTROL_H__)#include "control.h"#endif#if !defined(__DATARATE_H__)#include "datarate.h"#endif#if !defined(__RNDIS_H__)#include "rndis.h"#endif#if !defined(__CONTROL_H__)#include "control.h"#endif/*---------------------  Static Definitions -------------------------*/static int          msglevel                =MSG_LEVEL_INFO;//static int          msglevel                =MSG_LEVEL_DEBUG;/*---------------------  Static Classes  ----------------------------*//*---------------------  Static Variables  --------------------------*//*---------------------  Static Functions  --------------------------*//*---------------------  Export Variables  --------------------------*//*---------------------  Static Definitions -------------------------*//*---------------------  Static Classes  ----------------------------*//*---------------------  Static Variables  --------------------------*/BYTE abyVT3184_AGC[] = {    0x00,   //0    0x00,   //1    0x02,   //2    0x02,   //3  //RobertYu:20060505, 0x04,   //3    0x04,   //4    0x04,   //5  //RobertYu:20060505, 0x06,   //5        0x06,   //6    0x06,   //7    0x08,   //8    0x08,   //9    0x0A,   //A    0x0A,   //B    0x0C,   //C    0x0C,   //D    0x0E,   //E    0x0E,   //F    0x10,   //10    0x10,   //11    0x12,   //12    0x12,   //13    0x14,   //14    0x14,   //15    0x16,   //16    0x16,   //17    0x18,   //18    0x18,   //19    0x1A,   //1A    0x1A,   //1B    0x1C,   //1C    0x1C,   //1D    0x1E,   //1E    0x1E,   //1F    0x20,   //20    0x20,   //21    0x22,   //22    0x22,   //23    0x24,   //24    0x24,   //25    0x26,   //26    0x26,   //27    0x28,   //28    0x28,   //29    0x2A,   //2A    0x2A,   //2B    0x2C,   //2C    0x2C,   //2D    0x2E,   //2E    0x2E,   //2F    0x30,   //30    0x30,   //31    0x32,   //32    0x32,   //33    0x34,   //34    0x34,   //35    0x36,   //36    0x36,   //37    0x38,   //38    0x38,   //39    0x3A,   //3A    0x3A,   //3B    0x3C,   //3C    0x3C,   //3D    0x3E,   //3E    0x3E    //3F};BYTE abyVT3184_AL2230[] = {        0x31,//00        0x00,            0x00,            0x00,            0x00,        0x80,            0x00,            0x00,            0x70,            0x45,//tx   //0x64 for FPGA        0x2A,            0x76,            0x00,            0x00,        0x80,            0x00,            0x00,//10        0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x8e,       //RobertYu:20060522, //0x8d,        0x0a,       //RobertYu:20060515, //0x09,        0x00,            0x00,            0x00,            0x00,//20        0x00,            0x00,            0x00,            0x00,            0x4a,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x4a,            0x00,            0x0c,       //RobertYu:20060522, //0x10,        0x26,//30        0x5b,            0x00,            0x00,            0x00,            0x00,            0xaa,            0xaa,            0xff,            0xff,            0x79,            0x00,            0x00,            0x0b,            0x48,        0x04,            0x00,//40        0x08,            0x00,            0x08,            0x08,            0x14,            0x05,            0x09,            0x00,            0x00,            0x00,            0x00,            0x09,            0x73,            0x00,            0xc5,            0x00,//50   //RobertYu:20060505, //0x15,//50        0x19,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0xd0,       //RobertYu:20060505, //0xb0,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0xe4,//60        0x80,            0x00,            0x00,            0x00,            0x00,            0x98,        0x0a,        0x00,            0x00,            0x00,            0x00,            0x00,       //0x80 for FPGA        0x03,            0x01,            0x00,            0x00,//70        0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x8c,//80        0x01,            0x09,            0x00,            0x00,            0x00,            0x00,            0x00,            0x08,            0x00,            0x1f,       //RobertYu:20060516, //0x0f,            0xb7,            0x88,            0x47,            0xaa,            0x00,       //RobertYu:20060505, //0x02,        0x20,//90   //RobertYu:20060505, //0x22,//90        0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0xeb,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x01,            0x00,//a0        0x00,            0x00,            0x00,            0x00,            0x00,            0x10,            0x00,            0x18,            0x00,            0x00,            0x00,            0x00,            0x15,       //RobertYu:20060516, //0x00,            0x00,            0x18,            0x38,//b0        0x30,            0x00,            0x00,            0xff,            0x0f,            0xe4,            0xe2,            0x00,            0x00,            0x00,            0x03,            0x01,            0x00,            0x00,            0x00,            0x18,//c0        0x20,            0x07,            0x18,            0xff,            0xff,       //RobertYu:20060509, //0x2c,        0x0e,       //RobertYu:20060530, //0x0c,        0x0a,            0x0e,            0x00,       //RobertYu:20060505, //0x01,        0x82,       //RobertYu:20060516, //0x8f,        0xa7,            0x3c,            0x10,            0x30,       //RobertYu:20060627, //0x0b,        0x05,       //RobertYu:20060516, //0x25,        0x40,//d0        0x12,            0x00,            0x00,            0x10,            0x28,            0x80,            0x2A,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,            0x00,//e0        0xf3,       //RobertYu:20060516, //0xd3,        0x00,            0x00,            0x00,            0x10,            0x00,            0x12,       //RobertYu:20060627, //0x10,        0x00,            0xf4,            0x00,    

⌨️ 快捷键说明

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