Difference between revisions of "Unit RT2800LIB"
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
---- | ---- | ||
− | '''Ralink RT2800 Wireless Driver | + | '''Ralink RT2800 Wireless Driver Library unit''' |
This unit provides functionality and definitions common to all implementations of the RT2800 chipset PCI, USB or other. | This unit provides functionality and definitions common to all implementations of the RT2800 chipset PCI, USB or other. | ||
Line 7,458: | Line 7,458: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,473: | Line 7,473: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,485: | Line 7,485: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,497: | Line 7,497: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,509: | Line 7,509: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,521: | Line 7,521: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_enable_radio | | rt2800_enable_radio | ||
|- | |- | ||
Line 7,533: | Line 7,533: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_disable_radio | | rt2800_disable_radio | ||
|- | |- | ||
Line 7,545: | Line 7,545: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,557: | Line 7,557: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,569: | Line 7,569: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,581: | Line 7,581: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,593: | Line 7,593: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,605: | Line 7,605: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,617: | Line 7,617: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,629: | Line 7,629: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,641: | Line 7,641: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,653: | Line 7,653: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,665: | Line 7,665: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,677: | Line 7,677: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,689: | Line 7,689: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,701: | Line 7,701: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,713: | Line 7,713: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,725: | Line 7,725: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,737: | Line 7,737: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,749: | Line 7,749: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,761: | Line 7,761: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,773: | Line 7,773: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,785: | Line 7,785: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,797: | Line 7,797: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,809: | Line 7,809: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,821: | Line 7,821: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,833: | Line 7,833: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,845: | Line 7,845: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,857: | Line 7,857: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,869: | Line 7,869: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,881: | Line 7,881: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,893: | Line 7,893: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,905: | Line 7,905: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,917: | Line 7,917: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 7,929: | Line 7,929: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| PCI(e) and MMIO devices require firmware with a length of 8kb. USB devices require firmware files with a length of 4kb. Certain USB chipsets however require different firmware, which Ralink only provides attached to the original firmware file. Thus for USB devices, firmware files have a length which is a multiple of 4kb. The firmware for rt3290 chip also have a length which is a multiple of 4kb. | | PCI(e) and MMIO devices require firmware with a length of 8kb. USB devices require firmware files with a length of 4kb. Certain USB chipsets however require different firmware, which Ralink only provides attached to the original firmware file. Thus for USB devices, firmware files have a length which is a multiple of 4kb. The firmware for rt3290 chip also have a length which is a multiple of 4kb. | ||
|- | |- | ||
Line 7,941: | Line 7,941: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_check_firmware_crc | | rt2800_check_firmware_crc | ||
|- | |- | ||
Line 7,953: | Line 7,953: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_load_firmware | | rt2800_load_firmware | ||
|- | |- | ||
Line 7,965: | Line 7,965: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config | | rt2800_config | ||
|- | |- | ||
Line 7,977: | Line 7,977: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_lna_gain | | rt2800_config_lna_gain | ||
|- | |- | ||
Line 7,989: | Line 7,989: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_channel | | rt2800_config_channel | ||
|- | |- | ||
Line 8,001: | Line 8,001: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_channel_rf2xxx | | rt2800_config_channel_rf2xxx | ||
|- | |- | ||
Line 8,013: | Line 8,013: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_channel_rf3xxx | | rt2800_config_channel_rf3xxx | ||
|- | |- | ||
Line 8,025: | Line 8,025: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_channel_rf3052 | | rt2800_config_channel_rf3052 | ||
|- | |- | ||
Line 8,037: | Line 8,037: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_channel_rf3053 | | rt2800_config_channel_rf3053 | ||
|- | |- | ||
Line 8,049: | Line 8,049: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_channel_rf3290 | | rt2800_config_channel_rf3290 | ||
|- | |- | ||
Line 8,061: | Line 8,061: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_channel_rf3322 | | rt2800_config_channel_rf3322 | ||
|- | |- | ||
Line 8,073: | Line 8,073: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_channel_rf53xx | | rt2800_config_channel_rf53xx | ||
|- | |- | ||
Line 8,085: | Line 8,085: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_channel_rf55xx | | rt2800_config_channel_rf55xx | ||
|- | |- | ||
Line 8,097: | Line 8,097: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_txpower | | rt2800_config_txpower | ||
|- | |- | ||
Line 8,109: | Line 8,109: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| We configure transmit power using MAC TX_PWR_CFG_(0,...,N) registers and BBP R1 register. TX_PWR_CFG_X allow to configure per rate TX power values, 4 bits for each rate (tune from 0 to 15 dBm). BBP_R1 controls transmit power for all rates, but allow to set only 4 discrete values: -12, -6, 0 and 6 dBm. Reference per rate transmit power values are located in the EEPROM at EEPROM_TXPOWER_BYRATE offset. We adjust them and BBP R1 settings according to current conditions (i.e. band, bandwidth, temperature, user settings). | | We configure transmit power using MAC TX_PWR_CFG_(0,...,N) registers and BBP R1 register. TX_PWR_CFG_X allow to configure per rate TX power values, 4 bits for each rate (tune from 0 to 15 dBm). BBP_R1 controls transmit power for all rates, but allow to set only 4 discrete values: -12, -6, 0 and 6 dBm. Reference per rate transmit power values are located in the EEPROM at EEPROM_TXPOWER_BYRATE offset. We adjust them and BBP R1 settings according to current conditions (i.e. band, bandwidth, temperature, user settings). | ||
Note: rt2800_config_txpower_rt28xx | Note: rt2800_config_txpower_rt28xx | ||
Line 8,122: | Line 8,122: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_txpower_rt3593 | | rt2800_config_txpower_rt3593 | ||
|- | |- | ||
Line 8,134: | Line 8,134: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_retry_limit | | rt2800_config_retry_limit | ||
|- | |- | ||
Line 8,146: | Line 8,146: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_ps | | rt2800_config_ps | ||
|- | |- | ||
Line 8,158: | Line 8,158: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_filter | | rt2800_config_filter | ||
|- | |- | ||
Line 8,170: | Line 8,170: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_config_ant | | rt2800_config_ant | ||
|- | |- | ||
Line 8,182: | Line 8,182: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,194: | Line 8,194: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,206: | Line 8,206: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,218: | Line 8,218: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,230: | Line 8,230: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,242: | Line 8,242: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_iq_calibrate | | rt2800_iq_calibrate | ||
|- | |- | ||
Line 8,254: | Line 8,254: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_adjust_freq_offset | | rt2800_adjust_freq_offset | ||
|- | |- | ||
Line 8,266: | Line 8,266: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,278: | Line 8,278: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,290: | Line 8,290: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_wait_bbp_ready | | rt2800_wait_bbp_ready | ||
|- | |- | ||
Line 8,302: | Line 8,302: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,314: | Line 8,314: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,326: | Line 8,326: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,338: | Line 8,338: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,350: | Line 8,350: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,362: | Line 8,362: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,374: | Line 8,374: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_bbp_read | | rt2800_bbp_read | ||
|- | |- | ||
Line 8,386: | Line 8,386: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| RT2800BBPWrite | | RT2800BBPWrite | ||
|- | |- | ||
Line 8,398: | Line 8,398: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| RT2800BBPWrite_with_rx_chain | | RT2800BBPWrite_with_rx_chain | ||
|- | |- | ||
Line 8,410: | Line 8,410: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,422: | Line 8,422: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,434: | Line 8,434: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,446: | Line 8,446: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,461: | Line 8,461: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,473: | Line 8,473: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,485: | Line 8,485: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,497: | Line 8,497: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,509: | Line 8,509: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,521: | Line 8,521: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,533: | Line 8,533: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,545: | Line 8,545: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,557: | Line 8,557: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,569: | Line 8,569: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,581: | Line 8,581: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,593: | Line 8,593: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_eeprom_read | | rt2800_eeprom_read | ||
|- | |- | ||
Line 8,605: | Line 8,605: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,617: | Line 8,617: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,629: | Line 8,629: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,641: | Line 8,641: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,653: | Line 8,653: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,665: | Line 8,665: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,677: | Line 8,677: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,689: | Line 8,689: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,701: | Line 8,701: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_get_txpower_reg_delta | | rt2800_get_txpower_reg_delta | ||
|- | |- | ||
Line 8,713: | Line 8,713: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_get_txpower_bw_comp | | rt2800_get_txpower_bw_comp | ||
|- | |- | ||
Line 8,725: | Line 8,725: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_get_gain_calibration_delta | | rt2800_get_gain_calibration_delta | ||
|- | |- | ||
Line 8,737: | Line 8,737: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_compensate_txpower | | rt2800_compensate_txpower | ||
|- | |- | ||
Line 8,749: | Line 8,749: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,761: | Line 8,761: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| rt2800_process_rxwi | | rt2800_process_rxwi | ||
|- | |- | ||
Line 8,773: | Line 8,773: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,785: | Line 8,785: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,797: | Line 8,797: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,809: | Line 8,809: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,821: | Line 8,821: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,833: | Line 8,833: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,845: | Line 8,845: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- | ||
Line 8,857: | Line 8,857: | ||
{| class="wikitable" style="font-size: 14px; background: white;" | {| class="wikitable" style="font-size: 14px; background: white;" | ||
|- | |- | ||
− | ! | + | ! Note |
| None documented | | None documented | ||
|- | |- |
Latest revision as of 05:48, 31 August 2021
Return to Unit Reference
Description
Ralink RT2800 Wireless Driver Library unit
This unit provides functionality and definitions common to all implementations of the RT2800 chipset PCI, USB or other.
Constants
RT2800_RF*
RT2800_RF2820 = $0001;
|
RF2820 2.4G 2T3R |
RT2800_RF2850 = $0002;
|
RF2850 2.4G/5G 2T3R |
RT2800_RF2720 = $0003;
|
RF2720 2.4G 1T2R |
RT2800_RF2750 = $0004;
|
RF2750 2.4G/5G 1T2R |
RT2800_RF3020 = $0005;
|
RF3020 2.4G 1T1R |
RT2800_RF2020 = $0006;
|
RF2020 2.4G B/G |
RT2800_RF3021 = $0007;
|
RF3021 2.4G 1T2R |
RT2800_RF3022 = $0008;
|
RF3022 2.4G 2T2R |
RT2800_RF3052 = $0009;
|
RF3052 2.4G/5G 2T2R |
RT2800_RF2853 = $000a;
|
RF2853 2.4G/5G 3T3R |
RT2800_RF3320 = $000b;
|
RF3320 2.4G 1T1R(RT3350/RT3370/RT3390) |
RT2800_RF3322 = $000c;
|
RF3322 2.4G 2T2R(RT3352/RT3371/RT3372/RT3391/RT3392) |
RT2800_RF3053 = $000d;
|
RF3053 2.4G/5G 3T3R(RT3883/RT3563/RT3573/RT3593/RT3662) |
RT2800_RF5592 = $000f;
|
RF5592 2.4G/5G 2T2R |
RT2800_RF3070 = $3070;
|
RF3070 2.4G 1T1R |
RT2800_RF3290 = $3290;
|
|
RT2800_RF5360 = $5360;
|
RF5360 2.4G 1T1R |
RT2800_RF5362 = $5362;
|
RF5362 2.4G 1T1R |
RT2800_RF5370 = $5370;
|
RF5370 2.4G 1T1R |
RT2800_RF5372 = $5372;
|
|
RT2800_RF5390 = $5390;
|
RF5390 2.4G 1T1R |
RT2800_RF5392 = $5392;
|
RT2800_REV_*
RT2800_REV_RT2860C = $0100;
|
|
RT2800_REV_RT2860D = $0101;
|
|
RT2800_REV_RT2872E = $0200;
|
|
RT2800_REV_RT3070E = $0200;
|
|
RT2800_REV_RT3070F = $0201;
|
|
RT2800_REV_RT3071E = $0211;
|
|
RT2800_REV_RT3090E = $0211;
|
|
RT2800_REV_RT3390E = $0211;
|
|
RT2800_REV_RT3593E = $0211;
|
|
RT2800_REV_RT5390F = $0502;
|
|
RT2800_REV_RT5390R = $1502;
|
|
RT2800_REV_RT5592C = $0221;
|
RT2800_*_BASE
RT2800_CSR_BASE = $1000;
|
|
RT2800_CSR_SIZE = $0800;
|
|
RT2800_EEPROM_BASE = $0000;
|
|
RT2800_EEPROM_SIZE = $0200;
|
|
RT2800_BBP_BASE = $0000;
|
|
RT2800_BBP_SIZE = $00ff;
|
|
RT2800_RF_BASE = $0004;
|
|
RT2800_RF_SIZE = $0010;
|
|
RT2800_RFCSR_BASE = $0000;
|
|
RT2800_RFCSR_SIZE = $0040;
|
RT2800_MAC_*
MAC_CSR0_3290 (MAC_CSR0 for RT3290 to identity MAC version number) | |
RT2800_MAC_CSR0_3290 = $0000;
|
RT2800_E2PROM_CSR*
E2PROM_CSR (PCI EEPROM control register) | |
RT2800_E2PROM_CSR = $0004;
|
|
RT2800_E2PROM_CSR_DATA_CLOCK = $00000001;
|
|
RT2800_E2PROM_CSR_CHIP_SELECT = $00000002;
|
|
RT2800_E2PROM_CSR_DATA_IN = $00000004;
|
|
RT2800_E2PROM_CSR_DATA_OUT = $00000008;
|
|
RT2800_E2PROM_CSR_TYPE = $00000030;
|
0 = 93c46, 1 = 93c66 |
RT2800_E2PROM_CSR_LOAD_STATUS = $00000040;
|
1 = loading, 0 = done |
RT2800_E2PROM_CSR_RELOAD = $00000080;
|
Write 1 to reload eeprom content |
RT2800_CMB_CTRL*
RT2800_CMB_CTRL = $0020;
|
RT2800_AUX_OPT_*
RT2800_AUX_OPT_BIT0 = $00000001;
|
|
RT2800_AUX_OPT_BIT1 = $00000002;
|
|
RT2800_AUX_OPT_BIT2 = $00000004;
|
|
RT2800_AUX_OPT_BIT3 = $00000008;
|
|
RT2800_AUX_OPT_BIT4 = $00000010;
|
|
RT2800_AUX_OPT_BIT5 = $00000020;
|
|
RT2800_AUX_OPT_BIT6 = $00000040;
|
|
RT2800_AUX_OPT_BIT7 = $00000080;
|
|
RT2800_AUX_OPT_BIT8 = $00000100;
|
|
RT2800_AUX_OPT_BIT9 = $00000200;
|
|
RT2800_AUX_OPT_BIT10 = $00000400;
|
|
RT2800_AUX_OPT_BIT11 = $00000800;
|
|
RT2800_AUX_OPT_BIT12 = $00001000;
|
|
RT2800_AUX_OPT_BIT13 = $00002000;
|
|
RT2800_AUX_OPT_BIT14 = $00004000;
|
|
RT2800_AUX_OPT_BIT15 = $00008000;
|
|
RT2800_LDO25_LEVEL = $00030000;
|
|
RT2800_LDO25_LARGEA = $00040000;
|
|
RT2800_LDO25_FRC_ON = $00080000;
|
|
RT2800_CMB_RSV = $00300000;
|
|
RT2800_XTAL_RDY = $00400000;
|
|
RT2800_PLL_LD = $00800000;
|
|
RT2800_LDO_CORE_LEVEL = $0F000000;
|
|
RT2800_LDO_BGSEL = $30000000;
|
|
RT2800_LDO3_EN = $40000000;
|
|
RT2800_LDO0_EN = $80000000;
|
RT2800_EFUSE_CTRL_*
EFUSE_CSR_3290 (RT3290 EEPROM) | |
RT2800_EFUSE_CTRL_3290 = $0024;
|
|
EFUSE_DATA3 of 3290 | |
RT2800_EFUSE_DATA3_3290 = $0028;
|
|
EFUSE_DATA2 of 3290 | |
RT2800_EFUSE_DATA2_3290 = $002c;
|
|
EFUSE_DATA1 of 3290 | |
RT2800_EFUSE_DATA1_3290 = $0030;
|
|
EFUSE_DATA0 of 3290 | |
RT2800_EFUSE_DATA0_3290 = $0034;
|
RT2800_OSC_CTRL*
OSC_CTRL_CFG (Ring oscillator configuration) | |
RT2800_OSC_CTRL = $0038;
|
|
RT2800_OSC_REF_CYCLE = $00001fff;
|
|
RT2800_OSC_RSV = $0000e000;
|
|
RT2800_OSC_CAL_CNT = $0fff0000;
|
|
RT2800_OSC_CAL_ACK = $10000000;
|
|
RT2800_OSC_CLK_32K_VLD = $20000000;
|
|
RT2800_OSC_CAL_REQ = $40000000;
|
|
RT2800_OSC_ROSC_EN = $80000000;
|
RT2800_COEX_CFG*
COEX_CFG_0 | |
RT2800_COEX_CFG0 = $0040;
|
|
RT2800_COEX_CFG_ANT = $ff000000;
|
|
COEX_CFG_1 | |
RT2800_COEX_CFG1 = $0044;
|
|
COEX_CFG_2 | |
RT2800_COEX_CFG2 = $0048;
|
|
RT2800_BT_COEX_CFG1 = $ff000000;
|
|
RT2800_BT_COEX_CFG0 = $00ff0000;
|
|
RT2800_WL_COEX_CFG1 = $0000ff00;
|
|
RT2800_WL_COEX_CFG0 = $000000ff;
|
RT2800_PLL_CTRL*
RT2800_PLL_CTRL = $0050;
|
|
RT2800_PLL_RESERVED_INPUT1 = $000000ff;
|
|
RT2800_PLL_RESERVED_INPUT2 = $0000ff00;
|
|
RT2800_PLL_CONTROL = $00070000;
|
|
RT2800_PLL_LPF_R1 = $00080000;
|
|
RT2800_PLL_LPF_C1_CTRL = $00300000;
|
|
RT2800_PLL_LPF_C2_CTRL = $00c00000;
|
|
RT2800_PLL_CP_CURRENT_CTRL = $03000000;
|
|
RT2800_PLL_PFD_DELAY_CTRL = $0c000000;
|
|
RT2800_PLL_LOCK_CTRL = $70000000;
|
|
RT2800_PLL_VBGBK_EN = $80000000;
|
RT2800_WLAN_*
WLAN_CTRL_CFG (RT3290 wlan configuration) | |
RT2800_WLAN_FUN_CTRL = $0080;
|
|
RT2800_WLAN_EN = $00000001;
|
|
RT2800_WLAN_CLK_EN = $00000002;
|
|
RT2800_WLAN_RSV1 = $00000004;
|
|
RT2800_WLAN_RESET = $00000008;
|
|
RT2800_PCIE_APP0_CLK_REQ = $00000010;
|
|
RT2800_FRC_WL_ANT_SET = $00000020;
|
|
RT2800_INV_TR_SW0 = $00000040;
|
|
RT2800_WLAN_GPIO_IN_BIT0 = $00000100;
|
|
RT2800_WLAN_GPIO_IN_BIT1 = $00000200;
|
|
RT2800_WLAN_GPIO_IN_BIT2 = $00000400;
|
|
RT2800_WLAN_GPIO_IN_BIT3 = $00000800;
|
|
RT2800_WLAN_GPIO_IN_BIT4 = $00001000;
|
|
RT2800_WLAN_GPIO_IN_BIT5 = $00002000;
|
|
RT2800_WLAN_GPIO_IN_BIT6 = $00004000;
|
|
RT2800_WLAN_GPIO_IN_BIT7 = $00008000;
|
|
RT2800_WLAN_GPIO_IN_BIT_ALL = $0000ff00;
|
|
RT2800_WLAN_GPIO_OUT_BIT0 = $00010000;
|
|
RT2800_WLAN_GPIO_OUT_BIT1 = $00020000;
|
|
RT2800_WLAN_GPIO_OUT_BIT2 = $00040000;
|
|
RT2800_WLAN_GPIO_OUT_BIT3 = $00050000;
|
|
RT2800_WLAN_GPIO_OUT_BIT4 = $00100000;
|
|
RT2800_WLAN_GPIO_OUT_BIT5 = $00200000;
|
|
RT2800_WLAN_GPIO_OUT_BIT5 = $00200000;
|
|
RT2800_WLAN_GPIO_OUT_BIT6 = $00400000;
|
|
RT2800_WLAN_GPIO_OUT_BIT7 = $00800000;
|
|
RT2800_WLAN_GPIO_OUT_BIT_ALL = $00ff0000;
|
|
RT2800_WLAN_GPIO_OUT_OE_BIT0 = $01000000;
|
|
RT2800_WLAN_GPIO_OUT_OE_BIT1 = $02000000;
|
|
RT2800_WLAN_GPIO_OUT_OE_BIT2 = $04000000;
|
|
RT2800_WLAN_GPIO_OUT_OE_BIT3 = $08000000;
|
|
RT2800_WLAN_GPIO_OUT_OE_BIT4 = $10000000;
|
|
RT2800_WLAN_GPIO_OUT_OE_BIT5 = $20000000;
|
|
RT2800_WLAN_GPIO_OUT_OE_BIT6 = $40000000;
|
|
RT2800_WLAN_GPIO_OUT_OE_BIT7 = $80000000;
|
|
RT2800_WLAN_GPIO_OUT_OE_BIT_ALL = $ff000000;
|
RT2800_AUX_CTRL*
AUX_CTRL (Aux/PCI-E related configuration) | |
RT2800_AUX_CTRL = $010c;
|
|
RT2800_AUX_CTRL_WAKE_PCIE_EN = $00000002;
|
|
RT2800_AUX_CTRL_FORCE_PCIE_CLK = $00000400;
|
RT2800_OPT_14_*
OPT_14 (Unknown register used by rt3xxx devices) | |
RT2800_OPT_14_CSR = $0114;
|
|
RT2800_OPT_14_CSR_BIT0 = $00000001;
|
RT2800_INT_SOURCE_*
INT_SOURCE_CSR (Interrupt source register)
Note: Write one to clear corresponding bit | |
RT2800_INT_SOURCE_CSR = $0200;
|
|
RT2800_INT_SOURCE_CSR_RXDELAYINT = $00000001;
|
|
RT2800_INT_SOURCE_CSR_TXDELAYINT = $00000002;
|
|
RT2800_INT_SOURCE_CSR_RX_DONE = $00000004;
|
|
RT2800_INT_SOURCE_CSR_AC0_DMA_DONE = $00000008;
|
|
RT2800_INT_SOURCE_CSR_AC1_DMA_DONE = $00000010;
|
|
RT2800_INT_SOURCE_CSR_AC2_DMA_DONE = $00000020;
|
|
RT2800_INT_SOURCE_CSR_AC3_DMA_DONE = $00000040;
|
|
RT2800_INT_SOURCE_CSR_HCCA_DMA_DONE = $00000080;
|
|
RT2800_INT_SOURCE_CSR_MGMT_DMA_DONE = $00000100;
|
|
RT2800_INT_SOURCE_CSR_MCU_COMMAND = $00000200;
|
|
RT2800_INT_SOURCE_CSR_RXTX_COHERENT = $00000400;
|
|
RT2800_INT_SOURCE_CSR_TBTT = $00000800;
|
|
RT2800_INT_SOURCE_CSR_PRE_TBTT = $00001000;
|
|
RT2800_INT_SOURCE_CSR_TX_FIFO_STATUS = $00002000;
|
FIFO Statistics is full, should read TX_STA_FIFO |
RT2800_INT_SOURCE_CSR_AUTO_WAKEUP = $00004000;
|
|
RT2800_INT_SOURCE_CSR_GPTIMER = $00008000;
|
|
RT2800_INT_SOURCE_CSR_RX_COHERENT = $00010000;
|
|
RT2800_INT_SOURCE_CSR_TX_COHERENT = $00020000;
|
RT2800_INT_MASK_*
INT_MASK_CSR (Interrupt MASK register)
Note: 1 = the interrupt is mask OFF | |
RT2800_INT_MASK_CSR = $0204;
|
|
RT2800_INT_MASK_CSR_RXDELAYINT = $00000001;
|
|
RT2800_INT_MASK_CSR_TXDELAYINT = $00000002;
|
|
RT2800_INT_MASK_CSR_RX_DONE = $00000004;
|
|
RT2800_INT_MASK_CSR_AC0_DMA_DONE = $00000008;
|
|
RT2800_INT_MASK_CSR_AC1_DMA_DONE = $00000010;
|
|
RT2800_INT_MASK_CSR_AC2_DMA_DONE = $00000020;
|
|
RT2800_INT_MASK_CSR_AC3_DMA_DONE = $00000040;
|
|
RT2800_INT_MASK_CSR_HCCA_DMA_DONE = $00000080;
|
|
RT2800_INT_MASK_CSR_MGMT_DMA_DONE = $00000100;
|
|
RT2800_INT_MASK_CSR_MCU_COMMAND = $00000200;
|
|
RT2800_INT_MASK_CSR_RXTX_COHERENT = $00000400;
|
|
RT2800_INT_MASK_CSR_TBTT = $00000800;
|
|
RT2800_INT_MASK_CSR_PRE_TBTT = $00001000;
|
|
RT2800_INT_MASK_CSR_TX_FIFO_STATUS = $00002000;
|
|
RT2800_INT_MASK_CSR_AUTO_WAKEUP = $00004000;
|
|
RT2800_INT_MASK_CSR_GPTIMER = $00008000;
|
|
RT2800_INT_MASK_CSR_RX_COHERENT = $00010000;
|
|
RT2800_INT_MASK_CSR_TX_COHERENT = $00020000;
|
RT2800_WPDMA_GLO_CFG*
RT2800_WPDMA_GLO_CFG = $0208;
|
|
RT2800_WPDMA_GLO_CFG_ENABLE_TX_DMA = $00000001;
|
|
RT2800_WPDMA_GLO_CFG_TX_DMA_BUSY = $00000002;
|
|
RT2800_WPDMA_GLO_CFG_ENABLE_RX_DMA = $00000004;
|
|
RT2800_WPDMA_GLO_CFG_RX_DMA_BUSY = $00000008;
|
|
RT2800_WPDMA_GLO_CFG_WP_DMA_BURST_SIZE = $00000030;
|
|
RT2800_WPDMA_GLO_CFG_TX_WRITEBACK_DONE = $00000040;
|
|
RT2800_WPDMA_GLO_CFG_BIG_ENDIAN = $00000080;
|
|
RT2800_WPDMA_GLO_CFG_RX_HDR_SCATTER = $0000ff00;
|
|
RT2800_WPDMA_GLO_CFG_HDR_SEG_LEN = $ffff0000;
|
RT2800_WPDMA_RST_IDX*
RT2800_WPDMA_RST_IDX = $020c;
|
|
RT2800_WPDMA_RST_IDX_DTX_IDX0 = $00000001;
|
|
RT2800_WPDMA_RST_IDX_DTX_IDX1 = $00000002;
|
|
RT2800_WPDMA_RST_IDX_DTX_IDX2 = $00000004;
|
|
RT2800_WPDMA_RST_IDX_DTX_IDX3 = $00000008;
|
|
RT2800_WPDMA_RST_IDX_DTX_IDX4 = $00000010;
|
|
RT2800_WPDMA_RST_IDX_DTX_IDX5 = $00000020;
|
|
RT2800_WPDMA_RST_IDX_DRX_IDX0 = $00010000;
|
RT2800_DELAY_INT_CFG*
RT2800_DELAY_INT_CFG = $0210;
|
|
RT2800_DELAY_INT_CFG_RXMAX_PTIME = $000000ff;
|
|
RT2800_DELAY_INT_CFG_RXMAX_PINT = $00007f00;
|
|
RT2800_DELAY_INT_CFG_RXDLY_INT_EN = $00008000;
|
|
RT2800_DELAY_INT_CFG_TXMAX_PTIME = $00ff0000;
|
|
RT2800_DELAY_INT_CFG_TXMAX_PINT = $7f000000;
|
|
RT2800_DELAY_INT_CFG_TXDLY_INT_EN = $80000000;
|
RT2800_WMM_AIFSN_CFG*
WMM_AIFSN_CFG (Aifsn for each EDCA AC) | |
RT2800_WMM_AIFSN_CFG = $0214;
|
|
RT2800_WMM_AIFSN_CFG_AIFSN0 = $0000000f;
|
AIFSN0: AC_VO |
RT2800_WMM_AIFSN_CFG_AIFSN1 = $000000f0;
|
AIFSN1: AC_VI |
RT2800_WMM_AIFSN_CFG_AIFSN2 = $00000f00;
|
AIFSN2: AC_BE |
RT2800_WMM_AIFSN_CFG_AIFSN3 = $0000f000;
|
AIFSN3: AC_BK |
RT2800_WMM_CWMIN_CFG*
WMM_CWMIN_CSR (CWmin for each EDCA AC) | |
RT2800_WMM_CWMIN_CFG = $0218;
|
|
RT2800_WMM_CWMIN_CFG_CWMIN0 = $0000000f;
|
CWMIN0: AC_VO |
RT2800_WMM_CWMIN_CFG_CWMIN1 = $000000f0;
|
CWMIN1: AC_VI |
RT2800_WMM_CWMIN_CFG_CWMIN2 = $00000f00;
|
CWMIN2: AC_BE |
RT2800_WMM_CWMIN_CFG_CWMIN3 = $0000f000;
|
CWMIN3: AC_BK |
RT2800_WMM_CWMAX_CFG*
WMM_CWMAX_CSR (CWmax for each EDCA AC) | |
RT2800_WMM_CWMAX_CFG = $021c;
|
|
RT2800_WMM_CWMAX_CFG_CWMAX0 = $0000000f;
|
CWMAX0: AC_VO |
RT2800_WMM_CWMAX_CFG_CWMAX1 = $000000f0;
|
CWMAX1: AC_VI |
RT2800_WMM_CWMAX_CFG_CWMAX2 = $00000f00;
|
CWMAX2: AC_BE |
RT2800_WMM_CWMAX_CFG_CWMAX3 = $0000f000;
|
CWMAX3: AC_BK |
RT2800_WMM_TXOP*
AC_TXOP0 (AC_VO/AC_VI TXOP register) | |
RT2800_WMM_TXOP0_CFG = $0220;
|
|
RT2800_WMM_TXOP0_CFG_AC0TXOP = $0000ffff;
|
AC0TXOP: AC_VO in unit of 32us |
RT2800_WMM_TXOP0_CFG_AC1TXOP = $ffff0000;
|
AC1TXOP: AC_VI in unit of 32us |
AC_TXOP1 (AC_BE/AC_BK TXOP register) | |
RT2800_WMM_TXOP1_CFG = $0224;
|
|
RT2800_WMM_TXOP1_CFG_AC2TXOP = $0000ffff;
|
AC2TXOP: AC_BE in unit of 32us |
RT2800_WMM_TXOP1_CFG_AC3TXOP = $ffff0000;
|
AC3TXOP: AC_BK in unit of 32us |
RT2800_GPIO_CTRL*
RT2800_GPIO_CTRL = $0228;
|
|
RT2800_GPIO_CTRL_VAL0 = $00000001;
|
GPIO_CTRL_VALx: GPIO value |
RT2800_GPIO_CTRL_VAL1 = $00000002;
|
|
RT2800_GPIO_CTRL_VAL2 = $00000004;
|
|
RT2800_GPIO_CTRL_VAL3 = $00000008;
|
|
RT2800_GPIO_CTRL_VAL4 = $00000010;
|
|
RT2800_GPIO_CTRL_VAL5 = $00000020;
|
|
RT2800_GPIO_CTRL_VAL6 = $00000040;
|
|
RT2800_GPIO_CTRL_VAL7 = $00000080;
|
|
RT2800_GPIO_CTRL_DIR0 = $00000100;
|
GPIO_CTRL_DIRx: GPIO direction: 0 = output, 1 = input |
RT2800_GPIO_CTRL_DIR1 = $00000200;
|
|
RT2800_GPIO_CTRL_DIR2 = $00000400;
|
|
RT2800_GPIO_CTRL_DIR3 = $00000800;
|
|
RT2800_GPIO_CTRL_DIR4 = $00001000;
|
|
RT2800_GPIO_CTRL_DIR5 = $00002000;
|
|
RT2800_GPIO_CTRL_DIR6 = $00004000;
|
|
RT2800_GPIO_CTRL_DIR7 = $00008000;
|
|
RT2800_GPIO_CTRL_VAL8 = $00010000;
|
|
RT2800_GPIO_CTRL_VAL9 = $00020000;
|
|
RT2800_GPIO_CTRL_VAL10 = $00040000;
|
|
RT2800_GPIO_CTRL_DIR8 = $01000000;
|
|
RT2800_GPIO_CTRL_DIR9 = $02000000;
|
|
RT2800_GPIO_CTRL_DIR10 = $04000000;
|
RT2800_MCU_CMD_CFG*
RT2800_MCU_CMD_CFG = $022c;
|
RT2800_*_BASE_PTR*
AC_VO register offsets | |
RT2800_TX_BASE_PTR0 = $0230;
|
|
RT2800_TX_MAX_CNT0 = $0234;
|
|
RT2800_TX_CTX_IDX0 = $0238;
|
|
RT2800_TX_DTX_IDX0 = $023c;
|
|
AC_VI register offsets | |
RT2800_TX_BASE_PTR1 = $0240;
|
|
RT2800_TX_MAX_CNT1 = $0244;
|
|
RT2800_TX_CTX_IDX1 = $0248;
|
|
RT2800_TX_DTX_IDX1 = $024c;
|
|
AC_BE register offsets | |
RT2800_TX_BASE_PTR2 = $0250;
|
|
RT2800_TX_MAX_CNT2 = $0254;
|
|
RT2800_TX_CTX_IDX2 = $0258;
|
|
RT2800_TX_DTX_IDX2 = $025c;
|
|
AC_BK register offsets | |
RT2800_TX_BASE_PTR3 = $0260;
|
|
RT2800_TX_MAX_CNT3 = $0264;
|
|
RT2800_TX_CTX_IDX3 = $0268;
|
|
RT2800_TX_DTX_IDX3 = $026c;
|
|
HCCA register offsets | |
RT2800_TX_BASE_PTR4 = $0270;
|
|
RT2800_TX_MAX_CNT4 = $0274;
|
|
RT2800_TX_CTX_IDX4 = $0278;
|
|
RT2800_TX_DTX_IDX4 = $027c;
|
|
MGMT register offsets | |
RT2800_TX_BASE_PTR5 = $0280;
|
|
RT2800_TX_MAX_CNT5 = $0284;
|
|
RT2800_TX_CTX_IDX5 = $0288;
|
|
RT2800_TX_DTX_IDX5 = $028c;
|
|
RX register offsets | |
RT2800_RX_BASE_PTR = $0290;
|
|
RT2800_RX_MAX_CNT = $0294;
|
|
RT2800_RX_CRX_IDX = $0298;
|
|
RT2800_RX_DRX_IDX = $029c;
|
RT2800_USB_DMA_*
RT2800_USB_DMA_CFG = $02a0;
|
|
RT2800_USB_DMA_CFG_RX_BULK_AGG_TIMEOUT = $000000ff;
|
RX_BULK_AGG_TIMEOUT: Rx Bulk Aggregation TimeOut in unit of 33ns |
RT2800_USB_DMA_CFG_RX_BULK_AGG_LIMIT = $0000ff00;
|
RX_BULK_AGG_LIMIT: Rx Bulk Aggregation Limit in unit of 256 bytes |
RT2800_USB_DMA_CFG_PHY_CLEAR = $00010000;
|
PHY_CLEAR: phy watch dog enable |
RT2800_USB_DMA_CFG_TX_CLEAR = $00080000;
|
TX_CLEAR: Clear USB DMA TX path |
RT2800_USB_DMA_CFG_TXOP_HALT = $00100000;
|
TXOP_HALT: Halt TXOP count down when TX buffer is full |
RT2800_USB_DMA_CFG_RX_BULK_AGG_EN = $00200000;
|
RX_BULK_AGG_EN: Enable Rx Bulk Aggregation |
RT2800_USB_DMA_CFG_RX_BULK_EN = $00400000;
|
RX_BULK_EN: Enable USB DMA Rx |
RT2800_USB_DMA_CFG_TX_BULK_EN = $00800000;
|
TX_BULK_EN: Enable USB DMA Tx |
RT2800_USB_DMA_CFG_EP_OUT_VALID = $3f000000;
|
EP_OUT_VALID: OUT endpoint data valid |
RT2800_USB_DMA_CFG_RX_BUSY = $40000000;
|
RX_BUSY: USB DMA RX FSM busy |
RT2800_USB_DMA_CFG_TX_BUSY = $80000000;
|
TX_BUSY: USB DMA TX FSM busy |
RT2800_*_CYC_CNT*
RT2800_US_CYC_CNT = $02a4;
|
|
RT2800_US_CYC_CNT_BT_MODE_EN = $00000100;
|
BT_MODE_EN: Bluetooth mode enable |
RT2800_US_CYC_CNT_CLOCK_CYCLE = $000000ff;
|
CLOCK CYCLE: Clock cycle count in 1us (PCI:0x21, PCIE:0x7d, USB:0x1e) |
RT2800_PBF_SYS_CTRL*
RT2800_PBF_SYS_CTRL = $0400;
|
|
RT2800_PBF_SYS_CTRL_READY = $00000080;
|
|
RT2800_PBF_SYS_CTRL_HOST_RAM_WRITE = $00010000;
|
HOST_RAM_WRITE: enable Host program ram write selection |
RT2800_HOST_CMD_*
RT2800_HOST_CMD_CSR = $0404;
|
|
RT2800_HOST_CMD_CSR_HOST_COMMAND = $000000ff;
|
RT2800_PBF_*
Note: Most are for debug. Driver doesn't touch PBF register. | |
RT2800_PBF_CFG = $0408;
|
|
RT2800_PBF_MAX_PCNT = $040c;
|
|
RT2800_PBF_CTRL = $0410;
|
|
RT2800_PBF_INT_STA = $0414;
|
|
RT2800_PBF_INT_ENA = $0418;
|
|
RT2800_PBF_DBG = $043c;
|
RT2800_BCN_OFFSET*
BCN_OFFSET0 | |
RT2800_BCN_OFFSET0 = $042c;
|
|
RT2800_BCN_OFFSET0_BCN0 = $000000ff;
|
|
RT2800_BCN_OFFSET0_BCN1 = $0000ff00;
|
|
RT2800_BCN_OFFSET0_BCN2 = $00ff0000;
|
|
RT2800_BCN_OFFSET0_BCN3 = $ff000000;
|
|
BCN_OFFSET1 | |
RT2800_BCN_OFFSET1 = $0430;
|
|
RT2800_BCN_OFFSET1_BCN4 = $000000ff;
|
|
RT2800_BCN_OFFSET1_BCN5 = $0000ff00;
|
|
RT2800_BCN_OFFSET1_BCN6 = $00ff0000;
|
|
RT2800_BCN_OFFSET1_BCN7 = $ff000000;
|
RT2800_*_PCNT*
RT2800_TXRXQ_PCNT = $0438;
|
|
RT2800_TXRXQ_PCNT_TX0Q = $000000ff;
|
PCNT_TX0Q: Page count for TX hardware queue 0 |
RT2800_TXRXQ_PCNT_TX1Q = $0000ff00;
|
PCNT_TX1Q: Page count for TX hardware queue 1 |
RT2800_TXRXQ_PCNT_TX2Q = $00ff0000;
|
PCNT_TX2Q: Page count for TX hardware queue 2 |
RT2800_TXRXQ_PCNT_RX0Q = $ff000000;
|
PCNT_RX0Q: Page count for RX hardware queue |
RT2800_RF_CSR_CFG*
RT2800_RF_CSR_CFG = $0500;
|
|
RT2800_RF_CSR_CFG_DATA = $000000ff;
|
|
RT2800_RF_CSR_CFG_REGNUM = $00003f00;
|
|
RT2800_RF_CSR_CFG_WRITE = $00010000;
|
|
RT2800_RF_CSR_CFG_BUSY = $00020000;
|
RT2800_EFUSE_CTRL*
EFUSE_CSR (RT30x0 EEPROM) | |
RT2800_EFUSE_CTRL = $0580;
|
|
RT2800_EFUSE_CTRL_ADDRESS_IN = $03fe0000;
|
|
RT2800_EFUSE_CTRL_MODE = $000000c0;
|
|
RT2800_EFUSE_CTRL_KICK = $40000000;
|
|
RT2800_EFUSE_CTRL_PRESENT = $80000000;
|
RT2800_EFUSE_DATA*
EFUSE_DATA0 | |
RT2800_EFUSE_DATA0 = $0590;
|
|
EFUSE_DATA1 | |
RT2800_EFUSE_DATA1 = $0594;
|
|
EFUSE_DATA2 | |
RT2800_EFUSE_DATA2 = $0598;
|
|
EFUSE_DATA3 | |
RT2800_EFUSE_DATA3 = $059c;
|
RT2800_LDO_CFG*
RT2800_LDO_CFG0 = $05d4;
|
|
RT2800_LDO_CFG0_DELAY3 = $000000ff;
|
|
RT2800_LDO_CFG0_DELAY2 = $0000ff00;
|
|
RT2800_LDO_CFG0_DELAY1 = $00ff0000;
|
|
RT2800_LDO_CFG0_BGSEL = $03000000;
|
|
RT2800_LDO_CFG0_LDO_CORE_VLEVEL = $1c000000;
|
|
RT2800_LD0_CFG0_LDO25_LEVEL = $60000000;
|
|
RT2800_LDO_CFG0_LDO25_LARGEA = $80000000;
|
RT2800_GPIO_SWITCH*
RT2800_GPIO_SWITCH = $05dc;
|
|
RT2800_GPIO_SWITCH_0 = $00000001;
|
|
RT2800_GPIO_SWITCH_1 = $00000002;
|
|
RT2800_GPIO_SWITCH_2 = $00000004;
|
|
RT2800_GPIO_SWITCH_3 = $00000008;
|
|
RT2800_GPIO_SWITCH_4 = $00000010;
|
|
RT2800_GPIO_SWITCH_5 = $00000020;
|
|
RT2800_GPIO_SWITCH_6 = $00000040;
|
|
RT2800_GPIO_SWITCH_7 = $00000080;
|
RT2800_MAC_DEBUG_INDEX*
RT2800_MAC_DEBUG_INDEX = $05e8;
|
|
RT2800_MAC_DEBUG_INDEX_XTAL = $80000000;
|
RT2800_MAC_CSR0*
MAC Control/Status Registers(CSR)
Note: Some values are set in TU, where 1 TU = 1024 us | |
MAC_CSR0 (ASIC revision number) | |
RT2800_MAC_CSR0 = $1000;
|
|
RT2800_MAC_CSR0_REVISION = $0000ffff;
|
ASIC_REV = 0 |
RT2800_MAC_CSR0_CHIPSET = $ffff0000;
|
ASIC_VER = 2860 or 2870 |
RT2800_MAC_SYS_CTRL*
RT2800_MAC_SYS_CTRL = $1004;
|
|
RT2800_MAC_SYS_CTRL_RESET_CSR = $00000001;
|
|
RT2800_MAC_SYS_CTRL_RESET_BBP = $00000002;
|
|
RT2800_MAC_SYS_CTRL_ENABLE_TX = $00000004;
|
|
RT2800_MAC_SYS_CTRL_ENABLE_RX = $00000008;
|
|
RT2800_MAC_SYS_CTRL_CONTINUOUS_TX= $00000010;
|
|
RT2800_MAC_SYS_CTRL_LOOPBACK = $00000020;
|
|
RT2800_MAC_SYS_CTRL_WLAN_HALT = $00000040;
|
|
RT2800_MAC_SYS_CTRL_RX_TIMESTAMP = $00000080;
|
RT2800_MAC_ADDR_DW*
MAC_ADDR_DW0 (STA MAC register 0) | |
RT2800_MAC_ADDR_DW0 = $1008;
|
|
RT2800_MAC_ADDR_DW0_BYTE0 = $000000ff;
|
|
RT2800_MAC_ADDR_DW0_BYTE1 = $0000ff00;
|
|
RT2800_MAC_ADDR_DW0_BYTE2 = $00ff0000;
|
|
RT2800_MAC_ADDR_DW0_BYTE3 = $ff000000;
|
|
MAC_ADDR_DW1 (STA MAC register 1) | |
RT2800_MAC_ADDR_DW1 = $100c;
|
|
RT2800_MAC_ADDR_DW1_BYTE4 = $000000ff;
|
|
RT2800_MAC_ADDR_DW1_BYTE5 = $0000ff00;
|
|
RT2800_MAC_ADDR_DW1_UNICAST_TO_ME_MASK = $00ff0000;
|
UNICAST_TO_ME_MASK (Used to mask off bits from byte 5 of the MAC address to determine the UNICAST_TO_ME bit for RX frames. The full mask is complemented by BSS_ID_MASK: MASK = BSS_ID_MASK & UNICAST_TO_ME_MASK) |
RT2800_MAC_BSSID_DW*
MAC_BSSID_DW0 (BSSID register 0) | |
RT2800_MAC_BSSID_DW0 = $1010;
|
|
RT2800_MAC_BSSID_DW0_BYTE0 = $000000ff;
|
|
RT2800_MAC_BSSID_DW0_BYTE1 = $0000ff00;
|
|
RT2800_MAC_BSSID_DW0_BYTE2 = $00ff0000;
|
|
RT2800_MAC_BSSID_DW0_BYTE3 = $ff000000;
|
|
MAC_BSSID_DW1 (BSSID register 1) | |
RT2800_MAC_BSSID_DW1 = $1014;
|
|
RT2800_MAC_BSSID_DW1_BYTE4 = $000000ff;
|
|
RT2800_MAC_BSSID_DW1_BYTE5 = $0000ff00;
|
|
RT2800_MAC_BSSID_DW1_BSS_ID_MASK = $00030000;
|
BSS_ID_MASK 0: 1-BSSID mode (BSS index = 0) |
RT2800_MAC_BSSID_DW1_BSS_BCN_NUM = $001c0000;
|
1: 2-BSSID mode (BSS index: Byte5, bit 0) 2: 4-BSSID mode (BSS index: byte5, bit 0 - 1) 3: 8-BSSID mode (BSS index: byte5, bit 0 - 2) This mask is used to mask off bits 0, 1 and 2 of byte 5 of the BSSID. This will make sure that those bits will be ignored when determining the MY_BSS of RX frames. |
RT2800_MAX_LEN_CFG*
MAX_LEN_CFG (Maximum frame length register) | |
RT2800_MAX_LEN_CFG = $1018;
|
|
RT2800_MAX_LEN_CFG_MAX_MPDU = $00000fff;
|
MAX_MPDU: rt2860b max 16k bytes |
RT2800_MAX_LEN_CFG_MAX_PSDU = $00003000;
|
MAX_PSDU: Maximum PSDU length |
RT2800_MAX_LEN_CFG_MIN_PSDU = $0000c000;
|
(power factor) 0:2^13, 1:2^14, 2:2^15, 3:2^16 |
RT2800_MAX_LEN_CFG_MIN_MPDU = $000f0000;
|
RT2800_BBP_CSR_CFG*
BBP_CSR_CFG (BBP serial control register) | |
RT2800_BBP_CSR_CFG = $101c;
|
|
RT2800_BBP_CSR_CFG_VALUE = $000000ff;
|
VALUE: Register value to program into BBP |
RT2800_BBP_CSR_CFG_REGNUM = $0000ff00;
|
REG_NUM: Selected BBP register |
RT2800_BBP_CSR_CFG_READ_CONTROL = $00010000;
|
READ_CONTROL: 0 write BBP, 1 read BBP |
RT2800_BBP_CSR_CFG_BUSY = $00020000;
|
BUSY: ASIC is busy executing BBP commands |
RT2800_BBP_CSR_CFG_BBP_PAR_DUR = $00040000;
|
BBP_PAR_DUR: 0 4 MAC clocks, 1 8 MAC clocks |
RT2800_BBP_CSR_CFG_BBP_RW_MODE = $00080000;
|
BBP_RW_MODE: 0 serial, 1 parallel |
RT2800_RF_CSR_CFG*
RF_CSR_CFG0 | |
RT2800_RF_CSR_CFG0 = $1020;
|
|
RT2800_RF_CSR_CFG0_REGID_AND_VALUE = $00ffffff;
|
REGID_AND_VALUE: Register value to program into RF |
RT2800_RF_CSR_CFG0_BITWIDTH = $1f000000;
|
BITWIDTH: Selected RF register |
RT2800_RF_CSR_CFG0_REG_VALUE_BW = $1fffffff;
|
|
RT2800_RF_CSR_CFG0_STANDBYMODE = $20000000;
|
STANDBYMODE: 0 high when standby, 1 low when standby |
RT2800_RF_CSR_CFG0_SEL = $40000000;
|
SEL: 0 RF_LE0 activate, 1 RF_LE1 activate |
RT2800_RF_CSR_CFG0_BUSY = $80000000;
|
BUSY: ASIC is busy executing RF commands |
RF_CSR_CFG1 | |
RT2800_RF_CSR_CFG1 = $1024;
|
|
RT2800_RF_CSR_CFG1_REGID_AND_VALUE = $00ffffff;
|
REGID_AND_VALUE: Register value to program into RF |
RT2800_RF_CSR_CFG1_RFGAP = $1f000000;
|
RFGAP: Gap between BB_CONTROL_RF and RF_LE (0: 3 system clock cycle (37.5usec), 1: 5 system clock cycle (62.5usec)) |
RF_CSR_CFG2 | |
RT2800_RF_CSR_CFG2 = $1028;
|
|
RT2800_RF_CSR_CFG2_VALUE = $00ffffff;
|
VALUE: Register value to program into RF |
RT2800_LED_CFG*
LED_CFG (LED control) | |
RT2800_LED_CFG = $102c;
|
|
RT2800_LED_CFG_ON_PERIOD = $000000ff;
|
ON_PERIOD: LED active time (ms) during TX (only used for LED mode 1) |
RT2800_LED_CFG_OFF_PERIOD = $0000ff00;
|
OFF_PERIOD: LED inactive time (ms) during TX (only used for LED mode 1) |
RT2800_LED_CFG_SLOW_BLINK_PERIOD = $003f0000;
|
SLOW_BLINK_PERIOD: LED blink interval in seconds (only used for LED mode 2) |
RT2800_LED_CFG_R_LED_MODE = $03000000;
|
color LED's: |
RT2800_LED_CFG_G_LED_MODE = $0c000000;
|
0: off / 1: blinking upon TX2 / 2: periodic slow blinking / 3: always on |
RT2800_LED_CFG_Y_LED_MODE = $30000000;
|
|
RT2800_LED_CFG_LED_POLAR = $40000000;
|
LED polarity: 0: active low / 1: active high |
RT2800_AMPDU_BA_WINSIZE*
AMPDU_BA_WINSIZE (Force BlockAck window size) | |
RT2800_AMPDU_BA_WINSIZE = $1040;
|
|
RT2800_AMPDU_BA_WINSIZE_FORCE_WINSIZE_ENABLE = $00000020;
|
FORCE_WINSIZE_ENABLE: 0: Disable forcing of BlockAck window size / 1: Enable forcing of BlockAck window size, overwrites values BlockAck window size values in the TXWI |
RT2800_AMPDU_BA_WINSIZE_FORCE_WINSIZE = $0000001f;
|
FORCE_WINSIZE: BlockAck window size |
RT2800_XIFS_TIME_*
XIFS_TIME_CFG (MAC timing) | |
RT2800_XIFS_TIME_CFG = $1100;
|
|
RT2800_XIFS_TIME_CFG_CCKM_SIFS_TIME = $000000ff;
|
CCKM_SIFS_TIME: unit 1us. Applied after CCK RX/TX |
RT2800_XIFS_TIME_CFG_OFDM_SIFS_TIME = $0000ff00;
|
OFDM_SIFS_TIME: unit 1us. Applied after OFDM RX/TX |
RT2800_XIFS_TIME_CFG_OFDM_XIFS_TIME = $000f0000;
|
OFDM_XIFS_TIME: unit 1us. Applied after OFDM RX when MAC doesn't reference BBP signal BBRXEND |
RT2800_XIFS_TIME_CFG_EIFS = $1ff00000;
|
EIFS: unit 1us |
RT2800_XIFS_TIME_CFG_BB_RXEND_ENABLE = $20000000;
|
BB_RXEND_ENABLE: reference RXEND signal to begin XIFS defer |
RT2800_BKOFF_SLOT_*
RT2800_BKOFF_SLOT_CFG = $1104;
|
|
RT2800_BKOFF_SLOT_CFG_SLOT_TIME = $000000ff;
|
|
RT2800_BKOFF_SLOT_CFG_CC_DELAY_TIME = $0000ff00;
|
RT2800_NAV_TIME_*
RT2800_NAV_TIME_CFG = $1108;
|
|
RT2800_NAV_TIME_CFG_SIFS = $000000ff;
|
|
RT2800_NAV_TIME_CFG_SLOT_TIME = $0000ff00;
|
|
RT2800_NAV_TIME_CFG_EIFS = $01ff0000;
|
|
RT2800_NAV_TIME_ZERO_SIFS = $02000000;
|
RT2800_CH_TIME_*
CH_TIME_CFG (count as channel busy) | |
RT2800_CH_TIME_CFG = $110c;
|
|
RT2800_CH_TIME_CFG_EIFS_BUSY = $00000010;
|
EIFS_BUSY: Count EIFS as channel busy |
RT2800_CH_TIME_CFG_NAV_BUSY = $00000008;
|
NAV_BUSY: Count NAS as channel busy |
RT2800_CH_TIME_CFG_RX_BUSY = $00000004;
|
RX_BUSY: Count RX as channel busy |
RT2800_CH_TIME_CFG_TX_BUSY = $00000002;
|
TX_BUSY: Count TX as channel busy |
RT2800_CH_TIME_CFG_TMR_EN = $00000001;
|
TMR_EN: Enable channel statistics timer |
RT2800_PBF_LIFE_TIMER*
PBF_LIFE_TIMER (TX/RX MPDU timestamp timer (free run) Unit: 1us) | |
RT2800_PBF_LIFE_TIMER = $1110;
|
RT2800_BCN_TIME_*
RT2800_BCN_TIME_CFG = $1114;
|
|
RT2800_BCN_TIME_CFG_BEACON_INTERVAL = $0000ffff;
|
BEACON_INTERVAL: in unit of 1/16 TU |
RT2800_BCN_TIME_CFG_TSF_TICKING = $00010000;
|
TSF_TICKING: Enable TSF auto counting |
RT2800_BCN_TIME_CFG_TSF_SYNC = $00060000;
|
TSF_SYNC: Enable TSF sync, 00: disable, 01: infra mode, 10: ad-hoc mode |
RT2800_BCN_TIME_CFG_TBTT_ENABLE = $00080000;
|
|
RT2800_BCN_TIME_CFG_BEACON_GEN = $00100000;
|
BEACON_GEN: Enable beacon generator |
RT2800_BCN_TIME_CFG_TX_TIME_COMPENSATE = $f0000000;
|
RT2800_TBTT_SYNC_*
RT2800_TBTT_SYNC_CFG = $1118;
|
|
RT2800_TBTT_SYNC_CFG_TBTT_ADJUST = $000000ff;
|
|
RT2800_TBTT_SYNC_CFG_BCN_EXP_WIN = $0000ff00;
|
|
RT2800_TBTT_SYNC_CFG_BCN_AIFSN = $000f0000;
|
BCN_AIFSN: Beacon AIFSN after TBTT interrupt in slots |
RT2800_TBTT_SYNC_CFG_BCN_CWMIN = $00f00000;
|
BCN_CWMIN: Beacon CWMin after TBTT interrupt in slots |
RT2800_TSF_TIMER_DW*
TSF_TIMER_DW0 (Local lsb TSF timer, read-only) | |
RT2800_TSF_TIMER_DW0 = $111c;
|
|
RT2800_TSF_TIMER_DW0_LOW_WORD = $ffffffff;
|
|
TSF_TIMER_DW1 (Local msb TSF timer, read-only) | |
RT2800_TSF_TIMER_DW1 = $1120;
|
|
RT2800_TSF_TIMER_DW1_HIGH_WORD = $ffffffff;
|
RT2800_TBTT_TIMER*
TBTT_TIMER (Timer remains till next TBTT, read-only) | |
RT2800_TBTT_TIMER = $1124;
|
RT2800_INT_TIMER_*
INT_TIMER_CFG (timer configuration) | |
RT2800_INT_TIMER_CFG = $1128;
|
|
RT2800_INT_TIMER_CFG_PRE_TBTT_TIMER = $0000ffff;
|
PRE_TBTT_TIMER: leadtime to tbtt for pretbtt interrupt in units of 1/16 TU |
RT2800_INT_TIMER_CFG_GP_TIMER = $ffff0000;
|
GP_TIMER: period of general purpose timer in units of 1/16 TU |
RT2800_INT_TIMER_EN*
INT_TIMER_EN (GP-timer and pre-tbtt Int enable) | |
RT2800_INT_TIMER_EN = $112c;
|
|
RT2800_INT_TIMER_EN_PRE_TBTT_TIMER = $00000001;
|
|
RT2800_INT_TIMER_EN_GP_TIMER = $00000002;
|
RT2800_CH_IDLE_STA*
CH_IDLE_STA (channel idle time (in us)) | |
RT2800_CH_IDLE_STA = $1130;
|
RT2800_CH_BUSY_STA*
CH_BUSY_STA (channel busy time on primary channel (in us)) | |
RT2800_CH_BUSY_STA = $1134;
|
RT2800_CH_BUSY_STA_SEC*
CH_BUSY_STA_SEC (channel busy time on secondary channel in HT40 mode (in us)) | |
RT2800_CH_BUSY_STA_SEC = $1138;
|
RT2800_MAC_STATUS_*
RT2800_MAC_STATUS_CFG = $1200;
|
|
RT2800_MAC_STATUS_CFG_BBP_RF_BUSY = $00000003;
|
BBP_RF_BUSY: When set to 0, BBP and RF are stable. If 1 or higher one of the 2 registers is busy. |
RT2800_PWR_PIN_*
RT2800_PWR_PIN_CFG = $1204;
|
RT2800_AUTOWAKEUP_CFG*
AUTOWAKEUP_CFG (Manual power control / status register) | |
RT2800_AUTOWAKEUP_CFG = $1208;
|
|
RT2800_AUTOWAKEUP_CFG_AUTO_LEAD_TIME = $000000ff;
|
|
RT2800_AUTOWAKEUP_CFG_TBCN_BEFORE_WAKE = $00007f00;
|
TBCN_BEFORE_WAKE: ForceWake has high privilege than PutToSleep when both set |
RT2800_AUTOWAKEUP_CFG_AUTOWAKE = $00008000;
|
AUTOWAKE: 0:sleep, 1:awake |
RT2800_EDCA_AC*
EDCA_AC0_CFG | |
RT2800_EDCA_AC0_CFG = $1300;
|
|
RT2800_EDCA_AC0_CFG_TX_OP = $000000ff;
|
|
RT2800_EDCA_AC0_CFG_AIFSN = $00000f00;
|
|
RT2800_EDCA_AC0_CFG_CWMIN = $0000f000;
|
|
RT2800_EDCA_AC0_CFG_CWMAX = $000f0000;
|
|
EDCA_AC1_CFG | |
RT2800_EDCA_AC1_CFG = $1304;
|
|
RT2800_EDCA_AC1_CFG_TX_OP = $000000ff;
|
|
RT2800_EDCA_AC1_CFG_AIFSN = $00000f00;
|
|
RT2800_EDCA_AC1_CFG_CWMIN = $0000f000;
|
|
RT2800_EDCA_AC1_CFG_CWMAX = $000f0000;
|
|
EDCA_AC2_CFG | |
RT2800_EDCA_AC2_CFG = $1308;
|
|
RT2800_EDCA_AC2_CFG_TX_OP = $000000ff;
|
|
RT2800_EDCA_AC2_CFG_AIFSN = $00000f00;
|
|
RT2800_EDCA_AC2_CFG_CWMIN = $0000f000;
|
|
RT2800_EDCA_AC2_CFG_CWMAX = $000f0000;
|
|
EDCA_AC3_CFG | |
RT2800_EDCA_AC3_CFG = $130c;
|
|
RT2800_EDCA_AC3_CFG_TX_OP = $000000ff;
|
|
RT2800_EDCA_AC3_CFG_AIFSN = $00000f00;
|
|
RT2800_EDCA_AC3_CFG_CWMIN = $0000f000;
|
|
RT2800_EDCA_AC3_CFG_CWMAX = $000f0000;
|
RT2800_EDCA_TID_AC_MAP*
RT2800_EDCA_TID_AC_MAP = $1310;
|
RT2800_TX_PWR_CFG_RATE*
RT2800_TX_PWR_CFG_RATE0 = $0000000f;
|
|
RT2800_TX_PWR_CFG_RATE1 = $000000f0;
|
|
RT2800_TX_PWR_CFG_RATE2 = $00000f00;
|
|
RT2800_TX_PWR_CFG_RATE3 = $0000f000;
|
|
RT2800_TX_PWR_CFG_RATE4 = $000f0000;
|
|
RT2800_TX_PWR_CFG_RATE5 = $00f00000;
|
|
RT2800_TX_PWR_CFG_RATE6 = $0f000000;
|
|
RT2800_TX_PWR_CFG_RATE7 = $f0000000;
|
RT2800_TX_PWR_CFG_*
TX_PWR_CFG_0 | |
RT2800_TX_PWR_CFG_0 = $1314;
|
|
RT2800_TX_PWR_CFG_0_1MBS = $0000000f;
|
|
RT2800_TX_PWR_CFG_0_2MBS = $000000f0;
|
|
RT2800_TX_PWR_CFG_0_55MBS = $00000f00;
|
|
RT2800_TX_PWR_CFG_0_11MBS = $0000f000;
|
|
RT2800_TX_PWR_CFG_0_6MBS = $000f0000;
|
|
RT2800_TX_PWR_CFG_0_9MBS = $00f00000;
|
|
RT2800_TX_PWR_CFG_0_12MBS = $0f000000;
|
|
RT2800_TX_PWR_CFG_0_18MBS = $f0000000;
|
|
bits for 3T devices | |
RT2800_TX_PWR_CFG_0_CCK1_CH0 = $0000000f;
|
|
RT2800_TX_PWR_CFG_0_CCK1_CH1 = $000000f0;
|
|
RT2800_TX_PWR_CFG_0_CCK5_CH0 = $00000f00;
|
|
RT2800_TX_PWR_CFG_0_CCK5_CH1 = $0000f000;
|
|
RT2800_TX_PWR_CFG_0_OFDM6_CH0 = $000f0000;
|
|
RT2800_TX_PWR_CFG_0_OFDM6_CH1 = $00f00000;
|
|
RT2800_TX_PWR_CFG_0_OFDM12_CH0 = $0f000000;
|
|
RT2800_TX_PWR_CFG_0_OFDM12_CH1 = $f0000000;
|
|
TX_PWR_CFG_1 | |
RT2800_TX_PWR_CFG_1 = $1318;
|
|
RT2800_TX_PWR_CFG_1_24MBS = $0000000f;
|
|
RT2800_TX_PWR_CFG_1_36MBS = $000000f0;
|
|
RT2800_TX_PWR_CFG_1_48MBS = $00000f00;
|
|
RT2800_TX_PWR_CFG_1_54MBS = $0000f000;
|
|
RT2800_TX_PWR_CFG_1_MCS0 = $000f0000;
|
|
RT2800_TX_PWR_CFG_1_MCS1 = $00f00000;
|
|
RT2800_TX_PWR_CFG_1_MCS2 = $0f000000;
|
|
RT2800_TX_PWR_CFG_1_MCS3 = $f0000000;
|
|
bits for 3T devices | |
RT2800_TX_PWR_CFG_1_OFDM24_CH0 = $0000000f;
|
|
RT2800_TX_PWR_CFG_1_OFDM24_CH1 = $000000f0;
|
|
RT2800_TX_PWR_CFG_1_OFDM48_CH0 = $00000f00;
|
|
RT2800_TX_PWR_CFG_1_OFDM48_CH1 = $0000f000;
|
|
RT2800_TX_PWR_CFG_1_MCS0_CH0 = $000f0000;
|
|
RT2800_TX_PWR_CFG_1_MCS0_CH1 = $00f00000;
|
|
RT2800_TX_PWR_CFG_1_MCS2_CH0 = $0f000000;
|
|
RT2800_TX_PWR_CFG_1_MCS2_CH1 = $f0000000;
|
|
TX_PWR_CFG_2 | |
RT2800_TX_PWR_CFG_2 = $131c;
|
|
RT2800_TX_PWR_CFG_2_MCS4 = $0000000f;
|
|
RT2800_TX_PWR_CFG_2_MCS5 = $000000f0;
|
|
RT2800_TX_PWR_CFG_2_MCS6 = $00000f00;
|
|
RT2800_TX_PWR_CFG_2_MCS7 = $0000f000;
|
|
RT2800_TX_PWR_CFG_2_MCS8 = $000f0000;
|
|
RT2800_TX_PWR_CFG_2_MCS9 = $00f00000;
|
|
RT2800_TX_PWR_CFG_2_MCS10 = $0f000000;
|
|
RT2800_TX_PWR_CFG_2_MCS11 = $f0000000;
|
|
bits for 3T devices | |
RT2800_TX_PWR_CFG_2_MCS4_CH0 = $0000000f;
|
|
RT2800_TX_PWR_CFG_2_MCS4_CH1 = $000000f0;
|
|
RT2800_TX_PWR_CFG_2_MCS6_CH0 = $00000f00;
|
|
RT2800_TX_PWR_CFG_2_MCS6_CH1 = $0000f000;
|
|
RT2800_TX_PWR_CFG_2_MCS8_CH0 = $000f0000;
|
|
RT2800_TX_PWR_CFG_2_MCS8_CH1 = $00f00000;
|
|
RT2800_TX_PWR_CFG_2_MCS10_CH0 = $0f000000;
|
|
RT2800_TX_PWR_CFG_2_MCS10_CH1 = $f0000000;
|
|
TX_PWR_CFG_3 | |
RT2800_TX_PWR_CFG_3 = $1320;
|
|
RT2800_TX_PWR_CFG_3_MCS12 = $0000000f;
|
|
RT2800_TX_PWR_CFG_3_MCS13 = $000000f0;
|
|
RT2800_TX_PWR_CFG_3_MCS14 = $00000f00;
|
|
RT2800_TX_PWR_CFG_3_MCS15 = $0000f000;
|
|
RT2800_TX_PWR_CFG_3_UKNOWN1 = $000f0000;
|
|
RT2800_TX_PWR_CFG_3_UKNOWN2 = $00f00000;
|
|
RT2800_TX_PWR_CFG_3_UKNOWN3 = $0f000000;
|
|
RT2800_TX_PWR_CFG_3_UKNOWN4 = $f0000000;
|
|
bits for 3T devices | |
RT2800_TX_PWR_CFG_3_MCS12_CH0 = $0000000f;
|
|
RT2800_TX_PWR_CFG_3_MCS12_CH1 = $000000f0;
|
|
RT2800_TX_PWR_CFG_3_MCS14_CH0 = $00000f00;
|
|
RT2800_TX_PWR_CFG_3_MCS14_CH1 = $0000f000;
|
|
RT2800_TX_PWR_CFG_3_STBC0_CH0 = $000f0000;
|
|
RT2800_TX_PWR_CFG_3_STBC0_CH1 = $00f00000;
|
|
RT2800_TX_PWR_CFG_3_STBC2_CH0 = $0f000000;
|
|
RT2800_TX_PWR_CFG_3_STBC2_CH1 = $f0000000;
|
|
TX_PWR_CFG_4 | |
RT2800_TX_PWR_CFG_4 = $1324;
|
|
RT2800_TX_PWR_CFG_4_UKNOWN5 = $0000000f;
|
|
RT2800_TX_PWR_CFG_4_UKNOWN6 = $000000f0;
|
|
RT2800_TX_PWR_CFG_4_UKNOWN7 = $00000f00;
|
|
RT2800_TX_PWR_CFG_4_UKNOWN8 = $0000f000;
|
|
bits for 3T devices | |
RT2800_TX_PWR_CFG_3_STBC4_CH0 = $0000000f;
|
|
RT2800_TX_PWR_CFG_3_STBC4_CH1 = $000000f0;
|
|
RT2800_TX_PWR_CFG_3_STBC6_CH0 = $00000f00;
|
|
RT2800_TX_PWR_CFG_3_STBC6_CH1 = $0000f000;
|
|
TX_PWR_CFG_5 | |
RT2800_TX_PWR_CFG_5 = $1384;
|
|
RT2800_TX_PWR_CFG_5_MCS16_CH0 = $0000000f;
|
|
RT2800_TX_PWR_CFG_5_MCS16_CH1 = $000000f0;
|
|
RT2800_TX_PWR_CFG_5_MCS16_CH2 = $00000f00;
|
|
RT2800_TX_PWR_CFG_5_MCS18_CH0 = $000f0000;
|
|
RT2800_TX_PWR_CFG_5_MCS18_CH1 = $00f00000;
|
|
RT2800_TX_PWR_CFG_5_MCS18_CH2 = $0f000000;
|
|
TX_PWR_CFG_6 | |
RT2800_TX_PWR_CFG_6 = $1388;
|
|
RT2800_TX_PWR_CFG_6_MCS20_CH0 = $0000000f;
|
|
RT2800_TX_PWR_CFG_6_MCS20_CH1 = $000000f0;
|
|
RT2800_TX_PWR_CFG_6_MCS20_CH2 = $00000f00;
|
|
RT2800_TX_PWR_CFG_6_MCS22_CH0 = $000f0000;
|
|
RT2800_TX_PWR_CFG_6_MCS22_CH1 = $00f00000;
|
|
RT2800_TX_PWR_CFG_6_MCS22_CH2 = $0f000000;
|
|
TX_PWR_CFG_7 | |
RT2800_TX_PWR_CFG_7 = $13d4;
|
|
RT2800_TX_PWR_CFG_7_OFDM54_CH0 = $0000000f;
|
|
RT2800_TX_PWR_CFG_7_OFDM54_CH1 = $000000f0;
|
|
RT2800_TX_PWR_CFG_7_OFDM54_CH2 = $00000f00;
|
|
RT2800_TX_PWR_CFG_7_MCS7_CH0 = $000f0000;
|
|
RT2800_TX_PWR_CFG_7_MCS7_CH1 = $00f00000;
|
|
RT2800_TX_PWR_CFG_7_MCS7_CH2 = $0f000000;
|
|
TX_PWR_CFG_8 | |
RT2800_TX_PWR_CFG_8 = $13d8;
|
|
RT2800_TX_PWR_CFG_8_MCS15_CH0 = $0000000f;
|
|
RT2800_TX_PWR_CFG_8_MCS15_CH1 = $000000f0;
|
|
RT2800_TX_PWR_CFG_8_MCS15_CH2 = $00000f00;
|
|
RT2800_TX_PWR_CFG_8_MCS23_CH0 = $000f0000;
|
|
RT2800_TX_PWR_CFG_8_MCS23_CH1 = $00f00000;
|
|
RT2800_TX_PWR_CFG_8_MCS23_CH2 = $0f000000;
|
|
TX_PWR_CFG_9 | |
RT2800_TX_PWR_CFG_9 = $13dc;
|
|
RT2800_TX_PWR_CFG_9_STBC7_CH0 = $0000000f;
|
|
RT2800_TX_PWR_CFG_9_STBC7_CH1 = $000000f0;
|
|
RT2800_TX_PWR_CFG_9_STBC7_CH2 = $00000f00;
|
RT2800_TX_PWR_CFG_*_EXT*
TX_PWR_CFG_0_EXT | |
RT2800_TX_PWR_CFG_0_EXT = $1390;
|
|
RT2800_TX_PWR_CFG_0_EXT_CCK1_CH2 = $0000000f;
|
|
RT2800_TX_PWR_CFG_0_EXT_CCK5_CH2 = $00000f00;
|
|
RT2800_TX_PWR_CFG_0_EXT_OFDM6_CH2 = $000f0000;
|
|
RT2800_TX_PWR_CFG_0_EXT_OFDM12_CH2 = $0f000000;
|
|
TX_PWR_CFG_1_EXT | |
RT2800_TX_PWR_CFG_1_EXT = $1394;
|
|
RT2800_TX_PWR_CFG_1_EXT_OFDM24_CH2 = $0000000f;
|
|
RT2800_TX_PWR_CFG_1_EXT_OFDM48_CH2 = $00000f00;
|
|
RT2800_TX_PWR_CFG_1_EXT_MCS0_CH2 = $000f0000;
|
|
RT2800_TX_PWR_CFG_1_EXT_MCS2_CH2 = $0f000000;
|
|
TX_PWR_CFG_2_EXT | |
RT2800_TX_PWR_CFG_2_EXT = $1398;
|
|
RT2800_TX_PWR_CFG_2_EXT_MCS4_CH2 = $0000000f;
|
|
RT2800_TX_PWR_CFG_2_EXT_MCS6_CH2 = $00000f00;
|
|
RT2800_TX_PWR_CFG_2_EXT_MCS8_CH2 = $000f0000;
|
|
RT2800_TX_PWR_CFG_2_EXT_MCS10_CH2 = $0f000000;
|
|
TX_PWR_CFG_3_EXT | |
RT2800_TX_PWR_CFG_3_EXT = $139c;
|
|
RT2800_TX_PWR_CFG_3_EXT_MCS12_CH2 = $0000000f;
|
|
RT2800_TX_PWR_CFG_3_EXT_MCS14_CH2 = $00000f00;
|
|
RT2800_TX_PWR_CFG_3_EXT_STBC0_CH2 = $000f0000;
|
|
RT2800_TX_PWR_CFG_3_EXT_STBC2_CH2 = $0f000000;
|
|
TX_PWR_CFG_4_EXT | |
RT2800_TX_PWR_CFG_4_EXT = $13a0;
|
|
RT2800_TX_PWR_CFG_4_EXT_STBC4_CH2 = $0000000f;
|
|
RT2800_TX_PWR_CFG_4_EXT_STBC6_CH2 = $00000f00;
|
RT2800_TX_PIN_*
RT2800_TX_PIN_CFG = $1328;
|
|
RT2800_TX_PIN_CFG_PA_PE_DISABLE = $fcfffff0;
|
|
RT2800_TX_PIN_CFG_PA_PE_A0_EN = $00000001;
|
|
RT2800_TX_PIN_CFG_PA_PE_G0_EN = $00000002;
|
|
RT2800_TX_PIN_CFG_PA_PE_A1_EN = $00000004;
|
|
RT2800_TX_PIN_CFG_PA_PE_G1_EN = $00000008;
|
|
RT2800_TX_PIN_CFG_PA_PE_A0_POL = $00000010;
|
|
RT2800_TX_PIN_CFG_PA_PE_G0_POL = $00000020;
|
|
RT2800_TX_PIN_CFG_PA_PE_A1_POL = $00000040;
|
|
RT2800_TX_PIN_CFG_PA_PE_G1_POL = $00000080;
|
|
RT2800_TX_PIN_CFG_LNA_PE_A0_EN = $00000100;
|
|
RT2800_TX_PIN_CFG_LNA_PE_G0_EN = $00000200;
|
|
RT2800_TX_PIN_CFG_LNA_PE_A1_EN = $00000400;
|
|
RT2800_TX_PIN_CFG_LNA_PE_G1_EN = $00000800;
|
|
RT2800_TX_PIN_CFG_LNA_PE_A0_POL = $00001000;
|
|
RT2800_TX_PIN_CFG_LNA_PE_G0_POL = $00002000;
|
|
RT2800_TX_PIN_CFG_LNA_PE_A1_POL = $00004000;
|
|
RT2800_TX_PIN_CFG_LNA_PE_G1_POL = $00008000;
|
|
RT2800_TX_PIN_CFG_RFTR_EN = $00010000;
|
|
RT2800_TX_PIN_CFG_RFTR_POL = $00020000;
|
|
RT2800_TX_PIN_CFG_TRSW_EN = $00040000;
|
|
RT2800_TX_PIN_CFG_TRSW_POL = $00080000;
|
|
RT2800_TX_PIN_CFG_PA_PE_A2_EN = $01000000;
|
|
RT2800_TX_PIN_CFG_PA_PE_G2_EN = $02000000;
|
|
RT2800_TX_PIN_CFG_PA_PE_A2_POL = $04000000;
|
|
RT2800_TX_PIN_CFG_PA_PE_G2_POL = $08000000;
|
|
RT2800_TX_PIN_CFG_LNA_PE_A2_EN = $10000000;
|
|
RT2800_TX_PIN_CFG_LNA_PE_G2_EN = $20000000;
|
|
RT2800_TX_PIN_CFG_LNA_PE_A2_POL = $40000000;
|
|
RT2800_TX_PIN_CFG_LNA_PE_G2_POL = $80000000;
|
RT2800_TX_BAND_*
TX_BAND_CFG (0x1 use upper 20MHz, = $0 use lower 20MHz) | |
RT2800_TX_BAND_CFG = $132c;
|
|
RT2800_TX_BAND_CFG_HT40_MINUS = $00000001;
|
|
RT2800_TX_BAND_CFG_A = $00000002;
|
|
RT2800_TX_BAND_CFG_BG = $00000004;
|
RT2800_TX_SW_CFG*
TX_SW_CFG0 | |
RT2800_TX_SW_CFG0 = $1330;
|
|
TX_SW_CFG1 | |
RT2800_TX_SW_CFG1 = $1334;
|
|
TX_SW_CFG2 | |
RT2800_TX_SW_CFG2 = $1338;
|
RT2800_TXOP_THRES_*
RT2800_TXOP_THRES_CFG = $133c;
|
RT2800_TXOP_CTRL_*
RT2800_TXOP_CTRL_CFG = $1340;
|
|
RT2800_TXOP_CTRL_CFG_TIMEOUT_TRUN_EN = $00000001;
|
TIMEOUT_TRUN_EN: Enable/Disable TXOP timeout truncation |
RT2800_TXOP_CTRL_CFG_AC_TRUN_EN = $00000002;
|
AC_TRUN_EN: Enable/Disable truncation for AC change |
RT2800_TXOP_CTRL_CFG_TXRATEGRP_TRUN_EN = $00000004;
|
TXRATEGRP_TRUN_EN: Enable/Disable truncation for TX rate group change |
RT2800_TXOP_CTRL_CFG_USER_MODE_TRUN_EN = $00000008;
|
USER_MODE_TRUN_EN: Enable/Disable truncation for user TXOP mode |
RT2800_TXOP_CTRL_CFG_MIMO_PS_TRUN_EN = $00000010;
|
MIMO_PS_TRUN_EN: Enable/Disable truncation for MIMO PS RTS/CTS |
RT2800_TXOP_CTRL_CFG_RESERVED_TRUN_EN = $00000020;
|
RESERVED_TRUN_EN: Reserved |
RT2800_TXOP_CTRL_CFG_LSIG_TXOP_EN = $00000040;
|
LSIG_TXOP_EN: Enable/Disable L-SIG TXOP protection |
RT2800_TXOP_CTRL_CFG_EXT_CCA_EN = $00000080;
|
EXT_CCA_EN: Enable/Disable extension channel CCA reference (Defer 40Mhz transmissions if extension CCA is clear) |
RT2800_TXOP_CTRL_CFG_EXT_CCA_DLY = $0000ff00;
|
EXT_CCA_DLY: Extension CCA signal delay time (unit: us) |
RT2800_TXOP_CTRL_CFG_EXT_CWMIN = $000f0000;
|
EXT_CWMIN: CwMin for extension channel backoff 0: Disabled |
RT2800_TX_RTS_CFG*
RT2800_TX_RTS_CFG = $1344;
|
|
RT2800_TX_RTS_CFG_AUTO_RTS_RETRY_LIMIT = $000000ff;
|
|
RT2800_TX_RTS_CFG_RTS_THRES = $00ffff00;
|
RTS_THRES: unit:byte |
RT2800_TX_RTS_CFG_RTS_FBK_EN = $01000000;
|
RTS_FBK_EN: enable rts rate fallback |
RT2800_TX_TIMEOUT_*
RT2800_TX_TIMEOUT_CFG = $1348;
|
|
RT2800_TX_TIMEOUT_CFG_MPDU_LIFETIME = $000000f0;
|
MPDU_LIFETIME: expiration time = 2^(9+MPDU LIFE TIME; us |
RT2800_TX_TIMEOUT_CFG_RX_ACK_TIMEOUT = $0000ff00;
|
RX_ACK_TIMEOUT: unit:slot. Used for TX procedure |
RT2800_TX_TIMEOUT_CFG_TX_OP_TIMEOUT = $00ff0000;
|
TX_OP_TIMEOUT: TXOP timeout value for TXOP truncation. It is recommended that: (SLOT_TIME; > (TX_OP_TIMEOUT) > (RX_ACK_TIMEOUT) |
RT2800_TX_RTY_*
RT2800_TX_RTY_CFG = $134c;
|
|
RT2800_TX_RTY_CFG_SHORT_RTY_LIMIT = $000000ff;
|
SHORT_RTY_LIMIT: short retry limit |
RT2800_TX_RTY_CFG_LONG_RTY_LIMIT = $0000ff00;
|
LONG_RTY_LIMIT: long retry limit |
RT2800_TX_RTY_CFG_LONG_RTY_THRE = $0fff0000;
|
LONG_RTY_THRE: Long retry threshoold |
RT2800_TX_RTY_CFG_NON_AGG_RTY_MODE = $10000000;
|
NON_AGG_RTY_MODE: Non-Aggregate MPDU retry mode 0:expired by retry limit, 1: expired by mpdu life timer |
RT2800_TX_RTY_CFG_AGG_RTY_MODE = $20000000;
|
AGG_RTY_MODE: Aggregate MPDU retry mode 0:expired by retry limit, 1: expired by mpdu life timer |
RT2800_TX_RTY_CFG_TX_AUTO_FB_ENABLE = $40000000;
|
TX_AUTO_FB_ENABLE: Tx retry PHY rate auto fallback enable |
RT2800_TX_LINK_*
RT2800_TX_LINK_CFG = $1350;
|
|
RT2800_TX_LINK_CFG_REMOTE_MFB_LIFETIME = $000000ff;
|
REMOTE_MFB_LIFETIME: remote MFB life time. unit: 32us |
RT2800_TX_LINK_CFG_MFB_ENABLE = $00000100;
|
MFB_ENABLE: TX apply remote MFB 1:enable |
RT2800_TX_LINK_CFG_REMOTE_UMFS_ENABLE = $00000200;
|
REMOTE_UMFS_ENABLE: remote unsolicit MFB enable 0: not apply remote remote unsolicit (MFS=7) |
RT2800_TX_LINK_CFG_TX_MRQ_EN = $00000400;
|
TX_MRQ_EN: MCS request TX enable |
RT2800_TX_LINK_CFG_TX_RDG_EN = $00000800;
|
TX_RDG_EN: RDG TX enable |
RT2800_TX_LINK_CFG_TX_CF_ACK_EN = $00001000;
|
TX_CF_ACK_EN: Piggyback CF-ACK enable |
RT2800_TX_LINK_CFG_REMOTE_MFB = $00ff0000;
|
REMOTE_MFB: remote MCS feedback |
RT2800_TX_LINK_CFG_REMOTE_MFS = $ff000000;
|
REMOTE_MFS: remote MCS feedback sequence number |
RT2800_*_FBK_CFG*
HT_FBK_CFG0 | |
RT2800_HT_FBK_CFG0 = $1354;
|
|
RT2800_HT_FBK_CFG0_HTMCS0FBK = $0000000f;
|
|
RT2800_HT_FBK_CFG0_HTMCS1FBK = $000000f0;
|
|
RT2800_HT_FBK_CFG0_HTMCS2FBK = $00000f00;
|
|
RT2800_HT_FBK_CFG0_HTMCS3FBK = $0000f000;
|
|
RT2800_HT_FBK_CFG0_HTMCS4FBK = $000f0000;
|
|
RT2800_HT_FBK_CFG0_HTMCS5FBK = $00f00000;
|
|
RT2800_HT_FBK_CFG0_HTMCS6FBK = $0f000000;
|
|
RT2800_HT_FBK_CFG0_HTMCS7FBK = $f0000000;
|
|
HT_FBK_CFG1 | |
RT2800_HT_FBK_CFG1 = $1358;
|
|
RT2800_HT_FBK_CFG1_HTMCS8FBK = $0000000f;
|
|
RT2800_HT_FBK_CFG1_HTMCS9FBK = $000000f0;
|
|
RT2800_HT_FBK_CFG1_HTMCS10FBK = $00000f00;
|
|
RT2800_HT_FBK_CFG1_HTMCS11FBK = $0000f000;
|
|
RT2800_HT_FBK_CFG1_HTMCS12FBK = $000f0000;
|
|
RT2800_HT_FBK_CFG1_HTMCS13FBK = $00f00000;
|
|
RT2800_HT_FBK_CFG1_HTMCS14FBK = $0f000000;
|
|
RT2800_HT_FBK_CFG1_HTMCS15FBK = $f0000000;
|
|
LG_FBK_CFG0 | |
RT2800_LG_FBK_CFG0 = $135c;
|
|
RT2800_LG_FBK_CFG0_OFDMMCS0FBK = $0000000f;
|
|
RT2800_LG_FBK_CFG0_OFDMMCS1FBK = $000000f0;
|
|
RT2800_LG_FBK_CFG0_OFDMMCS2FBK = $00000f00;
|
|
RT2800_LG_FBK_CFG0_OFDMMCS3FBK = $0000f000;
|
|
RT2800_LG_FBK_CFG0_OFDMMCS4FBK = $000f0000;
|
|
RT2800_LG_FBK_CFG0_OFDMMCS5FBK = $00f00000;
|
|
RT2800_LG_FBK_CFG0_OFDMMCS6FBK = $0f000000;
|
|
RT2800_LG_FBK_CFG0_OFDMMCS7FBK = $f0000000;
|
|
LG_FBK_CFG1 | |
RT2800_LG_FBK_CFG1 = $1360;
|
|
RT2800_LG_FBK_CFG0_CCKMCS0FBK = $0000000f;
|
|
RT2800_LG_FBK_CFG0_CCKMCS1FBK = $000000f0;
|
|
RT2800_LG_FBK_CFG0_CCKMCS2FBK = $00000f00;
|
|
RT2800_LG_FBK_CFG0_CCKMCS3FBK = $0000f000;
|
RT2800_CCK_PROT_*
CCK_PROT_CFG (CCK Protection) | |
RT2800_CCK_PROT_CFG = $1364;
|
|
RT2800_CCK_PROT_CFG_PROTECT_RATE = $0000ffff;
|
PROTECT_RATE: Protection control frame rate for CCK TX(RTS/CTS/CFEnd) |
RT2800_CCK_PROT_CFG_PROTECT_CTRL = $00030000;
|
PROTECT_CTRL: Protection control frame type for CCK TX 0:none, 1:RTS/CTS, 2:CTS-to-self |
RT2800_CCK_PROT_CFG_PROTECT_NAV_SHORT = $00040000;
|
PROTECT_NAV_SHORT: TXOP protection type for CCK TX with short NAV |
RT2800_CCK_PROT_CFG_PROTECT_NAV_LONG = $00080000;
|
PROTECT_NAV_LONG: TXOP protection type for CCK TX with long NAV |
RT2800_CCK_PROT_CFG_TX_OP_ALLOW_CCK = $00100000;
|
TX_OP_ALLOW_CCK: CCK TXOP allowance, 0:disallow |
RT2800_CCK_PROT_CFG_TX_OP_ALLOW_OFDM = $00200000;
|
TX_OP_ALLOW_OFDM: CCK TXOP allowance, 0:disallow |
RT2800_CCK_PROT_CFG_TX_OP_ALLOW_MM20 = $00400000;
|
TX_OP_ALLOW_MM20: CCK TXOP allowance, 0:disallow |
RT2800_CCK_PROT_CFG_TX_OP_ALLOW_MM40 = $00800000;
|
TX_OP_ALLOW_MM40: CCK TXOP allowance, 0:disallow |
RT2800_CCK_PROT_CFG_TX_OP_ALLOW_GF20 = $01000000;
|
TX_OP_ALLOW_GF20: CCK TXOP allowance, 0:disallow |
RT2800_CCK_PROT_CFG_TX_OP_ALLOW_GF40 = $02000000;
|
TX_OP_ALLOW_GF40: CCK TXOP allowance, 0:disallow |
RT2800_CCK_PROT_CFG_RTS_TH_EN = $04000000;
|
RTS_TH_EN: RTS threshold enable on CCK TX |
RT2800_OFDM_PROT_*
OFDM_PROT_CFG (OFDM Protection) | |
RT2800_OFDM_PROT_CFG = $1368;
|
|
RT2800_OFDM_PROT_CFG_PROTECT_RATE = $0000ffff;
|
|
RT2800_OFDM_PROT_CFG_PROTECT_CTRL = $00030000;
|
|
RT2800_OFDM_PROT_CFG_PROTECT_NAV_SHORT = $00040000;
|
|
RT2800_OFDM_PROT_CFG_PROTECT_NAV_LONG = $00080000;
|
|
RT2800_OFDM_PROT_CFG_TX_OP_ALLOW_CCK = $00100000;
|
|
RT2800_OFDM_PROT_CFG_TX_OP_ALLOW_OFDM = $00200000;
|
|
RT2800_OFDM_PROT_CFG_TX_OP_ALLOW_MM20 = $00400000;
|
|
RT2800_OFDM_PROT_CFG_TX_OP_ALLOW_MM40 = $00800000;
|
|
RT2800_OFDM_PROT_CFG_TX_OP_ALLOW_GF20 = $01000000;
|
|
RT2800_OFDM_PROT_CFG_TX_OP_ALLOW_GF40 = $02000000;
|
|
RT2800_OFDM_PROT_CFG_RTS_TH_EN = $04000000;
|
RT2800_MM20_PROT_*
MM20_PROT_CFG (MM20 Protection) | |
RT2800_MM20_PROT_CFG = $136c;
|
|
RT2800_MM20_PROT_CFG_PROTECT_RATE = $0000ffff;
|
|
RT2800_MM20_PROT_CFG_PROTECT_CTRL = $00030000;
|
|
RT2800_MM20_PROT_CFG_PROTECT_NAV_SHORT = $00040000;
|
|
RT2800_MM20_PROT_CFG_PROTECT_NAV_LONG = $00080000;
|
|
RT2800_MM20_PROT_CFG_TX_OP_ALLOW_CCK = $00100000;
|
|
RT2800_MM20_PROT_CFG_TX_OP_ALLOW_OFDM = $00200000;
|
|
RT2800_MM20_PROT_CFG_TX_OP_ALLOW_MM20 = $00400000;
|
|
RT2800_MM20_PROT_CFG_TX_OP_ALLOW_MM40 = $00800000;
|
|
RT2800_MM20_PROT_CFG_TX_OP_ALLOW_GF20 = $01000000;
|
|
RT2800_MM20_PROT_CFG_TX_OP_ALLOW_GF40 = $02000000;
|
|
RT2800_MM20_PROT_CFG_RTS_TH_EN = $04000000;
|
RT2800_MM40_PROT_*
MM40_PROT_CFG (MM40 Protection) | |
RT2800_MM40_PROT_CFG = $1370;
|
|
RT2800_MM40_PROT_CFG_PROTECT_RATE = $0000ffff;
|
|
RT2800_MM40_PROT_CFG_PROTECT_CTRL = $00030000;
|
|
RT2800_MM40_PROT_CFG_PROTECT_NAV_SHORT = $00040000;
|
|
RT2800_MM40_PROT_CFG_PROTECT_NAV_LONG = $00080000;
|
|
RT2800_MM40_PROT_CFG_TX_OP_ALLOW_CCK = $00100000;
|
|
RT2800_MM40_PROT_CFG_TX_OP_ALLOW_OFDM = $00200000;
|
|
RT2800_MM40_PROT_CFG_TX_OP_ALLOW_MM20 = $00400000;
|
|
RT2800_MM40_PROT_CFG_TX_OP_ALLOW_MM40 = $00800000;
|
|
RT2800_MM40_PROT_CFG_TX_OP_ALLOW_GF20 = $01000000;
|
|
RT2800_MM40_PROT_CFG_TX_OP_ALLOW_GF40 = $02000000;
|
|
RT2800_MM40_PROT_CFG_RTS_TH_EN = $04000000;
|
RT2800_GF20_PROT_*
GF20_PROT_CFG (GF20 Protection) | |
RT2800_GF20_PROT_CFG = $1374;
|
|
RT2800_GF20_PROT_CFG_PROTECT_RATE = $0000ffff;
|
|
RT2800_GF20_PROT_CFG_PROTECT_CTRL = $00030000;
|
|
RT2800_GF20_PROT_CFG_PROTECT_NAV_SHORT = $00040000;
|
|
RT2800_GF20_PROT_CFG_PROTECT_NAV_LONG = $00080000;
|
|
RT2800_GF20_PROT_CFG_TX_OP_ALLOW_CCK = $00100000;
|
|
RT2800_GF20_PROT_CFG_TX_OP_ALLOW_OFDM = $00200000;
|
|
RT2800_GF20_PROT_CFG_TX_OP_ALLOW_MM20 = $00400000;
|
|
RT2800_GF20_PROT_CFG_TX_OP_ALLOW_MM40 = $00800000;
|
|
RT2800_GF20_PROT_CFG_TX_OP_ALLOW_GF20 = $01000000;
|
|
RT2800_GF20_PROT_CFG_TX_OP_ALLOW_GF40 = $02000000;
|
|
RT2800_GF20_PROT_CFG_RTS_TH_EN = $04000000;
|
RT2800_GF40_PROT_*
GF40_PROT_CFG (GF40 Protection) | |
RT2800_GF40_PROT_CFG = $1378;
|
|
RT2800_GF40_PROT_CFG_PROTECT_RATE = $0000ffff;
|
|
RT2800_GF40_PROT_CFG_PROTECT_CTRL = $00030000;
|
|
RT2800_GF40_PROT_CFG_PROTECT_NAV_SHORT = $00040000;
|
|
RT2800_GF40_PROT_CFG_PROTECT_NAV_LONG = $00080000;
|
|
RT2800_GF40_PROT_CFG_TX_OP_ALLOW_CCK = $00100000;
|
|
RT2800_GF40_PROT_CFG_TX_OP_ALLOW_OFDM = $00200000;
|
|
RT2800_GF40_PROT_CFG_TX_OP_ALLOW_MM20 = $00400000;
|
|
RT2800_GF40_PROT_CFG_TX_OP_ALLOW_MM40 = $00800000;
|
|
RT2800_GF40_PROT_CFG_TX_OP_ALLOW_GF20 = $01000000;
|
|
RT2800_GF40_PROT_CFG_TX_OP_ALLOW_GF40 = $02000000;
|
|
RT2800_GF40_PROT_CFG_RTS_TH_EN = $04000000;
|
RT2800_EXP_CTS_TIME*
RT2800_EXP_CTS_TIME = $137c;
|
RT2800_EXP_ACK_TIME*
RT2800_EXP_ACK_TIME = $1380;
|
RT2800_RX_FILTER_*
RT2800_RX_FILTER_CFG = $1400;
|
|
RT2800_RX_FILTER_CFG_DROP_CRC_ERROR = $00000001;
|
|
RT2800_RX_FILTER_CFG_DROP_PHY_ERROR = $00000002;
|
|
RT2800_RX_FILTER_CFG_DROP_NOT_TO_ME = $00000004;
|
|
RT2800_RX_FILTER_CFG_DROP_NOT_MY_BSSD = $00000008;
|
|
RT2800_RX_FILTER_CFG_DROP_VER_ERROR = $00000010;
|
|
RT2800_RX_FILTER_CFG_DROP_MULTICAST = $00000020;
|
|
RT2800_RX_FILTER_CFG_DROP_BROADCAST = $00000040;
|
|
RT2800_RX_FILTER_CFG_DROP_DUPLICATE = $00000080;
|
|
RT2800_RX_FILTER_CFG_DROP_CF_END_ACK = $00000100;
|
|
RT2800_RX_FILTER_CFG_DROP_CF_END = $00000200;
|
|
RT2800_RX_FILTER_CFG_DROP_ACK = $00000400;
|
|
RT2800_RX_FILTER_CFG_DROP_CTS = $00000800;
|
|
RT2800_RX_FILTER_CFG_DROP_RTS = $00001000;
|
|
RT2800_RX_FILTER_CFG_DROP_PSPOLL = $00002000;
|
|
RT2800_RX_FILTER_CFG_DROP_BA = $00004000;
|
|
RT2800_RX_FILTER_CFG_DROP_BAR = $00008000;
|
|
RT2800_RX_FILTER_CFG_DROP_CNTL = $00010000;
|
RT2800_AUTO_RSP_*
RT2800_AUTO_RSP_CFG = $1404;
|
|
RT2800_AUTO_RSP_CFG_AUTORESPONDER = $00000001;
|
AUTORESPONDER: 0: disable, 1: enable |
RT2800_AUTO_RSP_CFG_BAC_ACK_POLICY = $00000002;
|
BAC_ACK_POLICY: 0:long, 1:short preamble |
RT2800_AUTO_RSP_CFG_CTS_40_MMODE = $00000004;
|
CTS_40_MMODE: Response CTS 40MHz duplicate mode |
RT2800_AUTO_RSP_CFG_CTS_40_MREF = $00000008;
|
CTS_40_MREF: Response CTS 40MHz duplicate mode |
RT2800_AUTO_RSP_CFG_AR_PREAMBLE = $00000010;
|
AR_PREAMBLE: Auto responder preamble 0:long, 1:short preamble |
RT2800_AUTO_RSP_CFG_DUAL_CTS_EN = $00000040;
|
DUAL_CTS_EN: Power bit value in control frame |
RT2800_AUTO_RSP_CFG_ACK_CTS_PSM_BIT = $00000080;
|
ACK_CTS_PSM_BIT:Power bit value in control frame |
RT2800_LEGACY_BASIC_RATE*
RT2800_LEGACY_BASIC_RATE = $1408;
|
RT2800_HT_BASIC_RATE*
RT2800_HT_BASIC_RATE = $140c;
|
RT2800_HT_CTRL_*
RT2800_HT_CTRL_CFG = $1410;
|
RT2800_SIFS_COST_*
RT2800_SIFS_COST_CFG = $1414;
|
RT2800_RX_PARSER_*
RX_PARSER_CFG (Set NAV for all received frames) | |
RT2800_RX_PARSER_CFG = $1418;
|
RT2800_*_SEC_CNT*
TX_SEC_CNT0 | |
RT2800_TX_SEC_CNT0 = $1500;
|
|
RX_SEC_CNT0 | |
RT2800_RX_SEC_CNT0 = $1504;
|
RT2800_CCMP_FC_MUTE*
RT2800_CCMP_FC_MUTE = $1508;
|
RT2800_TXOP_HLDR_ADDR*
TXOP_HLDR_ADDR0 | |
RT2800_TXOP_HLDR_ADDR0 = $1600;
|
|
TXOP_HLDR_ADDR1 | |
RT2800_TXOP_HLDR_ADDR1 = $1604;
|
|
TXOP_HLDR_ET | |
RT2800_TXOP_HLDR_ET = $1608;
|
RT2800_QOS_CFPOLL_*
QOS_CFPOLL_RA_DW0 | |
RT2800_QOS_CFPOLL_RA_DW0 = $160c;
|
|
QOS_CFPOLL_RA_DW1 | |
RT2800_QOS_CFPOLL_RA_DW1 = $1610;
|
|
QOS_CFPOLL_QC | |
RT2800_QOS_CFPOLL_QC = $1614;
|
RT2800_RX_STA_CNT*
RX_STA_CNT0 (RX PLCP error count & RX CRC error count) | |
RT2800_RX_STA_CNT0 = $1700;
|
|
RT2800_RX_STA_CNT0_CRC_ERR = $0000ffff;
|
|
RT2800_RX_STA_CNT0_PHY_ERR = $ffff0000;
|
|
RX_STA_CNT1 (RX False CCA count & RX LONG frame count) | |
RT2800_RX_STA_CNT1 = $1704;
|
|
RT2800_RX_STA_CNT1_FALSE_CCA = $0000ffff;
|
|
RT2800_RX_STA_CNT1_PLCP_ERR = $ffff0000;
|
|
RX_STA_CNT2 | |
RT2800_RX_STA_CNT2 = $1708;
|
|
RT2800_RX_STA_CNT2_RX_DUPLI_COUNT = $0000ffff;
|
|
RT2800_RX_STA_CNT2_RX_FIFO_OVERFLOW = $ffff0000;
|
RT2800_TX_STA_CNT*
TX_STA_CNT0 (TX Beacon count) | |
RT2800_TX_STA_CNT0 = $170c;
|
|
RT2800_TX_STA_CNT0_TX_FAIL_COUNT = $0000ffff;
|
|
RT2800_TX_STA_CNT0_TX_BEACON_COUNT = $ffff0000;
|
|
TX_STA_CNT1 (TX tx count) | |
RT2800_TX_STA_CNT1 = $1710;
|
|
RT2800_TX_STA_CNT1_TX_SUCCESS = $0000ffff;
|
|
RT2800_TX_STA_CNT1_TX_RETRANSMIT = $ffff0000;
|
|
TX_STA_CNT2 (TX tx count) | |
RT2800_TX_STA_CNT2 = $1714;
|
|
RT2800_TX_STA_CNT2_TX_ZERO_LEN_COUNT = $0000ffff;
|
|
RT2800_TX_STA_CNT2_TX_UNDER_FLOW_COUNT = $ffff0000;
|
RT2800_TX_STA_FIFO*
TX_STA_FIFO (TX Result for specific PID status fifo register) | |
Note: This register is implemented as FIFO with 16 entries in the HW. Each register read fetches the next tx result. If the FIFO is full because it wasn't read fast enough after the according interrupt (TX_FIFO_STATUS) triggered, the hw seems to simply drop further tx results. | |
RT2800_TX_STA_FIFO = $1718;
|
|
RT2800_TX_STA_FIFO_VALID = $00000001;
|
VALID: 1: this tx result is valid 0: no valid tx result -> driver should stop reading |
RT2800_TX_STA_FIFO_PID_TYPE = $0000001e;
|
PID_TYPE: The PID latched from the PID field in the TXWI, can be used to match a frame with its tx result (even though the PID isonly 4 bits wide) |
RT2800_TX_STA_FIFO_PID_QUEUE = $00000006;
|
PID_QUEUE: Part of PID_TYPE, this is the queue index number (0-3) |
RT2800_TX_STA_FIFO_PID_ENTRY = $00000018;
|
PID_ENTRY: Part of PID_TYPE, this is the queue entry index number (1-3; This identification number is calculated by ((idx % 3; + 1) |
RT2800_TX_STA_FIFO_TX_SUCCESS = $00000020;
|
TX_SUCCESS: Indicates tx success (1; or failure (0) |
RT2800_TX_STA_FIFO_TX_AGGRE = $00000040;
|
TX_AGGRE: Indicates if the frame was part of an aggregate (1; or not (0) |
RT2800_TX_STA_FIFO_TX_ACK_REQUIRED = $00000080;
|
TX_ACK_REQUIRED: Indicates if the frame needed to get ack'ed (1; or not (0) |
RT2800_TX_STA_FIFO_WCID = $0000ff00;
|
WCID: The wireless client Id. |
RT2800_TX_STA_FIFO_SUCCESS_RATE = $ffff0000;
|
|
RT2800_TX_STA_FIFO_MCS = $007f0000;
|
MCS: The tx rate used during the last transmission of this frame, be it successful or not. |
RT2800_TX_STA_FIFO_PHYMODE = $c0000000;
|
PHYMODE: The phymode used for the transmission. |
RT2800_TX_AGG_CNT*
TX_AGG_CNT | |
RT2800_TX_AGG_CNT = $171c;
|
|
RT2800_TX_AGG_CNT_NON_AGG_TX_COUNT = $0000ffff;
|
|
RT2800_TX_AGG_CNT_AGG_TX_COUNT = $ffff0000;
|
|
TX_AGG_CNT0 | |
RT2800_TX_AGG_CNT0 = $1720;
|
|
RT2800_TX_AGG_CNT0_AGG_SIZE_1_COUNT = $0000ffff;
|
|
RT2800_TX_AGG_CNT0_AGG_SIZE_2_COUNT = $ffff0000;
|
|
TX_AGG_CNT1 | |
RT2800_TX_AGG_CNT1 = $1724;
|
|
RT2800_TX_AGG_CNT1_AGG_SIZE_3_COUNT = $0000ffff;
|
|
RT2800_TX_AGG_CNT1_AGG_SIZE_4_COUNT = $ffff0000;
|
|
TX_AGG_CNT2 | |
RT2800_TX_AGG_CNT2 = $1728;
|
|
RT2800_TX_AGG_CNT2_AGG_SIZE_5_COUNT = $0000ffff;
|
|
RT2800_TX_AGG_CNT2_AGG_SIZE_6_COUNT = $ffff0000;
|
|
TX_AGG_CNT3 | |
RT2800_TX_AGG_CNT3 = $172c;
|
|
RT2800_TX_AGG_CNT3_AGG_SIZE_7_COUNT = $0000ffff;
|
|
RT2800_TX_AGG_CNT3_AGG_SIZE_8_COUNT = $ffff0000;
|
|
TX_AGG_CNT4 | |
RT2800_TX_AGG_CNT4 = $1730;
|
|
RT2800_TX_AGG_CNT4_AGG_SIZE_9_COUNT = $0000ffff;
|
|
RT2800_TX_AGG_CNT4_AGG_SIZE_10_COUNT = $ffff0000;
|
|
TX_AGG_CNT5 | |
RT2800_TX_AGG_CNT5 = $1734;
|
|
RT2800_TX_AGG_CNT5_AGG_SIZE_11_COUNT = $0000ffff;
|
|
RT2800_TX_AGG_CNT5_AGG_SIZE_12_COUNT = $ffff0000;
|
|
TX_AGG_CNT6 | |
RT2800_TX_AGG_CNT6 = $1738;
|
|
RT2800_TX_AGG_CNT6_AGG_SIZE_13_COUNT = $0000ffff;
|
|
RT2800_TX_AGG_CNT6_AGG_SIZE_14_COUNT = $ffff0000;
|
|
TX_AGG_CNT7 | |
RT2800_TX_AGG_CNT7 = $173c;
|
|
RT2800_TX_AGG_CNT7_AGG_SIZE_15_COUNT = $0000ffff;
|
|
RT2800_TX_AGG_CNT7_AGG_SIZE_16_COUNT = $ffff0000;
|
RT2800_MPDU_DENSITY_CNT*
RT2800_MPDU_DENSITY_CNT = $1740;
|
|
RT2800_MPDU_DENSITY_CNT_TX_ZERO_DEL = $0000ffff;
|
TX_ZERO_DEL: TX zero length delimiter count |
RT2800_MPDU_DENSITY_CNT_RX_ZERO_DEL = $ffff0000;
|
RX_ZERO_DEL: RX zero length delimiter count |
RT2800_*_KEY_TABLE_*
Note: The pairwise key table shares some memory with the beacon frame buffers 6 and 7. That basically means that when beacon 6 & 7 are used we should only use the reduced pairwise key table which has a maximum of 222 entries. | |
RT2800_MAC_WCID_BASE = $1800;
|
MAC_WCID_BASE: 8-bytes (use only 6 bytes) * 256 entry |
RT2800_PAIRWISE_KEY_TABLE_BASE = $4000;
|
PAIRWISE_KEY_TABLE_BASE: 32-byte * 256 entry |
RT2800_MAC_IVEIV_TABLE_BASE = $6000;
|
MAC_IVEIV_TABLE_BASE: 8-byte * 256-entry |
RT2800_MAC_WCID_ATTRIBUTE_BASE = $6800;
|
MAC_WCID_ATTRIBUTE_BASE: 4-byte * 256-entry |
RT2800_SHARED_KEY_TABLE_BASE = $6c00;
|
SHARED_KEY_TABLE_BASE: 32-byte * 16-entry |
RT2800_SHARED_KEY_MODE_BASE = $7000;
|
SHARED_KEY_MODE_BASE: 4-byte * 16-entry |
RT2800_MAC_WCID_ATTRIBUTE_*
RT2800_MAC_WCID_ATTRIBUTE_KEYTAB = $00000001;
|
|
RT2800_MAC_WCID_ATTRIBUTE_CIPHER = $0000000e;
|
|
RT2800_MAC_WCID_ATTRIBUTE_BSS_IDX = $00000070;
|
|
RT2800_MAC_WCID_ATTRIBUTE_RX_WIUDF = $00000380;
|
|
RT2800_MAC_WCID_ATTRIBUTE_CIPHER_EXT = $00000400;
|
|
RT2800_MAC_WCID_ATTRIBUTE_BSS_IDX_EXT = $00000800;
|
|
RT2800_MAC_WCID_ATTRIBUTE_WAPI_MCBC = $00008000;
|
|
RT2800_MAC_WCID_ATTRIBUTE_WAPI_KEY_IDX = $ff000000;
|
RT2800_SHARED_KEY_MODE_*
RT2800_SHARED_KEY_MODE_BSS0_KEY0 = $00000007;
|
|
RT2800_SHARED_KEY_MODE_BSS0_KEY1 = $00000070;
|
|
RT2800_SHARED_KEY_MODE_BSS0_KEY2 = $00000700;
|
|
RT2800_SHARED_KEY_MODE_BSS0_KEY3 = $00007000;
|
|
RT2800_SHARED_KEY_MODE_BSS1_KEY0 = $00070000;
|
|
RT2800_SHARED_KEY_MODE_BSS1_KEY1 = $00700000;
|
|
RT2800_SHARED_KEY_MODE_BSS1_KEY2 = $07000000;
|
|
RT2800_SHARED_KEY_MODE_BSS1_KEY3 = $70000000;
|
RT2800_H2M_MAILBOX_*
RT2800_H2M_MAILBOX_CSR = $7010;
|
|
RT2800_H2M_MAILBOX_CSR_ARG0 = $000000ff;
|
|
RT2800_H2M_MAILBOX_CSR_ARG1 = $0000ff00;
|
|
RT2800_H2M_MAILBOX_CSR_CMD_TOKEN = $00ff0000;
|
CMD_TOKEN: Command id, = $ff disable status reporting. |
RT2800_H2M_MAILBOX_CSR_OWNER = $ff000000;
|
RT2800_H2M_MAILBOX_CID_*
Note: Free slots contain = $ff. MCU will store command's token to lowest free slot. If all slots are occupied status will be dropped. | |
RT2800_H2M_MAILBOX_CID = $7014;
|
|
RT2800_H2M_MAILBOX_CID_CMD0 = $000000ff;
|
|
RT2800_H2M_MAILBOX_CID_CMD1 = $0000ff00;
|
|
RT2800_H2M_MAILBOX_CID_CMD2 = $00ff0000;
|
|
RT2800_H2M_MAILBOX_CID_CMD3 = $ff000000;
|
RT2800_H2M_MAILBOX_STATUS*
Note: Command status will be saved to same slot as command Id | |
RT2800_H2M_MAILBOX_STATUS = $701c;
|
RT2800_H2M_INT_SRC*
RT2800_H2M_INT_SRC = $7024;
|
RT2800_H2M_BBP_AGENT*
RT2800_H2M_BBP_AGENT = $7028;
|
RT2800_MCU_LEDCS_*
MCU_LEDCS (LED control for MCU Mailbox) | |
RT2800_MCU_LEDCS_LED_MODE = $1f;
|
|
RT2800_MCU_LEDCS_POLARITY = $01;
|
RT2800_HW_CS_CTS_BASE*
HW_CS_CTS_BASE (Carrier-sense CTS frame base address) | |
Note: It's where mac stores carrier-sense frame for carrier-sense function | |
RT2800_HW_CS_CTS_BASE = $7700;
|
RT2800_HW_DFS_CTS_BASE*
HW_DFS_CTS_BASE (DFS CTS frame base address) | |
Note: It's where mac stores CTS frame for DFS | |
RT2800_HW_DFS_CTS_BASE = $7780;
|
RT2800_TXRX_CSR*
Note: Base address = $3000 | |
TXRX_CSR1 | |
Note: rt2860b UNKNOWN reg use R/O Reg Addr = $77d0 first.. | |
RT2800_TXRX_CSR1 = $77d0;
|
RT2800_HW_DEBUG_SETTING_*
Note: Since NULL frame won't be that long (256 byte) we steal 16 tail bytes to save debugging settings | |
RT2800_HW_DEBUG_SETTING_BASE = $77f0;
|
|
RT2800_HW_DEBUG_SETTING_BASE2 = $7770;
|
RT2800_HW_BEACON_BASE*
Note: In order to support maximum 8 MBSS and its maximum length is 512 bytes for each beacon. Three section discontinue memory segments will be used.
1. The original region for BCN 0~3
| |
IMPORTANT NOTE: Not sure why legacy driver does this, but HW_BEACON_BASE7 is = $0200 bytes below HW_BEACON_BASE6 | |
RT2800_HW_BEACON_BASE0 = $7800;
|
|
RT2800_HW_BEACON_BASE1 = $7a00;
|
|
RT2800_HW_BEACON_BASE2 = $7c00;
|
|
RT2800_HW_BEACON_BASE3 = $7e00;
|
|
RT2800_HW_BEACON_BASE4 = $7200;
|
|
RT2800_HW_BEACON_BASE5 = $7400;
|
|
RT2800_HW_BEACON_BASE6 = $5dc0;
|
|
RT2800_HW_BEACON_BASE7 = $5bc0;
|
RT2800_BBP*
Note: The wordsize of the BBP is 8 bits | |
BBP 1 (TX Antenna & Power Control) | |
RT2800_BBP1_TX_POWER_CTRL = $03;
|
POWER_CTRL: 0 - normal, 1 - drop tx power by 6dBm, 2 - drop tx power by 12dBm, 3 - increase tx power by 6dBm |
RT2800_BBP1_TX_ANTENNA = $18;
|
|
BBP 3 (RX Antenna) | |
RT2800_BBP3_RX_ADC = $03;
|
|
RT2800_BBP3_RX_ANTENNA = $18;
|
|
RT2800_BBP3_HT40_MINUS = $20;
|
|
RT2800_BBP3_ADC_MODE_SWITCH = $40;
|
|
RT2800_BBP3_ADC_INIT_MODE = $80;
|
|
BBP 4 (Bandwidth) | |
RT2800_BBP4_TX_BF = $01;
|
|
RT2800_BBP4_BANDWIDTH = $18;
|
|
RT2800_BBP4_MAC_IF_CTRL = $40;
|
|
BBP27 | |
RT2800_BBP27_RX_CHAIN_SEL = $60;
|
|
BBP 47 (Bandwidth) | |
RT2800_BBP47_TSSI_REPORT_SEL = $03;
|
|
RT2800_BBP47_TSSI_UPDATE_REQ = $04;
|
|
RT2800_BBP47_TSSI_TSSI_MODE = $18;
|
|
RT2800_BBP47_TSSI_ADC6 = $80;
|
|
BBP 49 | |
RT2800_BBP49_UPDATE_FLAG = $01;
|
|
BBP 105 | |
RT2800_BBP105_DETECT_SIG_ON_PRIMARY = $01;
|
bit0: detect SIG on primary channel only (on 40MHz bandwidth) |
RT2800_BBP105_FEQ = $02;
|
bit1: FEQ (Feed Forward Compensation) for independent streams |
RT2800_BBP105_MLD = $04;
|
bit2: MLD (Maximum Likehood Detection) for 2 streams (reserved on single stream) |
RT2800_BBP105_SIG_REMODULATION = $08;
|
bit4: channel estimation updates based on remodulation of L-SIG and HT-SIG symbols |
BBP 109 | |
RT2800_BBP109_TX0_POWER = $0f;
|
|
RT2800_BBP109_TX1_POWER = $f0;
|
|
BBP 110 | |
RT2800_BBP110_TX2_POWER = $0f;
|
|
BBP 138 (Unknown) | |
RT2800_BBP138_RX_ADC1 = $02;
|
|
RT2800_BBP138_RX_ADC2 = $04;
|
|
RT2800_BBP138_TX_DAC1 = $20;
|
|
RT2800_BBP138_TX_DAC2 = $40;
|
|
BBP 152 (Rx Ant) | |
RT2800_BBP152_RX_DEFAULT_ANT = $80;
|
|
BBP 254 (unknown) | |
RT2800_BBP254_BIT7 = $80;
|
RT2800_RFCSR*
Note: The wordsize of the RFCSR is 8 bits | |
RFCSR 1 | |
RT2800_RFCSR1_RF_BLOCK_EN = $01;
|
|
RT2800_RFCSR1_PLL_PD = $02;
|
|
RT2800_RFCSR1_RX0_PD = $04;
|
|
RT2800_RFCSR1_TX0_PD = $08;
|
|
RT2800_RFCSR1_RX1_PD = $10;
|
|
RT2800_RFCSR1_TX1_PD = $20;
|
|
RT2800_RFCSR1_RX2_PD = $40;
|
|
RT2800_RFCSR1_TX2_PD = $80;
|
|
RFCSR 2 | |
RT2800_RFCSR2_RESCAL_EN = $80;
|
|
RFCSR 3 | |
RT2800_RFCSR3_K = $0f;
|
|
bits [7-4] for RF3320 (RT3370/RT3390;, on other chipsets reserved | |
RT2800_RFCSR3_PA1_BIAS_CCK = $70;
|
|
RT2800_RFCSR3_PA2_CASCODE_BIAS_CCKK = $80;
|
|
bits for RF3290/RF5360/RF5362/RF5370/RF5372/RF5390/RF5392 | |
RT2800_RFCSR3_VCOCAL_EN = $80;
|
|
bits for RF3050 | |
RT2800_RFCSR3_BIT1 = $02;
|
|
RT2800_RFCSR3_BIT2 = $04;
|
|
RT2800_RFCSR3_BIT3 = $08;
|
|
RT2800_RFCSR3_BIT4 = $10;
|
|
RT2800_RFCSR3_BIT5 = $20;
|
|
RFCSR 5 | |
RT2800_RFCSR5_R1 = $0c;
|
|
RFCSR 6 | |
RT2800_RFCSR6_R1 = $03;
|
|
RT2800_RFCSR6_R2 = $40;
|
|
RT2800_RFCSR6_TXDIV = $0c;
|
|
bits for RF3053 | |
RT2800_RFCSR6_VCO_IC = $c0;
|
|
RFCSR 7 | |
RT2800_RFCSR7_RF_TUNING = $01;
|
|
RT2800_RFCSR7_BIT1 = $02;
|
|
RT2800_RFCSR7_BIT2 = $04;
|
|
RT2800_RFCSR7_BIT3 = $08;
|
|
RT2800_RFCSR7_BIT4 = $10;
|
|
RT2800_RFCSR7_BIT5 = $20;
|
|
RT2800_RFCSR7_BITS67 = $c0;
|
|
RFCSR 9 | |
RT2800_RFCSR9_K = $0f;
|
|
RT2800_RFCSR9_N = $10;
|
|
RT2800_RFCSR9_UNKNOWN = $60;
|
|
RT2800_RFCSR9_MOD = $80;
|
|
RFCSR 11 | |
RT2800_RFCSR11_R = $03;
|
|
RT2800_RFCSR11_PLL_MOD = $0c;
|
|
RT2800_RFCSR11_MOD = $c0;
|
|
bits for RF3053 | |
RT2800_RFCSR11_PLL_IDOH= $40;
|
|
RFCSR 12 | |
RT2800_RFCSR12_TX_POWER = $1f;
|
|
RT2800_RFCSR12_DR0 = $e0;
|
|
RFCSR 13 | |
RT2800_RFCSR13_TX_POWER = $1f;
|
|
RT2800_RFCSR13_DR0 = $e0;
|
|
RFCSR 15 | |
RT2800_RFCSR15_TX_LO2_EN = $08;
|
|
RFCSR 16 | |
RT2800_RFCSR16_TXMIXER_GAIN = $07;
|
|
RFCSR 17 | |
RT2800_RFCSR17_TXMIXER_GAIN = $07;
|
|
RT2800_RFCSR17_TX_LO1_EN = $08;
|
|
RT2800_RFCSR17_R = $20;
|
|
RT2800_RFCSR17_CODE = $7f;
|
|
RFCSR 18 | |
RT2800_RFCSR18_XO_TUNE_BYPASS = $40;
|
|
RFCSR 20 | |
RT2800_RFCSR20_RX_LO1_EN = $08;
|
|
RFCSR 21 | |
RT2800_RFCSR21_RX_LO2_EN = $08;
|
|
RFCSR 22 | |
RT2800_RFCSR22_BASEBAND_LOOPBACK = $01;
|
|
RFCSR 23 | |
RT2800_RFCSR23_FREQ_OFFSET = $7f;
|
|
RFCSR 24 | |
RT2800_RFCSR24_TX_AGC_FC = $1f;
|
|
RT2800_RFCSR24_TX_H20M = $20;
|
|
RT2800_RFCSR24_TX_CALIB = $7f;
|
|
RFCSR 27 | |
RT2800_RFCSR27_R1 = $03;
|
|
RT2800_RFCSR27_R2 = $04;
|
|
RT2800_RFCSR27_R3 = $30;
|
|
RT2800_RFCSR27_R4 = $40;
|
|
RFCSR 29 | |
RT2800_RFCSR29_ADC6_TEST = $01;
|
|
RT2800_RFCSR29_ADC6_INT_TEST = $02;
|
|
RT2800_RFCSR29_RSSI_RESET = $04;
|
|
RT2800_RFCSR29_RSSI_ON = $08;
|
|
RT2800_RFCSR29_RSSI_RIP_CTRL = $30;
|
|
RT2800_RFCSR29_RSSI_GAIN = $c0;
|
|
RFCSR 30 | |
RT2800_RFCSR30_TX_H20M = $02;
|
|
RT2800_RFCSR30_RX_H20M = $04;
|
|
RT2800_RFCSR30_RX_VCM = $18;
|
|
RT2800_RFCSR30_RF_CALIBRATION = $80;
|
|
RFCSR 31 | |
RT2800_RFCSR31_RX_AGC_FC = $1f;
|
|
RT2800_RFCSR31_RX_H20M = $20;
|
|
RT2800_RFCSR31_RX_CALIB = $7f;
|
|
RFCSR 32 bits for RF3053 | |
RT2800_RFCSR32_TX_AGC_FC = $f8;
|
|
RFCSR 36 bits for RF3053 | |
RT2800_RFCSR36_RF_BS = $80;
|
|
RFCSR 38 | |
RT2800_RFCSR38_RX_LO1_EN = $20;
|
|
RFCSR 39 | |
RT2800_RFCSR39_RX_DIV = $40;
|
|
RT2800_RFCSR39_RX_LO2_EN = $80;
|
|
RFCSR 49 | |
RT2800_RFCSR49_TX = $3f;
|
|
RT2800_RFCSR49_EP = $c0;
|
|
bits for RT3593 | |
RT2800_RFCSR49_TX_LO1_IC = $1c;
|
|
RT2800_RFCSR49_TX_DIV = $20;
|
|
RFCSR 50 | |
RT2800_RFCSR50_TX = $3f;
|
|
RT2800_RFCSR50_EP = $c0;
|
|
bits for RT3593 | |
RT2800_RFCSR50_TX_LO1_EN = $20;
|
|
RT2800_RFCSR50_TX_LO2_EN = $10;
|
|
RFCSR 51 | |
bits for RT3593 | |
RT2800_RFCSR51_BITS01 = $03;
|
|
RT2800_RFCSR51_BITS24 = $1c;
|
|
RT2800_RFCSR51_BITS57 = $e0;
|
|
RT2800_RFCSR53_TX_POWER = $3f;
|
|
RT2800_RFCSR53_UNKNOWN = $c0;
|
|
RT2800_RFCSR54_TX_POWER = $3f;
|
|
RT2800_RFCSR54_UNKNOWN = $c0;
|
|
RT2800_RFCSR55_TX_POWER = $3f;
|
|
RT2800_RFCSR55_UNKNOWN = $c0;
|
|
RT2800_RFCSR57_DRV_CC = $fc;
|
RT2800_RF*
RF 2 | |
RT2800_RF2_ANTENNA_RX2 = $00000040;
|
|
RT2800_RF2_ANTENNA_TX1 = $00004000;
|
|
RT2800_RF2_ANTENNA_RX1 = $00020000;
|
|
RF 3 | |
RT2800_RF3_TXPOWER_G = $00003e00;
|
|
RT2800_RF3_TXPOWER_A_7DBM_BOOST = $00000200;
|
|
RT2800_RF3_TXPOWER_A = $00003c00;
|
|
RF 4 | |
RT2800_RF4_TXPOWER_G = $000007c0;
|
|
RT2800_RF4_TXPOWER_A_7DBM_BOOST = $00000040;
|
|
RT2800_RF4_TXPOWER_A = $00000780;
|
|
RT2800_RF4_FREQ_OFFSET = $001f8000;
|
|
RT2800_RF4_HT40 = $00200000;
|
RT2800_EEPROM_*
Note: The wordsize of the EEPROM is 16 bits | |
RT2800_EEPROM_CHIP_ID = 0;
|
|
RT2800_EEPROM_VERSION = 1;
|
|
RT2800_EEPROM_MAC_ADDR_0 = 2;
|
|
RT2800_EEPROM_MAC_ADDR_1 = 3;
|
|
RT2800_EEPROM_MAC_ADDR_2 = 4;
|
|
RT2800_EEPROM_NIC_CONF0 = 5;
|
|
RT2800_EEPROM_NIC_CONF1 = 6;
|
|
RT2800_EEPROM_FREQ = 7;
|
|
RT2800_EEPROM_LED_AG_CONF = 8;
|
|
RT2800_EEPROM_LED_ACT_CONF = 9;
|
|
RT2800_EEPROM_LED_POLARITY = 10;
|
|
RT2800_EEPROM_NIC_CONF2 = 11;
|
|
RT2800_EEPROM_LNA = 12;
|
|
RT2800_EEPROM_RSSI_BG = 13;
|
|
RT2800_EEPROM_RSSI_BG2 = 14;
|
|
RT2800_EEPROM_TXMIXER_GAIN_BG = 15;
|
|
RT2800_EEPROM_RSSI_A = 16;
|
|
RT2800_EEPROM_RSSI_A2 = 17;
|
|
RT2800_EEPROM_TXMIXER_GAIN_A = 18;
|
|
RT2800_EEPROM_EIRP_MAX_TX_POWER = 19;
|
|
RT2800_EEPROM_TXPOWER_DELTA = 20;
|
|
RT2800_EEPROM_TXPOWER_BG1 = 21;
|
|
RT2800_EEPROM_TXPOWER_BG2 = 22;
|
|
RT2800_EEPROM_TSSI_BOUND_BG1 = 23;
|
|
RT2800_EEPROM_TSSI_BOUND_BG2 = 24;
|
|
RT2800_EEPROM_TSSI_BOUND_BG3 = 25;
|
|
RT2800_EEPROM_TSSI_BOUND_BG4 = 26;
|
|
RT2800_EEPROM_TSSI_BOUND_BG5 = 27;
|
|
RT2800_EEPROM_TXPOWER_A1 = 28;
|
|
RT2800_EEPROM_TXPOWER_A2 = 29;
|
|
RT2800_EEPROM_TSSI_BOUND_A1 = 30;
|
|
RT2800_EEPROM_TSSI_BOUND_A2 = 31;
|
|
RT2800_EEPROM_TSSI_BOUND_A3 = 32;
|
|
RT2800_EEPROM_TSSI_BOUND_A4 = 33;
|
|
RT2800_EEPROM_TSSI_BOUND_A5 = 34;
|
|
RT2800_EEPROM_TXPOWER_BYRATE = 35;
|
|
RT2800_EEPROM_BBP_START = 36;
|
|
Ids for extended EEPROM format used by three-chain devices | |
RT2800_EEPROM_EXT_LNA2 = 37;
|
|
RT2800_EEPROM_EXT_TXPOWER_BG3 = 38;
|
|
RT2800_EEPROM_EXT_TXPOWER_A3 = 39;
|
|
New values must be added before this | |
RT2800_EEPROM_WORD_COUNT = 40;
|
RT2800_EEPROM_VERSION_*
RT2800_EEPROM_VERSION_FAE = $00ff;
|
|
RT2800_EEPROM_VERSION_VERSION = $ff00;
|
RT2800_EEPROM_MAC_ADDR_*
RT2800_EEPROM_MAC_ADDR_BYTE0 = $00ff;
|
|
RT2800_EEPROM_MAC_ADDR_BYTE1 = $ff00;
|
|
RT2800_EEPROM_MAC_ADDR_BYTE2 = $00ff;
|
|
RT2800_EEPROM_MAC_ADDR_BYTE3 = $ff00;
|
|
RT2800_EEPROM_MAC_ADDR_BYTE4 = $00ff;
|
|
RT2800_EEPROM_MAC_ADDR_BYTE5 = $ff00;
|
RT2800_EEPROM_NIC_CONF*
EEPROM NIC configuration 0 | |
RT2800_EEPROM_NIC_CONF0_RXPATH = $000f;
|
RXPATH: 1: 1R, 2: 2R, 3: 3R |
RT2800_EEPROM_NIC_CONF0_TXPATH = $00f0;
|
TXPATH: 1: 1T, 2: 2T, 3: 3T |
RT2800_EEPROM_NIC_CONF0_RF_TYPE = $0f00;
|
RF_TYPE: RFIC type |
EEPROM NIC configuration 1 | |
RT2800_EEPROM_NIC_CONF1_HW_RADIO = $0001;
|
HW_RADIO: 0: disable, 1: enable |
RT2800_EEPROM_NIC_CONF1_EXTERNAL_TX_ALC = $0002;
|
EXTERNAL_TX_ALC: 0: disable, 1: enable |
RT2800_EEPROM_NIC_CONF1_EXTERNAL_LNA_2G = $0004;
|
EXTERNAL_LNA_2G: 0: disable, 1: enable |
RT2800_EEPROM_NIC_CONF1_EXTERNAL_LNA_5G = $0008;
|
EXTERNAL_LNA_5G: 0: disable, 1: enable |
RT2800_EEPROM_NIC_CONF1_CARDBUS_ACCEL = $0010;
|
CARDBUS_ACCEL: 0: enable, 1: disable |
RT2800_EEPROM_NIC_CONF1_BW40M_SB_2G = $0020;
|
BW40M_SB_2G: 0: disable, 1: enable |
RT2800_EEPROM_NIC_CONF1_BW40M_SB_5G = $0040;
|
BW40M_SB_5G: 0: disable, 1: enable |
RT2800_EEPROM_NIC_CONF1_WPS_PBC = $0080;
|
WPS_PBC: 0: disable, 1: enable |
RT2800_EEPROM_NIC_CONF1_BW40M_2G = $0100;
|
BW40M_2G: 0: enable, 1: disable |
RT2800_EEPROM_NIC_CONF1_BW40M_5G = $0200;
|
BW40M_5G: 0: enable, 1: disable |
RT2800_EEPROM_NIC_CONF1_BROADBAND_EXT_LNA = $400;
|
BROADBAND_EXT_LNA: 0: disable, 1: enable |
RT2800_EEPROM_NIC_CONF1_ANT_DIVERSITY = $1800;
|
ANT_DIVERSITY: 00: Disable, 01: Diversity, 10: Main antenna, 11: Aux antenna |
RT2800_EEPROM_NIC_CONF1_INTERNAL_TX_ALC = $2000;
|
INTERNAL_TX_ALC: 0: disable, 1: enable |
RT2800_EEPROM_NIC_CONF1_BT_COEXIST = $4000;
|
BT_COEXIST: 0: disable, 1: enable |
RT2800_EEPROM_NIC_CONF1_DAC_TEST = $8000;
|
DAC_TEST: 0: disable, 1: enable |
EEPROM NIC configuration 2 | |
RT2800_EEPROM_NIC_CONF2_RX_STREAM= $000f;
|
RX_STREAM: 0: Reserved, 1: 1 Stream, 2: 2 Stream |
RT2800_EEPROM_NIC_CONF2_TX_STREAM = $00f0;
|
TX_STREAM: 0: Reserved, 1: 1 Stream, 2: 2 Stream |
RT2800_EEPROM_NIC_CONF2_CRYSTAL = $0600;
|
CRYSTAL: 00: Reserved, 01: One crystal, 10: Two crystal, 11: Reserved |
RT2800_EEPROM_FREQ_*
RT2800_EEPROM_FREQ_OFFSET = $00ff;
|
|
RT2800_EEPROM_FREQ_LED_MODE = $7f00;
|
|
RT2800_EEPROM_FREQ_LED_POLARITY = $1000;
|
RT2800_EEPROM_LED_POLARITY_*
RT2800_EEPROM_LED_POLARITY_RDY_BG = $0001;
|
POLARITY_RDY_G: Polarity RDY_G setting |
RT2800_EEPROM_LED_POLARITY_RDY_A = $0002;
|
POLARITY_RDY_A: Polarity RDY_A setting |
RT2800_EEPROM_LED_POLARITY_ACT = $0004;
|
POLARITY_ACT: Polarity ACT setting |
RT2800_EEPROM_LED_POLARITY_GPIO_0 = $0008;
|
POLARITY_GPIO_0: Polarity GPIO0 setting |
RT2800_EEPROM_LED_POLARITY_GPIO_1 = $0010;
|
POLARITY_GPIO_1: Polarity GPIO1 setting |
RT2800_EEPROM_LED_POLARITY_GPIO_2 = $0020;
|
POLARITY_GPIO_2: Polarity GPIO2 setting |
RT2800_EEPROM_LED_POLARITY_GPIO_3 = $0040;
|
POLARITY_GPIO_3: Polarity GPIO3 setting |
RT2800_EEPROM_LED_POLARITY_GPIO_4 = $0080;
|
POLARITY_GPIO_4: Polarity GPIO4 setting |
RT2800_EEPROM_LED_LED_MODE = $1f00;
|
LED_MODE: Led mode |
RT2800_EEPROM_LNA_*
RT2800_EEPROM_LNA_BG = $00ff;
|
|
RT2800_EEPROM_LNA_A0 = $ff00;
|
RT2800_EEPROM_RSSI_*_OFFSET*
EEPROM RSSI BG offset | |
RT2800_EEPROM_RSSI_BG_OFFSET0 = $00ff;
|
|
RT2800_EEPROM_RSSI_BG_OFFSET1 = $ff00;
|
|
EEPROM RSSI BG2 offset | |
RT2800_EEPROM_RSSI_BG2_OFFSET2 = $00ff;
|
|
RT2800_EEPROM_RSSI_BG2_LNA_A1 = $ff00;
|
|
EEPROM RSSI A offset | |
RT2800_EEPROM_RSSI_A_OFFSET0 = $00ff;
|
|
RT2800_EEPROM_RSSI_A_OFFSET1 = $ff00;
|
|
EEPROM RSSI A2 offset | |
RT2800_EEPROM_RSSI_A2_OFFSET2 = $00ff;
|
|
RT2800_EEPROM_RSSI_A2_LNA_A2 = $ff00;
|
RT2800_EEPROM_TXMIXER_*
EEPROM TXMIXER GAIN BG offset (Note: Overlaps with EEPROM RSSI BG2) | |
RT2800_EEPROM_TXMIXER_GAIN_BG_VAL = $0007;
|
|
EEPROM TXMIXER GAIN A offset (Note: Overlaps with EEPROM RSSI A2) | |
RT2800_EEPROM_TXMIXER_GAIN_A_VAL = $0007;
|
RT2800_EEPROM_EIRP_MAX_TX_POWER_*
Note: Unit: dbm | |
RT2800_EEPROM_EIRP_MAX_TX_POWER_2GHZ = $00ff;
|
|
RT2800_EEPROM_EIRP_MAX_TX_POWER_5GHZ = $ff00;
|
RT2800_EEPROM_TXPOWER_DELTA_*
Note: 20MHZ and 40MHZ use different power
This is delta in 40MHZ | |
RT2800_EEPROM_TXPOWER_DELTA_VALUE_2G = $003f;
|
VALUE: Tx Power dalta value, MAX=4(unit: dbm) |
RT2800_EEPROM_TXPOWER_DELTA_TYPE_2G = $0040;
|
TYPE: 1: Plus the delta value, 0: minus the delta value |
RT2800_EEPROM_TXPOWER_DELTA_ENABLE_2G = $0080;
|
ENABLE: enable tx power compensation for 40BW |
RT2800_EEPROM_TXPOWER_DELTA_VALUE_5G = $3f00;
|
|
RT2800_EEPROM_TXPOWER_DELTA_TYPE_5G = $4000;
|
|
RT2800_EEPROM_TXPOWER_DELTA_ENABLE_5G = $8000;
|
RT2800_EEPROM_TXPOWER_BG_*
RT2800_EEPROM_TXPOWER_BG_SIZE = 7;
|
|
RT2800_EEPROM_TXPOWER_BG_1 = $00ff;
|
|
RT2800_EEPROM_TXPOWER_BG_2 = $ff00;
|
RT2800_EEPROM_TSSI_BOUND_*
EEPROM temperature compensation boundaries BG1 | |
RT2800_EEPROM_TSSI_BOUND_BG1_MINUS4 = $00ff; {MINUS4: If the actual TSSI is below this boundary, tx power needs to be reduced by (agc_step {-4)}
|
|
RT2800_EEPROM_TSSI_BOUND_BG1_MINUS3 = $ff00; {MINUS3: If the actual TSSI is below this boundary, tx power needs to be reduced by (agc_step {-3)}
|
|
EEPROM temperature compensation boundaries BG2 | |
RT2800_EEPROM_TSSI_BOUND_BG2_MINUS2 = $00ff; {MINUS2: If the actual TSSI is below this boundary, tx power needs to be reduced by (agc_step {-2)}
|
|
RT2800_EEPROM_TSSI_BOUND_BG2_MINUS1 = $ff00; {MINUS1: If the actual TSSI is below this boundary, tx power needs to be reduced by (agc_step {-1)}
|
|
EEPROM temperature compensation boundaries BG3 | |
RT2800_EEPROM_TSSI_BOUND_BG3_REF = $00ff; {REF: Reference TSSI value, no tx power changes needed}
|
|
RT2800_EEPROM_TSSI_BOUND_BG3_PLUS1 = $ff00; {PLUS1: If the actual TSSI is above this boundary, tx power needs to be increased by (agc_step {1)}
|
|
EEPROM temperature compensation boundaries BG4 | |
RT2800_EEPROM_TSSI_BOUND_BG4_PLUS2 = $00ff; {PLUS2: If the actual TSSI is above this boundary, tx power needs to be increased by (agc_step {2)}
|
|
RT2800_EEPROM_TSSI_BOUND_BG4_PLUS3 = $ff00; {PLUS3: If the actual TSSI is above this boundary, tx power needs to be increased by (agc_step {3)}
|
|
EEPROM temperature compensation boundaries BG5 | |
RT2800_EEPROM_TSSI_BOUND_BG5_PLUS4 = $00ff;
|
PLUS4: If the actual TSSI is above this boundary, tx power needs to be increased by (agc_step (4)) |
RT2800_EEPROM_TSSI_BOUND_BG5_AGC_STEP = $ff00;
|
AGC_STEP: Temperature compensation step |
EEPROM temperature compensation boundaries A1 | |
RT2800_EEPROM_TSSI_BOUND_A1_MINUS4 = $00ff;
|
MINUS4: If the actual TSSI is below this boundary, tx power needs to be reduced by (agc_step (-4)) |
RT2800_EEPROM_TSSI_BOUND_A1_MINUS3 = $ff00;
|
MINUS3: If the actual TSSI is below this boundary, tx power needs to be reduced by (agc_step (-3)) |
EEPROM temperature compensation boundaries A2 | |
RT2800_EEPROM_TSSI_BOUND_A2_MINUS2 = $00ff;
|
MINUS2: If the actual TSSI is below this boundary, tx power needs to be reduced by (agc_step (-2)) |
RT2800_EEPROM_TSSI_BOUND_A2_MINUS1 = $ff00;
|
MINUS1: If the actual TSSI is below this boundary, tx power needs to be reduced by (agc_step (-1)) |
EEPROM temperature compensation boundaries A3 | |
RT2800_EEPROM_TSSI_BOUND_A3_REF = $00ff;
|
REF: Reference TSSI value, no tx power changes needed |
RT2800_EEPROM_TSSI_BOUND_A3_PLUS1 = $ff00;
|
PLUS1: If the actual TSSI is above this boundary, tx power needs to be increased by (agc_step (1)) |
EEPROM temperature compensation boundaries A4 | |
RT2800_EEPROM_TSSI_BOUND_A4_PLUS2 = $00ff;
|
PLUS2: If the actual TSSI is above this boundary, tx power needs to be increased by (agc_step (2)) |
RT2800_EEPROM_TSSI_BOUND_A4_PLUS3 = $ff00;
|
PLUS3: If the actual TSSI is above this boundary, tx power needs to be increased by (agc_step (3)) |
EEPROM temperature compensation boundaries A5 | |
RT2800_EEPROM_TSSI_BOUND_A5_PLUS4 = $00ff;
|
PLUS4: If the actual TSSI is above this boundary, tx power needs to be increased by (agc_step (4)) |
RT2800_EEPROM_TSSI_BOUND_A5_AGC_STEP = $ff00;
|
AGC_STEP: Temperature compensation step |
RT2800_EEPROM_TXPOWER_A_*
RT2800_EEPROM_TXPOWER_A_SIZE = 6;
|
|
RT2800_EEPROM_TXPOWER_A_1 = $00ff;
|
|
RT2800_EEPROM_TXPOWER_A_2 = $ff00;
|
RT2800_EEPROM_TXPOWER_ALC*
EEPROM_TXPOWER_(A,G) fields for RT3593 | |
RT2800_EEPROM_TXPOWER_ALC = $1f;
|
|
RT2800_EEPROM_TXPOWER_FINE_CTRL = $e0;
|
RT2800_EEPROM_TXPOWER_BYRATE_*
Note: EEPROM TXPOWER by rate: tx power per tx rate for HT20 mode | |
RT2800_EEPROM_TXPOWER_BYRATE_SIZE = 9;
|
|
RT2800_EEPROM_TXPOWER_BYRATE_RATE0 = $000f;
|
|
RT2800_EEPROM_TXPOWER_BYRATE_RATE1 = $00f0;
|
|
RT2800_EEPROM_TXPOWER_BYRATE_RATE2 = $0f00;
|
|
RT2800_EEPROM_TXPOWER_BYRATE_RATE3 = $f000;
|
RT2800_EEPROM_BBP_*
RT2800_EEPROM_BBP_SIZE = 16;
|
|
RT2800_EEPROM_BBP_VALUE = $00ff;
|
|
RT2800_EEPROM_BBP_REG_ID = $ff00;
|
RT2800_EEPROM_EXT_LNA2_*
RT2800_EEPROM_EXT_LNA2_A1 = $00ff;
|
|
RT2800_EEPROM_EXT_LNA2_A2 = $ff00;
|
RT2800_EEPROM_IQ_*
Note: Unlike other entries these are byte addresses | |
RT2800_EEPROM_IQ_GAIN_CAL_TX0_2G = $130;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_TX0_2G = $131;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_TX0_2G = $132;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_TX1_2G = $133;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_TX1_2G = $134;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_TX1_2G = $135;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_RX0_2G = $136;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_RX0_2G = $137;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_RX0_2G = $138;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_RX1_2G = $139;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_RX1_2G = $13A;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_RX1_2G = $13B;
|
|
RT2800_EEPROM_RF_IQ_COMPENSATION_CONTROL = $13C;
|
|
RT2800_EEPROM_RF_IQ_IMBALANCE_COMPENSATION_CONTROL = $13D;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_TX0_CH36_TO_CH64_5G = $144;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_TX0_CH36_TO_CH64_5G = $145;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_TX0_CH100_TO_CH138_5G = $146;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_TX0_CH100_TO_CH138_5G = $147;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_TX0_CH140_TO_CH165_5G = $148;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_TX0_CH140_TO_CH165_5G = $149;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_TX1_CH36_TO_CH64_5G = $14A;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_TX1_CH36_TO_CH64_5G = $14B;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_TX1_CH100_TO_CH138_5G = $14C;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_TX1_CH100_TO_CH138_5G = $14D;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_TX1_CH140_TO_CH165_5G = $14E;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_TX1_CH140_TO_CH165_5G = $14F;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_TX0_CH36_TO_CH64_5G = $150;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_TX1_CH36_TO_CH64_5G = $151;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_TX0_CH100_TO_CH138_5G = $152;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_TX1_CH100_TO_CH138_5G = $153;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_TX0_CH140_TO_CH165_5G = $154;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_TX1_CH140_TO_CH165_5G = $155;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_RX0_CH36_TO_CH64_5G = $156;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_RX0_CH36_TO_CH64_5G = $157;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_RX0_CH100_TO_CH138_5G = $158;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_RX0_CH100_TO_CH138_5G = $159;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_RX0_CH140_TO_CH165_5G = $15A;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_RX0_CH140_TO_CH165_5G = $15B;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_RX1_CH36_TO_CH64_5G = $15C;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_RX1_CH36_TO_CH64_5G = $15D;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_RX1_CH100_TO_CH138_5G = $15E;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_RX1_CH100_TO_CH138_5G = $15F;
|
|
RT2800_EEPROM_IQ_GAIN_CAL_RX1_CH140_TO_CH165_5G = $160;
|
|
RT2800_EEPROM_IQ_PHASE_CAL_RX1_CH140_TO_CH165_5G = $161;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_RX0_CH36_TO_CH64_5G = $162;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_RX1_CH36_TO_CH64_5G = $163;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_RX0_CH100_TO_CH138_5G = $164;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_RX1_CH100_TO_CH138_5G = $165;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_RX0_CH140_TO_CH165_5G = $166;
|
|
RT2800_EEPROM_IQ_GROUPDELAY_CAL_RX1_CH140_TO_CH165_5G = $167;
|
RT2800_MCU_*
RT2800_MCU_SLEEP = $30;
|
MCU_SLEEP - go to power-save mode. arg1: 1: save as much power as possible, 0: save less power
status: 1: success, 2: already asleep, 3: maybe MAC is busy so can't finish this task |
RT2800_MCU_WAKEUP = $31;
|
|
RT2800_MCU_RADIO_OFF = $35;
|
MCU_RADIO_OFF arg0: 0: do power-saving, NOT turn off radio |
RT2800_MCU_CURRENT = $36;
|
|
RT2800_MCU_LED = $50;
|
|
RT2800_MCU_LED_STRENGTH = $51;
|
|
RT2800_MCU_LED_AG_CONF = $52;
|
|
RT2800_MCU_LED_ACT_CONF = $53;
|
|
RT2800_MCU_LED_LED_POLARITY = $54;
|
|
RT2800_MCU_RADAR = $60;
|
|
RT2800_MCU_BOOT_SIGNAL = $72;
|
|
RT2800_MCU_ANT_SELECT = $73;
|
|
RT2800_MCU_FREQ_OFFSET = $74;
|
|
RT2800_MCU_BBP_SIGNAL = $80;
|
|
RT2800_MCU_POWER_SAVE = $83;
|
|
RT2800_MCU_BAND_SELECT = $91;
|
RT2800_TOKEN_*
RT2800_TOKEN_SLEEP = 1;
|
|
RT2800_TOKEN_RADIO_OFF = 2;
|
|
RT2800_TOKEN_WAKEUP = 3;
|
RT2800_*_DESC_SIZE_*
RT2800_TXWI_DESC_SIZE_4WORDS = (4 * SizeOf(LongWord));
|
|
RT2800_TXWI_DESC_SIZE_5WORDS = (5 * SizeOf(LongWord));
|
|
RT2800_RXWI_DESC_SIZE_4WORDS = (4 * SizeOf(LongWord));
|
|
RT2800_RXWI_DESC_SIZE_5WORDS = (5 * SizeOf(LongWord));
|
|
RT2800_RXWI_DESC_SIZE_6WORDS = (6 * SizeOf(LongWord));
|
RT2800_TXWI_W*
Word0 | |
RT2800_TXWI_W0_FRAG = $00000001;
|
FRAG: 1 To inform TKIP engine this is a fragment. |
RT2800_TXWI_W0_MIMO_PS = $00000002;
|
MIMO_PS: The remote peer is in dynamic MIMO-PS mode |
RT2800_TXWI_W0_CF_ACK = $00000004;
|
|
RT2800_TXWI_W0_TS = $00000008;
|
|
RT2800_TXWI_W0_AMPDU = $00000010;
|
AMPDU: 1: this frame is eligible for AMPDU aggregation, the hw will aggregate consecutive frames with the same RA and QoS TID. If a frame A with the same RA and QoS TID but AMPDU=0 is queued directly after a frame B with AMPDU=1, frame A might still get aggregated into the AMPDU started by frame B. So, setting AMPDU to 0 does _not_ necessarily mean the frame is sent as MPDU, it can still end up in an AMPDU if the previous frame was tagged as AMPDU. |
RT2800_TXWI_W0_MPDU_DENSITY = $000000e0;
|
|
RT2800_TXWI_W0_TX_OP = $00000300;
|
TX_OP: 0:HT TXOP rule, 1:PIFS TX, 2:Backoff, 3:sifs |
RT2800_TXWI_W0_MCS = $007f0000;
|
|
RT2800_TXWI_W0_BW = $00800000;
|
BW: Channel bandwidth 0:20MHz, 1:40 MHz (for legacy rates this will duplicate the frame to both channels) |
RT2800_TXWI_W0_SHORT_GI = $01000000;
|
|
RT2800_TXWI_W0_STBC = $06000000;
|
STBC: 1: STBC support MCS =0-7, 2,3 : RESERVED |
RT2800_TXWI_W0_IFS = $08000000;
|
|
RT2800_TXWI_W0_PHYMODE = $c0000000;
|
|
Word1 | |
RT2800_TXWI_W1_ACK = $00000001;
|
ACK: 0: No Ack needed, 1: Ack needed |
RT2800_TXWI_W1_NSEQ = $00000002;
|
NSEQ: 0: Don't assign hw sequence number, 1: Assign hw sequence number |
RT2800_TXWI_W1_BW_WIN_SIZE = $000000fc;
|
BW_WIN_SIZE: BA windows size of the recipient |
RT2800_TXWI_W1_WIRELESS_CLI_ID = $0000ff00;
|
WIRELESS_CLI_ID: Client Id for WCID table access |
RT2800_TXWI_W1_MPDU_TOTAL_BYTE_COUNT = $0fff0000;
|
MPDU_TOTAL_BYTE_COUNT: Length of 802.11 frame |
RT2800_TXWI_W1_PACKETID = $f0000000;
|
PACKETID: Will be latched into the TX_STA_FIFO register once the according frame was processed. If multiple frames are aggregated together.
AMPDU==1; the reported tx status will always contain the packet Id of the first frame, 0: Don't report tx status for this frame. |
RT2800_TXWI_W1_PACKETID_QUEUE = $30000000;
|
PACKETID_QUEUE: Part of PACKETID This is the queue index (0-3). |
RT2800_TXWI_W1_PACKETID_ENTRY = $c0000000;
|
PACKETID_ENTRY: Part of PACKETID This is the queue entry index (1-3; This identification number is calculated by (idx % 3; + 1)) The +1; is required to prevent PACKETID to become 0. |
Word2 | |
RT2800_TXWI_W2_IV = $ffffffff;
|
|
Word3 | |
RT2800_TXWI_W3_EIV = $ffffffff;
|
RT2800_RXWI_W*
Word0 | |
RT2800_RXWI_W0_WIRELESS_CLI_ID = $000000ff;
|
|
RT2800_RXWI_W0_KEY_INDEX = $00000300;
|
|
RT2800_RXWI_W0_BSSID = $00001c00;
|
|
RT2800_RXWI_W0_UDF = $0000e000;
|
|
RT2800_RXWI_W0_MPDU_TOTAL_BYTE_COUNT = $0fff0000;
|
|
RT2800_RXWI_W0_TID = $f0000000;
|
|
Word1 | |
RT2800_RXWI_W1_FRAG = $0000000f;
|
|
RT2800_RXWI_W1_SEQUENCE = $0000fff0;
|
|
RT2800_RXWI_W1_MCS = $007f0000;
|
|
RT2800_RXWI_W1_BW = $00800000;
|
|
RT2800_RXWI_W1_SHORT_GI = $01000000;
|
|
RT2800_RXWI_W1_STBC = $06000000;
|
|
RT2800_RXWI_W1_PHYMODE = $c0000000;
|
|
Word2 | |
RT2800_RXWI_W2_RSSI0 = $000000ff;
|
|
RT2800_RXWI_W2_RSSI1 = $0000ff00;
|
|
RT2800_RXWI_W2_RSSI2 = $00ff0000;
|
|
Word3 | |
RT2800_RXWI_W3_SNR0 = $000000ff;
|
|
RT2800_RXWI_W3_SNR1 = $0000ff00;
|
RT2800_*_*_TXPOWER
Note: Macros for converting TXPower from EEPROM to WiFi value and from WiFi value to register value | |
RT2800_MIN_G_TXPOWER = 0;
|
|
RT2800_MIN_A_TXPOWER = -7;
|
|
RT2800_MAX_G_TXPOWER = 31;
|
|
RT2800_MAX_A_TXPOWER = 15;
|
|
RT2800_DEFAULT_TXPOWER = 5;
|
|
RT2800_MIN_A_TXPOWER_3593 = 0;
|
|
RT2800_MAX_A_TXPOWER_3593 = 31;
|
RT2800_*_MAX_*_POWER_LIMIT
RT2800_EIRP_MAX_TX_POWER_LIMIT = $50;
|
Board's maximum TX power limitation |
RT2800_*_TBTT_OFFSET
RT2800_BCN_TBTT_OFFSET = 64;
|
Number of TBTT intervals after which we have to adjust the hw beacon timer |
RT2800_DEFAULT_RSSI_OFFSET = 120;
|
RT2800_EEPROM_MAP*
RT2800_EEPROM_MAP:array[0..RT2800_EEPROM_WORD_COUNT - 1] of Word = (
|
|
$0000,
|
EEPROM_CHIP_ID |
$0001,
|
EEPROM_VERSION |
$0002,
|
EEPROM_MAC_ADDR_0 |
$0003,
|
EEPROM_MAC_ADDR_1 |
$0004,
|
EEPROM_MAC_ADDR_2 |
$001a,
|
EEPROM_NIC_CONF0 |
$001b,
|
EEPROM_NIC_CONF1 |
$001d,
|
EEPROM_FREQ |
$001e,
|
EEPROM_LED_AG_CONF |
$001f,
|
EEPROM_LED_ACT_CONF |
$0020,
|
EEPROM_LED_POLARITY |
$0021,
|
EEPROM_NIC_CONF2 |
$0022,
|
EEPROM_LNA |
$0023,
|
EEPROM_RSSI_BG |
$0024,
|
EEPROM_RSSI_BG2 |
$0024,
|
EEPROM_TXMIXER_GAIN_BG (overlaps with EEPROM_RSSI_BG2) |
$0025,
|
EEPROM_RSSI_A |
$0026,
|
EEPROM_RSSI_A2 |
$0026,
|
EEPROM_TXMIXER_GAIN_A (overlaps with EEPROM_RSSI_A2) |
$0027,
|
EEPROM_EIRP_MAX_TX_POWER |
$0028,
|
EEPROM_TXPOWER_DELTA |
$0029,
|
EEPROM_TXPOWER_BG1 |
$0030,
|
EEPROM_TXPOWER_BG2 |
$0037,
|
EEPROM_TSSI_BOUND_BG1 |
$0038,
|
EEPROM_TSSI_BOUND_BG2 |
$0039,
|
EEPROM_TSSI_BOUND_BG3 |
$003a,
|
EEPROM_TSSI_BOUND_BG4 |
$003b,
|
EEPROM_TSSI_BOUND_BG5 |
$003c,
|
EEPROM_TXPOWER_A1 |
$0053,
|
EEPROM_TXPOWER_A2 |
$006a,
|
EEPROM_TSSI_BOUND_A1 |
$006b,
|
EEPROM_TSSI_BOUND_A2 |
$006c,
|
EEPROM_TSSI_BOUND_A3 |
$006d,
|
EEPROM_TSSI_BOUND_A4 |
$006e,
|
EEPROM_TSSI_BOUND_A5 |
$006f,
|
EEPROM_TXPOWER_BYRATE |
$0078,
|
EEPROM_BBP_START |
$0000,
|
|
$0000,
|
|
$0000);
|
|
RT2800_EEPROM_MAP_EXT:array[0..RT2800_EEPROM_WORD_COUNT - 1] of Word = (
|
|
$0000,
|
EEPROM_CHIP_ID |
$0001,
|
EEPROM_VERSION |
$0002,
|
EEPROM_MAC_ADDR_0 |
$0003,
|
EEPROM_MAC_ADDR_1 |
$0004,
|
EEPROM_MAC_ADDR_2 |
$001a,
|
EEPROM_NIC_CONF0 |
$001b,
|
EEPROM_NIC_CONF1 |
$001c,
|
EEPROM_NIC_CONF2 |
$0020,
|
EEPROM_EIRP_MAX_TX_POWER |
$0022,
|
EEPROM_FREQ |
$0023,
|
EEPROM_LED_AG_CONF |
$0024,
|
EEPROM_LED_ACT_CONF |
$0025,
|
EEPROM_LED_POLARITY |
$0026,
|
EEPROM_LNA |
$0027,
|
EEPROM_EXT_LNA2 |
$0028,
|
EEPROM_RSSI_BG |
$0029,
|
EEPROM_RSSI_BG2 |
$002a,
|
EEPROM_RSSI_A |
$002b,
|
EEPROM_RSSI_A2 |
$0030,
|
EEPROM_TXPOWER_BG1 |
$0037,
|
EEPROM_TXPOWER_BG2 |
$003e,
|
EEPROM_EXT_TXPOWER_BG3 |
$0045,
|
EEPROM_TSSI_BOUND_BG1 |
$0046,
|
EEPROM_TSSI_BOUND_BG2 |
$0047,
|
EEPROM_TSSI_BOUND_BG3 |
$0048,
|
EEPROM_TSSI_BOUND_BG4 |
$0049,
|
EEPROM_TSSI_BOUND_BG5 |
$004b,
|
EEPROM_TXPOWER_A1 |
$0065,
|
EEPROM_TXPOWER_A2 |
$007f,
|
EEPROM_EXT_TXPOWER_A3 |
$009a,
|
EEPROM_TSSI_BOUND_A1 |
$009b,
|
EEPROM_TSSI_BOUND_A2 |
$009c,
|
EEPROM_TSSI_BOUND_A3 |
$009d,
|
EEPROM_TSSI_BOUND_A4 |
$009e,
|
EEPROM_TSSI_BOUND_A5 |
$00a0,
|
EEPROM_TXPOWER_BYRATE |
$0000,
|
|
$0000,
|
|
$0000,
|
|
$0000);
|
RT2800_RF_VALUES*
Note: Supports: 2.4 GHz (all) & 5.2 GHz (RF2850 & RF2750) | |
RT2800_RF_VALUES:array[0..59] of TRT2X00RFChannel = (
|
|
(Channel: 1;RF1: $18402ecc;RF2: $184c0786;RF3: $1816b455;RF4: $1800510b),
|
|
(Channel: 2;RF1: $18402ecc;RF2: $184c0786;RF3: $18168a55;RF4: $1800519f),
|
|
(Channel: 3;RF1: $18402ecc;RF2: $184c078a;RF3: $18168a55;RF4: $1800518b),
|
|
(Channel: 4;RF1: $18402ecc;RF2: $184c078a;RF3: $18168a55;RF4: $1800519f),
|
|
(Channel: 5;RF1: $18402ecc;RF2: $184c078e;RF3: $18168a55;RF4: $1800518b),
|
|
(Channel: 6;RF1: $18402ecc;RF2: $184c078e;RF3: $18168a55;RF4: $1800519f),
|
|
(Channel: 7;RF1: $18402ecc;RF2: $184c0792;RF3: $18168a55;RF4: $1800518b),
|
|
(Channel: 8;RF1: $18402ecc;RF2: $184c0792;RF3: $18168a55;RF4: $1800519f),
|
|
(Channel: 9;RF1: $18402ecc;RF2: $184c0796;RF3: $18168a55;RF4: $1800518b),
|
|
(Channel: 10;RF1: $18402ecc;RF2: $184c0796;RF3: $18168a55;RF4: $1800519f),
|
|
(Channel: 11;RF1: $18402ecc;RF2: $184c079a;RF3: $18168a55;RF4: $1800518b),
|
|
(Channel: 12;RF1: $18402ecc;RF2: $184c079a;RF3: $18168a55;RF4: $1800519f),
|
|
(Channel: 13;RF1: $18402ecc;RF2: $184c079e;RF3: $18168a55;RF4: $1800518b),
|
|
(Channel: 14;RF1: $18402ecc;RF2: $184c07a2;RF3: $18168a55;RF4: $18005193),
|
|
802.11 UNI / HyperLan 2 | |
(Channel: 36;RF1: $18402ecc;RF2: $184c099a;RF3: $18158a55;RF4: $180ed1a3),
|
|
(Channel: 38;RF1: $18402ecc;RF2: $184c099e;RF3: $18158a55;RF4: $180ed193),
|
|
(Channel: 40;RF1: $18402ec8;RF2: $184c0682;RF3: $18158a55;RF4: $180ed183),
|
|
(Channel: 44;RF1: $18402ec8;RF2: $184c0682;RF3: $18158a55;RF4: $180ed1a3),
|
|
(Channel: 46;RF1: $18402ec8;RF2: $184c0686;RF3: $18158a55;RF4: $180ed18b),
|
|
(Channel: 48;RF1: $18402ec8;RF2: $184c0686;RF3: $18158a55;RF4: $180ed19b),
|
|
(Channel: 52;RF1: $18402ec8;RF2: $184c068a;RF3: $18158a55;RF4: $180ed193),
|
|
(Channel: 54;RF1: $18402ec8;RF2: $184c068a;RF3: $18158a55;RF4: $180ed1a3),
|
|
(Channel: 56;RF1: $18402ec8;RF2: $184c068e;RF3: $18158a55;RF4: $180ed18b),
|
|
(Channel: 60;RF1: $18402ec8;RF2: $184c0692;RF3: $18158a55;RF4: $180ed183),
|
|
(Channel: 62;RF1: $18402ec8;RF2: $184c0692;RF3: $18158a55;RF4: $180ed193),
|
|
(Channel: 64;RF1: $18402ec8;RF2: $184c0692;RF3: $18158a55;RF4: $180ed1a3),
|
|
802.11 HyperLan 2 | |
(Channel: 100;RF1: $18402ec8;RF2: $184c06b2;RF3: $18178a55;RF4: $180ed783),
|
|
(Channel: 102;RF1: $18402ec8;RF2: $184c06b2;RF3: $18578a55;RF4: $180ed793),
|
|
(Channel: 104;RF1: $18402ec8;RF2: $185c06b2;RF3: $18578a55;RF4: $180ed1a3),
|
|
(Channel: 108;RF1: $18402ecc;RF2: $185c0a32;RF3: $18578a55;RF4: $180ed193),
|
|
(Channel: 110;RF1: $18402ecc;RF2: $184c0a36;RF3: $18178a55;RF4: $180ed183),
|
|
(Channel: 112;RF1: $18402ecc;RF2: $184c0a36;RF3: $18178a55;RF4: $180ed19b),
|
|
(Channel: 116;RF1: $18402ecc;RF2: $184c0a3a;RF3: $18178a55;RF4: $180ed1a3),
|
|
(Channel: 118;RF1: $18402ecc;RF2: $184c0a3e;RF3: $18178a55;RF4: $180ed193),
|
|
(Channel: 120;RF1: $18402ec4;RF2: $184c0382;RF3: $18178a55;RF4: $180ed183),
|
|
(Channel: 124;RF1: $18402ec4;RF2: $184c0382;RF3: $18178a55;RF4: $180ed193),
|
|
(Channel: 126;RF1: $18402ec4;RF2: $184c0382;RF3: $18178a55;RF4: $180ed15b),
|
|
(Channel: 128;RF1: $18402ec4;RF2: $184c0382;RF3: $18178a55;RF4: $180ed1a3),
|
|
(Channel: 132;RF1: $18402ec4;RF2: $184c0386;RF3: $18178a55;RF4: $180ed18b),
|
|
(Channel: 134;RF1: $18402ec4;RF2: $184c0386;RF3: $18178a55;RF4: $180ed193),
|
|
(Channel: 136;RF1: $18402ec4;RF2: $184c0386;RF3: $18178a55;RF4: $180ed19b),
|
|
(Channel: 140;RF1: $18402ec4;RF2: $184c038a;RF3: $18178a55;RF4: $180ed183),
|
|
802.11 UNII | |
(Channel: 149;RF1: $18402ec4;RF2: $184c038a;RF3: $18178a55;RF4: $180ed1a7),
|
|
(Channel: 151;RF1: $18402ec4;RF2: $184c038e;RF3: $18178a55;RF4: $180ed187),
|
|
(Channel: 153;RF1: $18402ec4;RF2: $184c038e;RF3: $18178a55;RF4: $180ed18f),
|
|
(Channel: 157;RF1: $18402ec4;RF2: $184c038e;RF3: $18178a55;RF4: $180ed19f),
|
|
(Channel: 159;RF1: $18402ec4;RF2: $184c038e;RF3: $18178a55;RF4: $180ed1a7),
|
|
(Channel: 161;RF1: $18402ec4;RF2: $184c0392;RF3: $18178a55;RF4: $180ed187),
|
|
(Channel: 165;RF1: $18402ec4;RF2: $184c0392;RF3: $18178a55;RF4: $180ed197),
|
|
(Channel: 167;RF1: $18402ec4;RF2: $184c03d2;RF3: $18179855;RF4: $1815531f),
|
|
(Channel: 169;RF1: $18402ec4;RF2: $184c03d2;RF3: $18179855;RF4: $18155327),
|
|
(Channel: 171;RF1: $18402ec4;RF2: $184c03d6;RF3: $18179855;RF4: $18155307),
|
|
(Channel: 173;RF1: $18402ec4;RF2: $184c03d6;RF3: $18179855;RF4: $1815530f),
|
|
802.11 Japan | |
(Channel: 184;RF1: $15002ccc;RF2: $1500491e;RF3: $1509be55;RF4: $150c0a0b),
|
|
(Channel: 188;RF1: $15002ccc;RF2: $15004922;RF3: $1509be55;RF4: $150c0a13),
|
|
(Channel: 192;RF1: $15002ccc;RF2: $15004926;RF3: $1509be55;RF4: $150c0a1b),
|
|
(Channel: 196;RF1: $15002ccc;RF2: $1500492a;RF3: $1509be55;RF4: $150c0a23),
|
|
(Channel: 208;RF1: $15002ccc;RF2: $1500493a;RF3: $1509be55;RF4: $150c0a13),
|
|
(Channel: 212;RF1: $15002ccc;RF2: $1500493e;RF3: $1509be55;RF4: $150c0a1b),
|
|
(Channel: 216;RF1: $15002ccc;RF2: $15004982;RF3: $1509be55;RF4: $150c0a23));
|
RT2800_RF_VALUES_3X*
Note: Supports: 2.4 GHz (all) & 5.2 GHz (RF3052 & RF3053) | |
RT2800_RF_VALUES_3X:array[0..52] of TRT2X00RFChannel = (
|
|
(Channel: 1;RF1: 241;RF2: 2;RF3: 2;RF4: 0),
|
|
(Channel: 2;RF1: 241;RF2: 2;RF3: 7;RF4: 0),
|
|
(Channel: 3;RF1: 242;RF2: 2;RF3: 2;RF4: 0),
|
|
(Channel: 4;RF1: 242;RF2: 2;RF3: 7;RF4: 0),
|
|
(Channel: 5;RF1: 243;RF2: 2;RF3: 2;RF4: 0),
|
|
(Channel: 6;RF1: 243;RF2: 2;RF3: 7;RF4: 0),
|
|
(Channel: 7;RF1: 244;RF2: 2;RF3: 2;RF4: 0),
|
|
(Channel: 8;RF1: 244;RF2: 2;RF3: 7;RF4: 0),
|
|
(Channel: 9;RF1: 245;RF2: 2;RF3: 2;RF4: 0),
|
|
(Channel: 10;RF1: 245;RF2: 2;RF3: 7;RF4: 0),
|
|
(Channel: 11;RF1: 246;RF2: 2;RF3: 2;RF4: 0),
|
|
(Channel: 12;RF1: 246;RF2: 2;RF3: 7;RF4: 0),
|
|
(Channel: 13;RF1: 247;RF2: 2;RF3: 2;RF4: 0),
|
|
(Channel: 14;RF1: 248;RF2: 2;RF3: 4;RF4: 0),
|
|
802.11 UNI / HyperLan 2 | |
(Channel: 36;RF1: $56;RF2: 0;RF3: 4;RF4: 0),
|
|
(Channel: 38;RF1: $56;RF2: 0;RF3: 6;RF4: 0),
|
|
(Channel: 40;RF1: $56;RF2: 0;RF3: 8;RF4: 0),
|
|
(Channel: 44;RF1: $57;RF2: 0;RF3: 0;RF4: 0),
|
|
(Channel: 46;RF1: $57;RF2: 0;RF3: 2;RF4: 0),
|
|
(Channel: 48;RF1: $57;RF2: 0;RF3: 4;RF4: 0),
|
|
(Channel: 52;RF1: $57;RF2: 0;RF3: 8;RF4: 0),
|
|
(Channel: 54;RF1: $57;RF2: 0;RF3: 10;RF4: 0),
|
|
(Channel: 56;RF1: $58;RF2: 0;RF3: 0;RF4: 0),
|
|
(Channel: 60;RF1: $58;RF2: 0;RF3: 4;RF4: 0),
|
|
(Channel: 62;RF1: $58;RF2: 0;RF3: 6;RF4: 0),
|
|
(Channel: 64;RF1: $58;RF2: 0;RF3: 8;RF4: 0),
|
|
802.11 HyperLan 2 | |
(Channel: 100;RF1: $5b;RF2: 0;RF3: 8;RF4: 0),
|
|
(Channel: 102;RF1: $5b;RF2: 0;RF3: 10;RF4: 0),
|
|
(Channel: 104;RF1: $5c;RF2: 0;RF3: 0;RF4: 0),
|
|
(Channel: 108;RF1: $5c;RF2: 0;RF3: 4;RF4: 0),
|
|
(Channel: 110;RF1: $5c;RF2: 0;RF3: 6;RF4: 0),
|
|
(Channel: 112;RF1: $5c;RF2: 0;RF3: 8;RF4: 0),
|
|
(Channel: 116;RF1: $5d;RF2: 0;RF3: 0;RF4: 0),
|
|
(Channel: 118;RF1: $5d;RF2: 0;RF3: 2;RF4: 0),
|
|
(Channel: 120;RF1: $5d;RF2: 0;RF3: 4;RF4: 0),
|
|
(Channel: 124;RF1: $5d;RF2: 0;RF3: 8;RF4: 0),
|
|
(Channel: 126;RF1: $5d;RF2: 0;RF3: 10;RF4: 0),
|
|
(Channel: 128;RF1: $5e;RF2: 0;RF3: 0;RF4: 0),
|
|
(Channel: 132;RF1: $5e;RF2: 0;RF3: 4;RF4: 0),
|
|
(Channel: 134;RF1: $5e;RF2: 0;RF3: 6;RF4: 0),
|
|
(Channel: 136;RF1: $5e;RF2: 0;RF3: 8;RF4: 0),
|
|
(Channel: 140;RF1: $5f;RF2: 0;RF3: 0;RF4: 0),
|
|
802.11 UNII | |
(Channel: 149;RF1: $5f;RF2: 0;RF3: 9;RF4: 0),
|
|
(Channel: 151;RF1: $5f;RF2: 0;RF3: 11;RF4: 0),
|
|
(Channel: 153;RF1: $60;RF2: 0;RF3: 1;RF4: 0),
|
|
(Channel: 157;RF1: $60;RF2: 0;RF3: 5;RF4: 0),
|
|
(Channel: 159;RF1: $60;RF2: 0;RF3: 7;RF4: 0),
|
|
(Channel: 161;RF1: $60;RF2: 0;RF3: 9;RF4: 0),
|
|
(Channel: 165;RF1: $61;RF2: 0;RF3: 1;RF4: 0),
|
|
(Channel: 167;RF1: $61;RF2: 0;RF3: 3;RF4: 0),
|
|
(Channel: 169;RF1: $61;RF2: 0;RF3: 5;RF4: 0),
|
|
(Channel: 171;RF1: $61;RF2: 0;RF3: 7;RF4: 0),
|
|
(Channel: 173;RF1: $61;RF2: 0;RF3: 9;RF4: 0));
|
|
RT2800_RF_VALUES_5592_XTAL20:array[0..61] of TRT2X00RFChannel = (
|
|
Channel, N, K, mod, R | |
(Channel: 1;RF1: 482;RF2: 4;RF3: 10;RF4: 3),
|
|
(Channel: 2;RF1: 483;RF2: 4;RF3: 10;RF4: 3),
|
|
(Channel: 3;RF1: 484;RF2: 4;RF3: 10;RF4: 3),
|
|
(Channel: 4;RF1: 485;RF2: 4;RF3: 10;RF4: 3),
|
|
(Channel: 5;RF1: 486;RF2: 4;RF3: 10;RF4: 3),
|
|
(Channel: 6;RF1: 487;RF2: 4;RF3: 10;RF4: 3),
|
|
(Channel: 7;RF1: 488;RF2: 4;RF3: 10;RF4: 3),
|
|
(Channel: 8;RF1: 489;RF2: 4;RF3: 10;RF4: 3),
|
|
(Channel: 9;RF1: 490;RF2: 4;RF3: 10;RF4: 3),
|
|
(Channel: 10;RF1: 491;RF2: 4;RF3: 10;RF4: 3),
|
|
(Channel: 11;RF1: 492;RF2: 4;RF3: 10;RF4: 3),
|
|
(Channel: 12;RF1: 493;RF2: 4;RF3: 10;RF4: 3),
|
|
(Channel: 13;RF1: 494;RF2: 4;RF3: 10;RF4: 3),
|
|
(Channel: 14;RF1: 496;RF2: 8;RF3: 10;RF4: 3),
|
|
(Channel: 36;RF1: 172;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 38;RF1: 173;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 40;RF1: 173;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 42;RF1: 173;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 44;RF1: 174;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 46;RF1: 174;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 48;RF1: 174;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 50;RF1: 175;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 52;RF1: 175;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 54;RF1: 175;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 56;RF1: 176;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 58;RF1: 176;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 60;RF1: 176;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 62;RF1: 177;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 64;RF1: 177;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 100;RF1: 183;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 102;RF1: 183;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 104;RF1: 184;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 106;RF1: 184;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 108;RF1: 184;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 110;RF1: 185;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 112;RF1: 185;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 114;RF1: 185;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 116;RF1: 186;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 118;RF1: 186;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 120;RF1: 186;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 122;RF1: 187;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 124;RF1: 187;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 126;RF1: 187;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 128;RF1: 188;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 130;RF1: 188;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 132;RF1: 188;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 134;RF1: 189;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 136;RF1: 189;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 138;RF1: 189;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 140;RF1: 190;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 149;RF1: 191;RF2: 6;RF3: 12;RF4: 1),
|
|
(Channel: 151;RF1: 191;RF2: 10;RF3: 12;RF4: 1),
|
|
(Channel: 153;RF1: 192;RF2: 2;RF3: 12;RF4: 1),
|
|
(Channel: 155;RF1: 192;RF2: 6;RF3: 12;RF4: 1),
|
|
(Channel: 157;RF1: 192;RF2: 10;RF3: 12;RF4: 1),
|
|
(Channel: 159;RF1: 193;RF2: 2;RF3: 12;RF4: 1),
|
|
(Channel: 161;RF1: 193;RF2: 6;RF3: 12;RF4: 1),
|
|
(Channel: 165;RF1: 194;RF2: 2;RF3: 12;RF4: 1),
|
|
(Channel: 184;RF1: 164;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 188;RF1: 164;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 192;RF1: 165;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 196;RF1: 166;RF2: 0;RF3: 12;RF4: 1));
|
|
RT2800_RF_VALUES_5592_XTAL40:array[0..61] of TRT2X00RFChannel = (
|
|
Channel, N, K, mod, R | |
(Channel: 1;RF1: 241;RF2: 2;RF3: 10;RF4: 3),
|
|
(Channel: 2;RF1: 241;RF2: 7;RF3: 10;RF4: 3),
|
|
(Channel: 3;RF1: 242;RF2: 2;RF3: 10;RF4: 3),
|
|
(Channel: 4;RF1: 242;RF2: 7;RF3: 10;RF4: 3),
|
|
(Channel: 5;RF1: 243;RF2: 2;RF3: 10;RF4: 3),
|
|
(Channel: 6;RF1: 243;RF2: 7;RF3: 10;RF4: 3),
|
|
(Channel: 7;RF1: 244;RF2: 2;RF3: 10;RF4: 3),
|
|
(Channel: 8;RF1: 244;RF2: 7;RF3: 10;RF4: 3),
|
|
(Channel: 9;RF1: 245;RF2: 2;RF3: 10;RF4: 3),
|
|
(Channel: 10;RF1: 245;RF2: 7;RF3: 10;RF4: 3),
|
|
(Channel: 11;RF1: 246;RF2: 2;RF3: 10;RF4: 3),
|
|
(Channel: 12;RF1: 246;RF2: 7;RF3: 10;RF4: 3),
|
|
(Channel: 13;RF1: 247;RF2: 2;RF3: 10;RF4: 3),
|
|
(Channel: 14;RF1: 248;RF2: 4;RF3: 10;RF4: 3),
|
|
(Channel: 36;RF1: 86;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 38;RF1: 86;RF2: 6;RF3: 12;RF4: 1),
|
|
(Channel: 40;RF1: 86;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 42;RF1: 86;RF2: 10;RF3: 12;RF4: 1),
|
|
(Channel: 44;RF1: 87;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 46;RF1: 87;RF2: 2;RF3: 12;RF4: 1),
|
|
(Channel: 48;RF1: 87;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 50;RF1: 87;RF2: 6;RF3: 12;RF4: 1),
|
|
(Channel: 52;RF1: 87;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 54;RF1: 87;RF2: 10;RF3: 12;RF4: 1),
|
|
(Channel: 56;RF1: 88;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 58;RF1: 88;RF2: 2;RF3: 12;RF4: 1),
|
|
(Channel: 60;RF1: 88;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 62;RF1: 88;RF2: 6;RF3: 12;RF4: 1),
|
|
(Channel: 64;RF1: 88;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 100;RF1: 91;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 102;RF1: 91;RF2: 10;RF3: 12;RF4: 1),
|
|
(Channel: 104;RF1: 92;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 106;RF1: 92;RF2: 2;RF3: 12;RF4: 1),
|
|
(Channel: 108;RF1: 92;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 110;RF1: 92;RF2: 6;RF3: 12;RF4: 1),
|
|
(Channel: 112;RF1: 92;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 114;RF1: 92;RF2: 10;RF3: 12;RF4: 1),
|
|
(Channel: 116;RF1: 93;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 118;RF1: 93;RF2: 2;RF3: 12;RF4: 1),
|
|
(Channel: 120;RF1: 93;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 122;RF1: 93;RF2: 6;RF3: 12;RF4: 1),
|
|
(Channel: 124;RF1: 93;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 126;RF1: 93;RF2: 10;RF3: 12;RF4: 1),
|
|
(Channel: 128;RF1: 94;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 130;RF1: 94;RF2: 2;RF3: 12;RF4: 1),
|
|
(Channel: 132;RF1: 94;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 134;RF1: 94;RF2: 6;RF3: 12;RF4: 1),
|
|
(Channel: 136;RF1: 94;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 138;RF1: 94;RF2: 10;RF3: 12;RF4: 1),
|
|
(Channel: 140;RF1: 95;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 149;RF1: 95;RF2: 9;RF3: 12;RF4: 1),
|
|
(Channel: 151;RF1: 95;RF2: 11;RF3: 12;RF4: 1),
|
|
(Channel: 153;RF1: 96;RF2: 1;RF3: 12;RF4: 1),
|
|
(Channel: 155;RF1: 96;RF2: 3;RF3: 12;RF4: 1),
|
|
(Channel: 157;RF1: 96;RF2: 5;RF3: 12;RF4: 1),
|
|
(Channel: 159;RF1: 96;RF2: 7;RF3: 12;RF4: 1),
|
|
(Channel: 161;RF1: 96;RF2: 9;RF3: 12;RF4: 1),
|
|
(Channel: 165;RF1: 97;RF2: 1;RF3: 12;RF4: 1),
|
|
(Channel: 184;RF1: 82;RF2: 0;RF3: 12;RF4: 1),
|
|
(Channel: 188;RF1: 82;RF2: 4;RF3: 12;RF4: 1),
|
|
(Channel: 192;RF1: 82;RF2: 8;RF3: 12;RF4: 1),
|
|
(Channel: 196;RF1: 83;RF2: 0;RF3: 12;RF4: 1));
|
RT2800_POWER_BOUND*
RT2800_POWER_BOUND = $27;
|
|
RT2800_POWER_BOUND_5G = $2b;
|
RT2800_FREQ_*_BOUND*
RT2800_FREQ_OFFSET_BOUND = $5f;
|
Type definitions
RT2800LIB MAC WCID entry
PRT2800_MAC_WCID_Entry = ^TRT2800_MAC_WCID_Entry;
TRT2800_MAC_WCID_Entry = packed record
Security key table memory above | |
MAC:array[0..5] of Byte;
|
|
Reserved:array[0..1] of Byte;
|
RT2800LIB HW key entry
PRT2800_HW_Key_Entry = ^TRT2800_HW_Key_Entry;
TRT2800_HW_Key_Entry = packed record
Security key table memory above | |
Key:array[0..15] of Byte;
|
|
TXMic:array[0..7] of Byte;
|
|
RXMic:array[0..7] of Byte;
|
RT2800LIB MAC IVEIV entry
PRT2800_MAC_IVEIV_Entry = ^TRT2800_MAC_IVEIV_Entry;
TRT2800_MAC_IVEIV_Entry = packed record
Security key table memory above | |
IV:array[0..7] of Byte;
|
RT2800LIB data
PRT2800Data = ^TRT2800Data;
TRT2800Data = record
CalibrationBW20:Byte;
|
|
CalibrationBW40:Byte;
|
|
BBP25:Byte;
|
|
BBP26:Byte;
|
|
TXMixerGain24G:Byte;
|
|
TXMixerGain5G:Byte;
|
|
TBTTTick:LongWord;
|
Public variables
None defined
Function declarations
Initialization functions
function RT2800DriverInit(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
RT2800LIB functions
function RT2800EepromLoad(RT2X00:PRT2X00WiFiDevice; Data:PWord; Size:LongWord):LongWord;
Note | None documented |
---|
function RT2800SetLED(RT2X00:PRT2X00WiFiDevice; ID,Level:LongWord):LongWord;
Note | None documented |
---|
function RT2800DetectRTChip(RT2X00:PRT2X00WiFiDevice):Boolean;
Note | None documented |
---|
function RT2800DetectEfuse(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800EnableRadio(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | rt2800_enable_radio |
---|
function RT2800DisableRadio(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | rt2800_disable_radio |
---|
function RT2800ValidateEeprom(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeEeprom(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeModes(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeBBP(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeBBP28xx(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeBBP30xx(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeBBP3290(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeBBP3352(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeBBP3390(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeBBP3572(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeBBP3593(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeBBP53xx(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeBBP5592(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeBBP305xSOC(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeRFCSR(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeRFCSR30xx(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeRFCSR3290(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeRFCSR3352(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeRFCSR3390(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeRFCSR3572(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeRFCSR3593(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeRFCSR5390(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeRFCSR5392(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeRFCSR5592(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeRFCSR305xSOC(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeRegisters(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800InitializeRFCalibration(RT2X00:PRT2X00WiFiDevice; RegNo:Byte):LongWord;
Note | None documented |
---|
function RT2800InitializeFrequencyCalibration(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800SetupNormalMode5xxx(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800GetTXMixerGain24G(RT2X00:PRT2X00WiFiDevice):Byte;
Note | None documented |
---|
function RT2800GetTXMixerGain5G(RT2X00:PRT2X00WiFiDevice):Byte;
Note | None documented |
---|
function RT2800LoadEfuse(RT2X00:PRT2X00WiFiDevice; Data:PWord; Size:LongWord):LongWord;
Note | None documented |
---|
function RT2800CheckFirmware(RT2X00:PRT2X00WiFiDevice; Data:PByte; Size:LongWord):Boolean;
Note | PCI(e) and MMIO devices require firmware with a length of 8kb. USB devices require firmware files with a length of 4kb. Certain USB chipsets however require different firmware, which Ralink only provides attached to the original firmware file. Thus for USB devices, firmware files have a length which is a multiple of 4kb. The firmware for rt3290 chip also have a length which is a multiple of 4kb. |
---|
function RT2800CheckFirmwareCRC(Data:PByte; Size:LongWord):Boolean;
Note | rt2800_check_firmware_crc |
---|
function RT2800LoadFirmware(RT2X00:PRT2X00WiFiDevice; Data:PByte; Size:LongWord):Boolean;
Note | rt2800_load_firmware |
---|
function RT2800Configure(RT2X00:PRT2X00WiFiDevice; Configuration:PRT2X00ChannelConfiguration; Flags:LongWord):LongWord;
Note | rt2800_config |
---|
function RT2800ConfigureLNAGain(RT2X00:PRT2X00WiFiDevice; Configuration:PRT2X00ChannelConfiguration):LongWord;
Note | rt2800_config_lna_gain |
---|
function RT2800ConfigureChannel(RT2X00:PRT2X00WiFiDevice; RFChannel:PRT2X00RFChannel; Channel:PRT2X00Channel):LongWord;
Note | rt2800_config_channel |
---|
function RT2800ConfigureChannelRF2xxx(RT2X00:PRT2X00WiFiDevice; RFChannel:PRT2X00RFChannel; Channel:PRT2X00Channel):LongWord;
Note | rt2800_config_channel_rf2xxx |
---|
function RT2800ConfigureChannelRF3xxx(RT2X00:PRT2X00WiFiDevice; RFChannel:PRT2X00RFChannel; Channel:PRT2X00Channel):LongWord;
Note | rt2800_config_channel_rf3xxx |
---|
function RT2800ConfigureChannelRF3052(RT2X00:PRT2X00WiFiDevice; RFChannel:PRT2X00RFChannel; Channel:PRT2X00Channel):LongWord;
Note | rt2800_config_channel_rf3052 |
---|
function RT2800ConfigureChannelRF3053(RT2X00:PRT2X00WiFiDevice; RFChannel:PRT2X00RFChannel; Channel:PRT2X00Channel):LongWord;
Note | rt2800_config_channel_rf3053 |
---|
function RT2800ConfigureChannelRF3290(RT2X00:PRT2X00WiFiDevice; RFChannel:PRT2X00RFChannel; Channel:PRT2X00Channel):LongWord;
Note | rt2800_config_channel_rf3290 |
---|
function RT2800ConfigureChannelRF3322(RT2X00:PRT2X00WiFiDevice; RFChannel:PRT2X00RFChannel; Channel:PRT2X00Channel):LongWord;
Note | rt2800_config_channel_rf3322 |
---|
function RT2800ConfigureChannelRF53xx(RT2X00:PRT2X00WiFiDevice; RFChannel:PRT2X00RFChannel; Channel:PRT2X00Channel):LongWord;
Note | rt2800_config_channel_rf53xx |
---|
function RT2800ConfigureChannelRF55xx(RT2X00:PRT2X00WiFiDevice; RFChannel:PRT2X00RFChannel; Channel:PRT2X00Channel):LongWord;
Note | rt2800_config_channel_rf55xx |
---|
function RT2800ConfigureTXPower(RT2X00:PRT2X00WiFiDevice; Channel:PIEEE80211Channel; PowerLevel:LongInt):LongWord;
Note | rt2800_config_txpower |
---|
function RT2800ConfigureTXPowerRT28xx(RT2X00:PRT2X00WiFiDevice; Channel:PIEEE80211Channel; PowerLevel:LongInt):LongWord;
Note | We configure transmit power using MAC TX_PWR_CFG_(0,...,N) registers and BBP R1 register. TX_PWR_CFG_X allow to configure per rate TX power values, 4 bits for each rate (tune from 0 to 15 dBm). BBP_R1 controls transmit power for all rates, but allow to set only 4 discrete values: -12, -6, 0 and 6 dBm. Reference per rate transmit power values are located in the EEPROM at EEPROM_TXPOWER_BYRATE offset. We adjust them and BBP R1 settings according to current conditions (i.e. band, bandwidth, temperature, user settings).
Note: rt2800_config_txpower_rt28xx |
---|
function RT2800ConfigureTXPowerRT3593(RT2X00:PRT2X00WiFiDevice; Channel:PIEEE80211Channel; PowerLevel:LongInt):LongWord;
Note | rt2800_config_txpower_rt3593 |
---|
function RT2800ConfigureRetryLimit(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | rt2800_config_retry_limit |
---|
function RT2800ConfigurePowersave(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | rt2800_config_ps |
---|
function RT2800ConfigureFilter(RT2X00:PRT2X00WiFiDevice; Filter:LongWord):LongWord;
Note | rt2800_config_filter |
---|
function RT2800ConfigureAntenna(RT2X00:PRT2X00WiFiDevice; Antenna:PRT2X00Antenna):LongWord;
Note | rt2800_config_ant |
---|
function RT2800ConfigureAntenna3572BT(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800ConfigureInterface(RT2X00:PRT2X00WiFiDevice; Configuration:PRT2X00InterfaceConfiguration; Flags:LongWord):LongWord;
Note | None documented |
---|
function RT2800ConfigureWCID(RT2X00:PRT2X00WiFiDevice ;WCID:LongWord; Address:PByte):LongWord;
Note | None documented |
---|
function RT2800DeleteWCIDAttribute(RT2X00:PRT2X00WiFiDevice; WCID:LongWord):LongWord;
Note | None documented |
---|
function RT2800ClearBeaconRegister(RT2X00:PRT2X00WiFiDevice; Index:LongWord):LongWord;
Note | None documented |
---|
function RT2800CalibrateIQ(RT2X00:PRT2X00WiFiDevice; Channel:LongWord):LongWord;
Note | rt2800_iq_calibrate |
---|
function RT2800AdjustFrequencyOffset(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | rt2800_adjust_freq_offset |
---|
function RT2800WaitCSRReady(RT2X00:PRT2X00WiFiDevice):Boolean;
Note | None documented |
---|
function RT2800WaitWPDMAReady(RT2X00:PRT2X00WiFiDevice):Boolean;
Note | None documented |
---|
function RT2800WaitBBPReady(RT2X00:PRT2X00WiFiDevice):Boolean;
Note | rt2800_wait_bbp_ready |
---|
function RT2800WaitBBPRFReady(RT2X00:PRT2X00WiFiDevice):Boolean;
Note | None documented |
---|
function RT2800DisableWPDMA(RT2X00:PRT2X00WiFiDevice):Boolean;
Note | None documented |
---|
function RT2800EnableRT3290WLAN(RT2X00:PRT2X00WiFiDevice):Boolean;
Note | None documented |
---|
function RT2800EnableLEDOpenDrain(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800DisableUnusedDACADC(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800BBP4MACInterfaceControl(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800BBPRead(RT2X00:PRT2X00WiFiDevice; RegNo:Byte; Value:PByte):Boolean;
Note | rt2800_bbp_read |
---|
function RT2800BBPWrite(RT2X00:PRT2X00WiFiDevice; RegNo,Value:Byte):Boolean;
Note | RT2800BBPWrite |
---|
function RT2800BBPWriteRXChain(RT2X00:PRT2X00WiFiDevice; RegNo,Value:Byte):Boolean;
Note | RT2800BBPWrite_with_rx_chain |
---|
function RT2800RFCSRRead(RT2X00:PRT2X00WiFiDevice; RegNo:Byte; Value:PByte):Boolean;
Note | None documented |
---|
function RT2800RFCSRWrite(RT2X00:PRT2X00WiFiDevice; RegNo,Value:Byte):Boolean;
Note | None documented |
---|
function RT2800RFWrite(RT2X00:PRT2X00WiFiDevice; Index:Word; Value:LongWord):Boolean;
Note | None documented |
---|
function RT2800MCURequest(RT2X00:PRT2X00WiFiDevice; Command,Token,Arg0,Arg1:Byte):Boolean;
Note | None documented |
---|
RT2800LIB helper functions
function RT2800RegisterRead(RT2X00:PRT2X00WiFiDevice; Offset:LongWord; Value:PLongWord):LongWord; inline;
Note | None documented |
---|
function RT2800RegisterWrite(RT2X00:PRT2X00WiFiDevice; Offset:LongWord; Value:LongWord):LongWord; inline;
Note | None documented |
---|
function RT2800RegisterMultiRead(RT2X00:PRT2X00WiFiDevice; Offset:LongWord; Data:Pointer; Size:LongWord):LongWord; inline;
Note | None documented |
---|
function RT2800RegisterMultiWrite(RT2X00:PRT2X00WiFiDevice; Offset:LongWord; Data:Pointer; Size:LongWord):LongWord; inline;
Note | None documented |
---|
function RT2800RegisterBusyRead(RT2X00:PRT2X00WiFiDevice; Offset,Mask:LongWord; Reg:PLongWord):Boolean; inline;
Note | None documented |
---|
function RT2800WriteFirmware(RT2X00:PRT2X00WiFiDevice; Data:PByte; Size:LongWord):Boolean; inline;
Note | None documented |
---|
function RT2800HardwareEncryptionDisabled(RT2X00:PRT2X00WiFiDevice):Boolean; inline;
Note | None documented |
---|
function RT2800WaitForBBP(RT2X00:PRT2X00WiFiDevice; Reg:PLongWord):Boolean; inline;
Note | None documented |
---|
function RT2800WaitForRFCSR(RT2X00:PRT2X00WiFiDevice; Reg:PLongWord):Boolean; inline;
Note | None documented |
---|
function RT2800WaitForRF(RT2X00:PRT2X00WiFiDevice; Reg:PLongWord):Boolean; inline;
Note | None documented |
---|
function RT2800WaitForMCU(RT2X00:PRT2X00WiFiDevice; Reg:PLongWord):Boolean; inline;
Note | None documented |
---|
function RT2800GetEeprom16(RT2X00:PRT2X00WiFiDevice; ID:Word):Word;
Note | rt2800_eeprom_read |
---|
procedure RT2800SetEeprom16(RT2X00:PRT2X00WiFiDevice; ID,Value:Word);
Note | None documented |
---|
function RT2800GetEeprom16Array(RT2X00:PRT2X00WiFiDevice; ID,Offset:Word):Word;
Note | None documented |
---|
function RT2800GetEepromAddress(RT2X00:PRT2X00WiFiDevice; ID:Word):Pointer;
Note | None documented |
---|
function RT2800EepromIDtoOffset(RT2X00:PRT2X00WiFiDevice; ID:Word):Word;
Note | None documented |
---|
function RT2800Is305xSOC(RT2X00:PRT2X00WiFiDevice):Boolean;
Note | None documented |
---|
function RT2800GetTXWISize(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800GetRXWISize(RT2X00:PRT2X00WiFiDevice):LongWord;
Note | None documented |
---|
function RT2800TXPowerToDevice(RT2X00:PRT2X00WiFiDevice; Channel:LongWord; TXPower:ShortInt):ShortInt;
Note | None documented |
---|
function RT2800GetTXPowerRegulatoryDelta(RT2X00:PRT2X00WiFiDevice; PowerLevel,MaxPower:LongInt):LongInt;
Note | rt2800_get_txpower_reg_delta |
---|
function RT2800GetTXPowerBandwidthCompensation(RT2X00:PRT2X00WiFiDevice; Band:LongWord):LongInt;
Note | rt2800_get_txpower_bw_comp |
---|
function RT2800GetGainCalibrationDelta(RT2X00:PRT2X00WiFiDevice):LongInt;
Note | rt2800_get_gain_calibration_delta |
---|
function RT2800CompensateTXPower(RT2X00:PRT2X00WiFiDevice; IsRateB,Band:LongWord; PowerLevel:LongInt; TXPower:Byte; Delta:LongInt):Byte;
Note | rt2800_compensate_txpower |
---|
function RT2800AGCtoRSSI(RT2X00:PRT2X00WiFiDevice; RXWI2:LongWord):LongInt;
Note | None documented |
---|
function RT2800ReceiveProcessRXWI(RT2X00:PRT2X00WiFiDevice; Descriptor:PRT2X00RXDescriptor; var Data:Pointer; var Size:LongWord):Boolean;
Note | rt2800_process_rxwi |
---|
function RT2800_MAC_WCID_ENTRY(Index:LongWord):LongWord; inline;
Note | None documented |
---|
function RT2800_PAIRWISE_KEY_ENTRY(Index:LongWord):LongWord; inline;
Note | None documented |
---|
function RT2800_MAC_IVEIV_ENTRY(Index:LongWord):LongWord; inline;
Note | None documented |
---|
function RT2800_MAC_WCID_ATTR_ENTRY(Index:LongWord):LongWord; inline;
Note | None documented |
---|
function RT2800_SHARED_KEY_ENTRY(Index:LongWord):LongWord; inline;
Note | None documented |
---|
function RT2800_SHARED_KEY_MODE_ENTRY(Index:LongWord):LongWord; inline;
Note | None documented |
---|
function RT2800_HW_BEACON_BASE(Index:LongWord):LongWord; inline;
Note | None documented |
---|
function RT2800_BEACON_BASE_TO_OFFSET(Base:LongWord):LongWord; inline;
Note | None documented |
---|
Return to Unit Reference