source: PlatformSupport/CustomPeripherals/pcores/radio_controller_v1_30_a/src/radio_controller_cal.h

Last change on this file was 601, checked in by murphpo, 17 years ago

Fixing datatype for 'radios' argument to a bunch of radio controller functions

File size: 2.0 KB
Line 
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// Drivers for radio controller. Has functions relating to the calibration of
7// the radios.
8
9#ifndef RADIO_CONTROLLER_CAL_H
10#define RADIO_CONTROLLER_CAL_H
11
12/***************************** Include Files *******************************/
13
14#include "radio_prototypes.h"
15
16/****************************** Functions **********************************/
17
18// Put the radio into transmit calibration mode. 'radios' refers to the radios that will be put into
19// calibration. Forcibly removed from receive calibration mode.
20void WarpRadio_v1_TxCalibration(unsigned int radios);
21
22// Put the radio into receive calibration mode. 'radios' refers to the radios that will be put into
23// calibration. Forcibly removed from receive calibration mode.
24void WarpRadio_v1_RxCalibration(unsigned int radios);
25
26// Takes the specified radios out of transmit and recieve calibration mode. 'radios' refers the Radios in the
27// slots that will be affected. This function works exactly the same way as the function above.
28void WarpRadio_v1_NoCalibration(unsigned int radios);
29
30// Sets the gain for Transmitter I/Q Calibration LO Leakage and Sideband-Detector Gain Control.
31// Returns NOT_IN_CALIBRATION if any of the radios for which the gain is being set in not
32// in calibration mode. Returns INVALID_GAIN if the gain set value given is not valid. Returns
33// WARP_SUCCESS if value changed successfully. To be in calibration mode set
34// TxCalibration.
35// gain = 0 -> 8db
36// gain = 1 -> 18db
37// gain = 2 -> 24db
38// gain = 3 -> 34db
39char WarpRadio_v1_TxCalGain(char gain, unsigned int radios);
40
41// Enable or disable the Rx baseband section of the reciever. Mode = 0 disables the value while mode = 1
42// enables the value. Returns INVALID_MODE if the mode is invalid. Returns WARP_SUCCESS if successfully manage
43// to change the value.
44char WarpRadio_v1_TxCalRxEnable(char mode, unsigned int radios);
45
46
47#endif
Note: See TracBrowser for help on using the repository browser.