1 | // Copyright (c) 2006 Rice University |
---|
2 | // All Rights Reserved |
---|
3 | // This code is covered by the Rice-WARP license |
---|
4 | // See http://warp.rice.edu/license/ for details |
---|
5 | |
---|
6 | /** |
---|
7 | * \file radio_controller_ext.h |
---|
8 | * \brief Header file for extended functionality of the radio boards, over the basic controller. |
---|
9 | * |
---|
10 | * @version 1.09 |
---|
11 | * @author Siddharth Gupta |
---|
12 | * |
---|
13 | * Drivers for more complex functions of the radio boards. This includes finer control of receive |
---|
14 | * and transmit gains, both in hardware and software, transmit state machine and control |
---|
15 | * of filter parameters. |
---|
16 | */ |
---|
17 | |
---|
18 | #ifndef RADIO_CONTROLLER_EXT_H |
---|
19 | #define RADIO_CONTROLLER_EXT_H |
---|
20 | |
---|
21 | /***************************** Include Files *******************************/ |
---|
22 | |
---|
23 | #include "radio_prototypes.h" |
---|
24 | |
---|
25 | /****************************** Functions **********************************/ |
---|
26 | |
---|
27 | void WarpRadio_v1_24AmpEnable(unsigned int radios); |
---|
28 | |
---|
29 | void WarpRadio_v1_24AmpDisable(unsigned int radios); |
---|
30 | |
---|
31 | // Select a configuration for the Antennas and Transmit and Receive paths. |
---|
32 | // Applies to 'radios' specified. |
---|
33 | // mode = 1: Antenna 1 for TX and RX |
---|
34 | // mode = 2: Antenna 2 for TX and RX |
---|
35 | // mode = 3: Antenna 1 for TX and Antenna 2 for RX |
---|
36 | // mode = 4: Antenna 1 for RX and Antenna 2 for TX |
---|
37 | //char WarpRadio_v1_AntennaConfig(char mode, unsigned int radios); |
---|
38 | |
---|
39 | char WarpRadio_v1_LockDetect(unsigned int radios); |
---|
40 | |
---|
41 | char WarpRadio_v1_SoftwareTxGainControl(short mode, unsigned int radios); |
---|
42 | |
---|
43 | void WarpRadio_v1_BaseBandTxGain(char value, unsigned int radios); |
---|
44 | |
---|
45 | void WarpRadio_v1_TxVGAGainControl(char value, unsigned int radios); |
---|
46 | |
---|
47 | char WarpRadio_v1_SoftwareRxGainControl(short mode, unsigned int radios); |
---|
48 | |
---|
49 | void WarpRadio_v1_RxLNAGainControl(char value, unsigned int radios); |
---|
50 | |
---|
51 | void WarpRadio_v1_RxVGAGainControl(char value, unsigned int radios); |
---|
52 | |
---|
53 | void WarpRadio_v1_SetTxTiming(unsigned int radios, unsigned char dly_TxEn, unsigned short dly_TxStart, unsigned char dly_GainRampEn, unsigned char dly_PowerAmpEn); |
---|
54 | |
---|
55 | void WarpRadio_v1_SetTxGainTiming(unsigned int radios, unsigned char TxGainTarget, unsigned char TxGainStep, unsigned char TxGainTimeStep); |
---|
56 | |
---|
57 | void WarpRadio_v1_TxLpfCornFreqCoarseAdj(char value, unsigned int radios); |
---|
58 | |
---|
59 | void WarpRadio_v1_RxLpfCornFreqCoarseAdj(char value, unsigned int radios); |
---|
60 | |
---|
61 | char WarpRadio_v1_RxLpfCornFreqFineAdj(char value, unsigned int radios); |
---|
62 | |
---|
63 | void WarpRadio_v1_RxHighPassCornerFreq(char value, unsigned int radios); |
---|
64 | |
---|
65 | unsigned int WarpRadio_v1_RSSIData(unsigned int radios); |
---|
66 | |
---|
67 | #endif |
---|