1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30#ifndef __RF_H__
31#define __RF_H__
32
33#include "ttype.h"
34#include "device.h"
35
36
37
38
39
40#define RF_RFMD2959 0x01
41#define RF_MAXIMAG 0x02
42#define RF_AIROHA 0x03
43
44#define RF_UW2451 0x05
45#define RF_MAXIMG 0x06
46#define RF_MAXIM2829 0x07
47#define RF_UW2452 0x08
48#define RF_AIROHA7230 0x0a
49#define RF_UW2453 0x0b
50
51#define RF_VT3226 0x09
52#define RF_AL2230S 0x0e
53
54#define RF_NOTHING 0x7E
55#define RF_EMU 0x80
56#define RF_MASK 0x7F
57
58#define ZONE_FCC 0
59#define ZONE_MKK1 1
60#define ZONE_ETSI 2
61#define ZONE_IC 3
62#define ZONE_SPAIN 4
63#define ZONE_FRANCE 5
64#define ZONE_MKK 6
65#define ZONE_ISRAEL 7
66
67
68#define CB_MAXIM2829_CHANNEL_5G_HIGH 41
69#define CB_UW2452_CHANNEL_5G_HIGH 41
70
71
72
73
74
75
76
77bool IFRFbWriteEmbedded(unsigned long dwIoBase, unsigned long dwData);
78bool RFbSelectChannel(unsigned long dwIoBase, unsigned char byRFType, unsigned char byChannel);
79bool RFbInit(
80 PSDevice pDevice
81);
82bool RFvWriteWakeProgSyn(unsigned long dwIoBase, unsigned char byRFType, unsigned int uChannel);
83bool RFbSetPower(PSDevice pDevice, unsigned int uRATE, unsigned int uCH);
84bool RFbRawSetPower(
85 PSDevice pDevice,
86 unsigned char byPwr,
87 unsigned int uRATE
88);
89
90void
91RFvRSSITodBm(
92 PSDevice pDevice,
93 unsigned char byCurrRSSI,
94 long *pldBm
95);
96
97
98bool RFbAL7230SelectChannelPostProcess(unsigned long dwIoBase, unsigned char byOldChannel, unsigned char byNewChannel);
99
100
101#endif
102