Unit RT2X00LIB

From Ultibo.org
Jump to: navigation, search

Return to Unit Reference


Description


Ralink RT2x00 Wireless Driver Library unit

This unit provides functionality and definitions common to all implementations of the RT2x00 chipset series PCI, USB or other.

Constants



[Expand]
RT2X00LIB device and driver configuration flags RT2X00_DEVICE_STATE_*


[Expand]
RT2X00LIB standard timings and sizes RT2X00_*_SIZE


[Expand]
RT2X00LIB extra TX headroom RT2X00_*_EXTRA


[Expand]
RT2X00LIB chipset RT2X00_RT*


[Expand]
RT2X00LIB requirements RT2X00_REQUIRE_*


[Expand]
RT2X00LIB capabilities RT2X00_CAPABILITY_*


[Expand]
RT2X00LIB busy delay RT2X00_REGISTER_BUSY_*


[Expand]
RT2X00LIB RX crypto status RT2X00_RX_CRYPTO_*


[Expand]
RT2X00LIB RX descriptor flags RT2X00_RXDONE_*


[Expand]
RT2X00LIB TX descriptor flags RT2X00_ENTRY_TXD_*


[Expand]
RT2X00LIB TX complete flags RT2X00_TXDONE_*


[Expand]
RT2X00LIB antenna RT2X00_ANTENNA_*


[Expand]
RT2X00LIB antenna flags RT2X00_ANTENNA_RX_*


[Expand]
RT2X00LIB LED type RT2X00_LED_TYPE_*


[Expand]
RT2X00LIB LED mode RT2X00_LED_MODE_*


[Expand]
RT2X00LIB TSF synchronization RT2X00_TSF_SYNC_*


[Expand]
RT2X00LIB device states RT2X00_STATE_*


[Expand]
RT2X00LIB IFS backoff RT2X00_IFS_*


[Expand]
RT2X00LIB IFS backoff (for HT devices) RT2X00_TXOP_*


[Expand]
RT2X00LIB cipher RT2X00_CIPHER_*


[Expand]
RT2X00LIB rate modulation RT2X00_RATE_MODE_*


[Expand]
RT2X00LIB size RT2X00_*_SIZE


[Expand]
RT2X00LIB channel RT2X00_CHANNEL_*


[Expand]
RT2X00LIB supported bands RT2X00_SUPPORT_BAND_*


[Expand]
RT2X00LIB supported rates RT2X00_SUPPORT_RATE_*


[Expand]
RT2X00LIB device supported rates RT2X00_DEV_RATE_*


[Expand]
RT2X00LIB configuration update RT2X00_CONFIG_UPDATE_*


Type definitions



RT2X00LIB chipset

[Expand]

PRT2X00Chipset = ^TRT2X00Chipset;

TRT2X00Chipset = record

RT2X00LIB rate

[Expand]

PRT2X00Rate = ^TRT2X00Rate;

TRT2X00Rate = record

RT2X00LIB antenna

[Expand]

PRT2X00Antenna = ^TRT2X00Antenna;

TRT2X00Antenna = record

RT2X00LIB channel

[Expand]

PRT2X00Channel = ^TRT2X00Channel;

TRT2X00Channel = record

RT2X00LIB channels

[Expand]

PRT2X00Channels = ^TRT2X00Channels;

TRT2X00Channels = array[0..0] of TRT2X00Channel;

RT2X00LIB RF channel

[Expand]

PRT2X00RFChannel = ^TRT2X00RFChannel;

TRT2X00RFChannel = record

RT2X00LIB RF channels

[Expand]

PRT2X00RFChannels = ^TRT2X00RFChannels;

TRT2X00RFChannels = array[0..0] of TRT2X00RFChannel;

RT2X00LIB specifications

[Expand]

PRT2X00Specifications = ^TRT2X00Specifications;

TRT2X00Specifications = record

RT2X00LIB EWMA

[Expand]

PRT2X00EWMA = ^TRT2X00EWMA;

TRT2X00EWMA = record

RT2X00LIB link quality

[Expand]

PRT2X00LinkQuality = ^TRT2X00LinkQuality;

TRT2X00LinkQuality = record

RT2X00LIB link antenna

[Expand]

PRT2X00LinkAntenna = ^TRT2X00LinkAntenna;

TRT2X00LinkAntenna = record

RT2X00LIB link

[Expand]

PRT2X00Link = ^TRT2X00Link;

TRT2X00Link = record

RT2X00LIB interface

[Expand]

PRT2X00Interface = ^TRT2X00Interface;

TRT2X00Interface = record

RT2X00LIB channel configuration

[Expand]

PRT2X00ChannelConfiguration = ^TRT2X00ChannelConfiguration;

TRT2X00ChannelConfiguration = record

RT2X00LIB interface configuration

[Expand]

PRT2X00InterfaceConfiguration = ^TRT2X00InterfaceConfiguration;

TRT2X00InterfaceConfiguration = record

RT2X00LIB RX descriptor

[Expand]

PRT2X00RXDescriptor = ^TRT2X00RXDescriptor;

TRT2X00RXDescriptor = record

RT2X00LIB TX decriptor

[Expand]

PRT2X00TXDescriptor = ^TRT2X00TXDescriptor;

TRT2X00TXDescriptor = record

'RT2X00LIB TX complete

[Expand]

PRT2X00TXComplete = ^TRT2X00TXComplete;

TRT2X00TXComplete = record

RT2X00LIB driver initialization

TRT2X00DriverInit = function(RT2X00:PRT2X00WiFiDevice):LongWord;

RT2X00LIB EEPROM load

TRT2X00EepromLoad = function(RT2X00:PRT2X00WiFiDevice; Data:PWord; Size:LongWord):LongWord;

RT2X00LIB register read

TRT2X00RegisterRead = function(RT2X00:PRT2X00WiFiDevice; Offset:Word; Value:PLongWord):LongWord;

RT2X00LIB register write

TRT2X00RegisterWrite = function(RT2X00:PRT2X00WiFiDevice; Offset:Word; Value:LongWord):LongWord;

RT2X00LIB register multi read

TRT2X00RegisterMultiRead = function(RT2X00:PRT2X00WiFiDevice; Offset:Word; Data:Pointer; Size:LongWord):LongWord;

RT2X00LIB register multi write

TRT2X00RegisterMultiWrite = function(RT2X00:PRT2X00WiFiDevice; Offset:Word; Data:Pointer; Size:LongWord):LongWord;

RT2X00LIB register busy read

TRT2X00RegisterBusyRead = function(RT2X00:PRT2X00WiFiDevice; Offset,Mask:LongWord; Reg:PLongWord):Boolean;

RT2X00LIB set LED

TRT2X00SetLED = function(RT2X00:PRT2X00WiFiDevice; ID,Level:LongWord):LongWord;

RT2X00LIB set state

TRT2X00SetState = function(RT2X00:PRT2X00WiFiDevice; State:LongWord):LongWord;

RT2X00LIB enable RX

TRT2X00EnableRX = function(RT2X00:PRT2X00WiFiDevice):LongWord;

RT2X00LIB disable RX

TRT2X00DisableRX = function(RT2X00:PRT2X00WiFiDevice):LongWord;

RT2X00LIB enable beacon

TRT2X00EnableBeacon = function(RT2X00:PRT2X00WiFiDevice):LongWord;

RT2X00LIB disable beacon

TRT2X00DisableBeacon = function(RT2X00:PRT2X00WiFiDevice):LongWord;

RT2X00LIB get firmware

TRT2X00GetFirmware = function(RT2X00:PRT2X00WiFiDevice; var Name:String; var Address:Pointer; var Size:LongWord):Boolean;

RT2X00LIB check firmware

TRT2X00CheckFirmware = function(RT2X00:PRT2X00WiFiDevice; Data:PByte; Size:LongWord):Boolean;

RT2X00LIB load firmware

TRT2X00LoadFirmware = function(RT2X00:PRT2X00WiFiDevice; Data:PByte; Size:LongWord):Boolean;

RT2X00LIB write firmware

TRT2X00WriteFirmware = function(RT2X00:PRT2X00WiFiDevice; Data:PByte; Size:LongWord):Boolean;

RT2X00LIB configure

TRT2X00Configure = function(RT2X00:PRT2X00WiFiDevice; Configuration:PRT2X00ChannelConfiguration; Flags:LongWord):LongWord;

RT2X00LIB configure filter

TRT2X00ConfigureFilter = function(RT2X00:PRT2X00WiFiDevice; Filter:LongWord):LongWord;

RT2X00LIB configure antenna

TRT2X00ConfigureAntenna = function(RT2X00:PRT2X00WiFiDevice; Antenna:PRT2X00Antenna):LongWord;

RT2X00LIB configure interface

TRT2X00ConfigureInterface = function(RT2X00:PRT2X00WiFiDevice; Configuration:PRT2X00InterfaceConfiguration; Flags:LongWord):LongWord;

RT2X00LIB initialize registers

TRT2X00InitializeRegisters = function(RT2X00:PRT2X00WiFiDevice):LongWord;

RT2X00LIB hardware encryption disabled

TRT2X00HardwareEncryptionDisabled = function(RT2X00:PRT2X00WiFiDevice):Boolean;

RT2X00LIB WiFi device

[Expand]

PRT2X00WiFiDevice = ^TRT2X00WiFiDevice;

TRT2X00WiFiDevice = record


Public variables


None defined

Function declarations



RT2X00LIB functions

[Expand]
function RT2X00DriverInit(RT2X00:PRT2X00WiFiDevice):LongWord;
Description: To be documented


[Expand]
function RT2X00DriverQuit(RT2X00:PRT2X00WiFiDevice):LongWord;
Description: To be documented


[Expand]
function RT2X00InitializeModes(RT2X00:PRT2X00WiFiDevice):LongWord;
Description: To be documented


[Expand]
function RT2X00LoadFirmware(RT2X00:PRT2X00WiFiDevice):LongWord;
Description: To be documented


[Expand]
function RT2X00EnableRX(RT2X00:PRT2X00WiFiDevice):LongWord;
Description: To be documented


[Expand]
function RT2X00DisableRX(RT2X00:PRT2X00WiFiDevice):LongWord;
Description: To be documented


[Expand]
function RT2X00EnableBeacon(RT2X00:PRT2X00WiFiDevice):LongWord;
Description: To be documented


[Expand]
function RT2X00DisableBeacon(RT2X00:PRT2X00WiFiDevice):LongWord;
Description: To be documented


[Expand]
function RT2X00EnableRadio(RT2X00:PRT2X00WiFiDevice):LongWord;
Description: To be documented


[Expand]
function RT2X00DisableRadio(RT2X00:PRT2X00WiFiDevice):LongWord;
Description: To be documented


[Expand]
function RT2X00SetLED(RT2X00:PRT2X00WiFiDevice; ID:LongWord; Enabled:Boolean):LongWord;
Description: To be documented


[Expand]
function RT2X00RadioLED(RT2X00:PRT2X00WiFiDevice; Enabled:Boolean):LongWord;
Description: To be documented


[Expand]
function RT2X00AssocLED(RT2X00:PRT2X00WiFiDevice; Enabled:Boolean):LongWord;
Description: To be documented


[Expand]
function RT2X00ActivityLED(RT2X00:PRT2X00WiFiDevice; Enabled:Boolean):LongWord;
Description: To be documented


[Expand]
function RT2X00QualityLED(RT2X00:PRT2X00WiFiDevice; RSSI:LongInt):LongWord;
Description: To be documented


[Expand]
procedure RT2X00InitializeRate(Entry:PIEEE80211Rate; Index:Word; Rate:PRT2X00Rate);
Description: To be documented


[Expand]
procedure RT2X00InitializeChannel(Entry:PIEEE80211Channel; Channel,TXPower,Value:LongWord);
Description: To be documented


[Expand]
function RT2X00GetHTCenterChannel(RT2X00:PRT2X00WiFiDevice):Word;
Description: To be documented


[Expand]
function RT2X00Configure(RT2X00:PRT2X00WiFiDevice; Flags:LongWord):LongWord;
Description: To be documented


[Expand]
function RT2X00ConfigureAntenna(RT2X00:PRT2X00WiFiDevice; Antenna:PRT2X00Antenna):LongWord;
Description: To be documented


[Expand]
function RT2X00ConfigureInterface(RT2X00:PRT2X00WiFiDevice; InterfaceType:LongWord; Address,BSSID:PHardwareAddress):LongWord;
Description: To be documented


RT2X00LIB helper functions

[Expand]
function RT2X00IsPCI(RT2X00:PRT2X00WiFiDevice):Boolean;
Description: To be documented


[Expand]
function RT2X00IsPCIe(RT2X00:PRT2X00WiFiDevice):Boolean;
Description: To be documented


[Expand]
function RT2X00IsUSB(RT2X00:PRT2X00WiFiDevice):Boolean;
Description: To be documented


[Expand]
function RT2X00IsMMIO(RT2X00:PRT2X00WiFiDevice):Boolean;
Description: To be documented


[Expand]
function RT2X00GetRTChip(RT2X00:PRT2X00WiFiDevice):Word;
Description: To be documented


[Expand]
procedure RT2X00SetRTChip(RT2X00:PRT2X00WiFiDevice; RTChip:Word);
Description: To be documented


[Expand]
function RT2X00GetRFChip(RT2X00:PRT2X00WiFiDevice):Word;
Description: To be documented


[Expand]
procedure RT2X00SetRFChip(RT2X00:PRT2X00WiFiDevice; RFChip:Word);
Description: To be documented


[Expand]
function RT2X00GetRevision(RT2X00:PRT2X00WiFiDevice):Word;
Description: To be documented


[Expand]
procedure RT2X00SetRevision(RT2X00:PRT2X00WiFiDevice; Revision:Word);
Description: To be documented


[Expand]
function RT2X00IsRTChipRevision(RT2X00:PRT2X00WiFiDevice; RTChip:Word; Revision:Word):Boolean;
Description: To be documented


[Expand]
function RT2X00IsRTChipRevisionLT(RT2X00:PRT2X00WiFiDevice; RTChip:Word; Revision:Word):Boolean;
Description: To be documented


[Expand]
function RT2X00IsRTChipRevisionGTE(RT2X00:PRT2X00WiFiDevice; RTChip:Word; Revision:Word):Boolean;
Description: To be documented


[Expand]
function RT2X00GetCapability(RT2X00:PRT2X00WiFiDevice; Capability:LongWord):Boolean;
Description: To be documented


[Expand]
procedure RT2X00SetCapability(RT2X00:PRT2X00WiFiDevice; Capability:LongWord);
Description: To be documented


[Expand]
procedure RT2X00ClearCapability(RT2X00:PRT2X00WiFiDevice; Capability:LongWord);
Description: To be documented


[Expand]
function RT2X00GetRequirement(RT2X00:PRT2X00WiFiDevice; Requirement:LongWord):Boolean;
Description: To be documented


[Expand]
procedure RT2X00SetRequirement(RT2X00:PRT2X00WiFiDevice; Requirement:LongWord);
Description: To be documented


[Expand]
procedure RT2X00ClearRequirement(RT2X00:PRT2X00WiFiDevice; Requirement:LongWord);
Description: To be documented


[Expand]
function RT2X00RFRead(RT2X00:PRT2X00WiFiDevice; Index:LongWord; Data:PLongWord):Boolean;
Description: To be documented


[Expand]
function RT2X00RFWrite(RT2X00:PRT2X00WiFiDevice; Index,Data:LongWord):Boolean;
Description: To be documented


[Expand]
function RT2X00GetEeprom8(RT2X00:PRT2X00WiFiDevice; Offset:Word):Byte;
Description: To be documented


[Expand]
function RT2X00GetEeprom16(RT2X00:PRT2X00WiFiDevice; Offset:Word):Word;
Description: To be documented


[Expand]
procedure RT2X00SetEeprom16(RT2X00:PRT2X00WiFiDevice; Offset,Value:Word);
Description: To be documented


[Expand]
function RT2X00GetEepromAddress(RT2X00:PRT2X00WiFiDevice; Offset:Word):Pointer;
Description: Return a pointer to the EEPROM value at Offset


[Expand]
function RT2X00GetRegister8(Reg,Mask,Shift:Byte):Byte; inline;
Description: Shift is the number of bits to shift the result right (SHR)


[Expand]
procedure RT2X00SetRegister8(var Reg:Byte; Mask,Shift,Value:Byte); inline;
Description: Shift is the number of bits to shift the value left (SHL)


[Expand]
function RT2X00GetRegister16(Reg,Mask,Shift:Word):Word; inline;
Description: Shift is the number of bits to shift the result right (SHR)


[Expand]
procedure RT2X00SetRegister16(var Reg:Word; Mask,Shift,Value:Word); inline;
Description: Shift is the number of bits to shift the value left (SHL)


[Expand]
function RT2X00GetRegister32(Reg,Mask,Shift:LongWord):LongWord; inline;
Description: Shift is the number of bits to shift the result right (SHR)


[Expand]
procedure RT2X00SetRegister32(var Reg:LongWord; Mask,Shift,Value:LongWord);
Description: Shift is the number of bits to shift the value left (SHL)


[Expand]
function RT2X00ReadDescriptor(Descriptor:PLongWord; Index:Byte):LongWord; inline;
Description: To be documented


[Expand]
procedure RT2X00WriteDescriptor(Descriptor:PLongWord; Index:Byte; Value:LongWord); inline;
Description: To be documented


[Expand]
function RT2X00GetRate(Value:Word):PRT2X00Rate; inline;
Description: To be documented


[Expand]
function RT2X00GetRateMCS(Value:Word):LongInt; inline;
Description: To be documented


[Expand]
function RT2X00GetTXBufferSize(RT2X00:PRT2X00WiFiDevice):LongWord;
Description: To be documented


[Expand]
function RT2X00GetTXBufferOffset(RT2X00:PRT2X00WiFiDevice):LongWord;
Description: To be documented


[Expand]
function RT2X00GetRXBufferSize(RT2X00:PRT2X00WiFiDevice):LongWord;
Description: To be documented


[Expand]
function RT2X00GetRXBufferOffset(RT2X00:PRT2X00WiFiDevice):LongWord;
Description: To be documented


[Expand]
function RT2X00InsertL2PAD(var Data:Pointer; var Size:LongWord; HeaderLength:LongWord):Boolean;
Description: To be documented


[Expand]
function RT2X00RemoveL2PAD(var Data:Pointer; var Size:LongWord; HeaderLength:LongWord):Boolean;
Description: To be documented


[Expand]
function RT2X00ReceiveReadSignal(RT2X00:PRT2X00WiFiDevice; Descriptor:PRT2X00RXDescriptor):LongWord;
Description: To be documented


[Expand]
function RT2X00ReceiveInsertIV(Descriptor:PRT2X00RXDescriptor; var Data:Pointer; var Size:LongWord; HeaderLength:LongWord):Boolean;
Description: To be documented


[Expand]
function RT2X00_RATE_MCS(Mode,MCS:Word):Word; inline;
Description: To be documented


[Expand]
function RT2X00_L2PAD_SIZE(HeaderLength:LongWord):LongWord; inline;
Description: To be documented


Return to Unit Reference