radio_controller_adv.c File Reference

C code for advanced functions allowing for finer control. More...

#include "radio_controller_adv.h"

Go to the source code of this file.

Functions

void WarpRadio_v1_SHDNEnable (unsigned int radios)
 Shuts down the radio.
void WarpRadio_v1_SHDNDisable (unsigned int radios)
 Starts up the radio.
void WarpRadio_v1_SHDNSoftControlEnable (unsigned int radios)
 SHDN control is thorugh software function calls.
void WarpRadio_v1_SHDNSoftControlDisable (unsigned int radios)
 SHDN control is thorugh hardware ports.
void WarpRadio_v1_RxEnSoftControlEnable (unsigned int radios)
 Receive Enable control is thorugh software function calls.
void WarpRadio_v1_RxEnSoftControlDisable (unsigned int radios)
 Receive Enable control is thorugh hardware ports.
void WarpRadio_v1_TxEnSoftControlEnable (unsigned int radios)
 Transmit Enable control is thorugh software function calls.
void WarpRadio_v1_TxEnSoftControlDisable (unsigned int radios)
 Transmit Enable control is thorugh hardware ports.
void WarpRadio_v1_RxHpSoftControlEnable (unsigned int radios)
 RxHp control is thorugh software function calls.
void WarpRadio_v1_RxHpSoftControlDisable (unsigned int radios)
 RxHp control is thorugh hardware ports.
void WarpRadio_v1_RxHpEnable (unsigned int radios)
 Enable RxHp on radios.
void WarpRadio_v1_RxHpDisable (unsigned int radios)
 Disable RxHp on radios.
char WarpRadio_v1_RssiHighBandwidth (char mode, unsigned int radios)
 Enable or disable RSSI High Bandwidth.
int WarpRadio_v1_DACSleep (char mode, unsigned int radios)
 Sleep or un-sleep DAC.
int WarpRadio_v1_DACFineGainAdj (char chan, unsigned char value, unsigned int radios)
 Adjust output fine gain for DAC.
int WarpRadio_v1_DACCoarseGainAdj (char chan, unsigned char value, unsigned int radios)
 Adjust output coarse gain for DAC.
void WarpRadio_v1_ADCPdwn (char chan, unsigned char value, unsigned int radios)
 Power up/down the ADC on radio.


Detailed Description

C code for advanced functions allowing for finer control.

Version:
1.09
Author:
Siddharth Gupta
This file contains controls the advanced functionality of the radio boards, such as DAC phase offsets, and all the various shutdown and standby states.

Definition in file radio_controller_adv.c.


Function Documentation

void WarpRadio_v1_ADCPdwn ( char  chan,
unsigned char  value,
unsigned int  radios 
)

Power up/down the ADC on radio.

Controls power down and power up functionality of the two channels of the ADC. Both channels can be done by ORing the chan values together.

Parameters:
chan ICHAN is for I channel QCHAN is for Q channel.
value 0 is to power up 1 is to power down.
radios ADCs on radios affected.

Definition at line 352 of file radio_controller_adv.c.

References RAD_ADC_RX_PWDNA_MASK, RADIO_CONTROLLER_mReadSlaveReg2, and RADIO_CONTROLLER_mWriteSlaveReg2.

int WarpRadio_v1_DACCoarseGainAdj ( char  chan,
unsigned char  value,
unsigned int  radios 
)

Adjust output coarse gain for DAC.

Adjust the Coarse Gain for output current on the I and Q channels of the DAC. The value must be 8 bits wide at most.

Parameters:
chan ICHAN changes the I channel fine gain, QCHAN affects the fine gain of the Q channel.
value The value is 4 bits wide and goes to the registers.
radios The dacs of the radios affected.
Returns:
Returns INVALID_MODE if the mode is incorrect, WARP_SUCCESS if successful change.

Definition at line 324 of file radio_controller_adv.c.

int WarpRadio_v1_DACFineGainAdj ( char  chan,
unsigned char  value,
unsigned int  radios 
)

Adjust output fine gain for DAC.

Adjust the Fine Gain for output current on the I and Q channels of the DAC. The value must be 8 bits wide at most.

Parameters:
chan ICHAN changes the I channel fine gain, QCHAN affects the fine gain of the Q channel.
value The value is 8 bits wide and goes to the registers.
radios The dacs of the radios affected.
Returns:
Returns INVALID_MODE if the mode is incorrect, WARP_SUCCESS if successful change.

Definition at line 295 of file radio_controller_adv.c.

int WarpRadio_v1_DACSleep ( char  mode,
unsigned int  radios 
)

Sleep or un-sleep DAC.

This function either puts the DAC on the specified radios to sleep or takes them out of sleep.

Parameters:
mode 0 not in sleep, 1 enable sleep.
radios The radios that are affected.
Returns:
Returns INVALID_MODE if mode is incorrect, WARP_SUCCESS if successful change.

Definition at line 267 of file radio_controller_adv.c.

char WarpRadio_v1_RssiHighBandwidth ( char  mode,
unsigned int  radios 
)

Enable or disable RSSI High Bandwidth.

Parameters:
mode 0 disables high bandwidth, 1 enables high bandwidth.
radios The radios that are affected.
Returns:
Returns INVALID_MODE if mode is incorrect, WARP_SUCCESS if successful change.

Definition at line 176 of file radio_controller_adv.c.

References INVALID_MODE, RAD1MASK, RAD2MASK, RAD3MASK, RAD4MASK, radio_controller_baseaddr, RADIO_CONTROLLER_mWriteSlaveReg7, REG_RAD1_LOWPASS_FILTER, REG_RAD2_LOWPASS_FILTER, REG_RAD3_LOWPASS_FILTER, REG_RAD4_LOWPASS_FILTER, SLAVEMASK, transRadio(), and WARP_SUCCESS.

void WarpRadio_v1_RxEnSoftControlDisable ( unsigned int  radios  ) 

Receive Enable control is thorugh hardware ports.

Disable Receive Enable software control. In this situation the RxEn external port on the radio bridge must be used.

Parameters:
radios Radios affected.

Definition at line 93 of file radio_controller_adv.c.

References RAD_RXEN_CON_MASK, radio_controller_baseaddr, RADIO_CONTROLLER_mReadSlaveReg0, and RADIO_CONTROLLER_mWriteSlaveReg0.

void WarpRadio_v1_RxEnSoftControlEnable ( unsigned int  radios  ) 

Receive Enable control is thorugh software function calls.

Enable Receive Enable software control. In this situation the RxEnable and Disable functions control the RxEn pin.

Parameters:
radios Radios affected.

Definition at line 81 of file radio_controller_adv.c.

References RAD_RXEN_CON_MASK, radio_controller_baseaddr, RADIO_CONTROLLER_mReadSlaveReg0, and RADIO_CONTROLLER_mWriteSlaveReg0.

void WarpRadio_v1_RxHpDisable ( unsigned int  radios  ) 

Disable RxHp on radios.

Disables the RxHp bit in the radios specified.

Parameters:
radios Refers to the radios affected.

Definition at line 165 of file radio_controller_adv.c.

References RAD_RXHP_MASK, radio_controller_baseaddr, RADIO_CONTROLLER_mReadSlaveReg0, and RADIO_CONTROLLER_mWriteSlaveReg0.

void WarpRadio_v1_RxHpEnable ( unsigned int  radios  ) 

Enable RxHp on radios.

Enables the RxHp on the radios specified. Must be software control mode to work.

Parameters:
radios Refers to the radios affected.

Definition at line 153 of file radio_controller_adv.c.

References RAD_RXHP_MASK, radio_controller_baseaddr, RADIO_CONTROLLER_mReadSlaveReg0, and RADIO_CONTROLLER_mWriteSlaveReg0.

void WarpRadio_v1_RxHpSoftControlDisable ( unsigned int  radios  ) 

RxHp control is thorugh hardware ports.

Disable RxHp software control. In this situation the RxHp external port on the radio bridge must be used.

Parameters:
radios Radios affected.

Definition at line 141 of file radio_controller_adv.c.

References RAD_RXHP_CON_MASK, radio_controller_baseaddr, RADIO_CONTROLLER_mReadSlaveReg0, and RADIO_CONTROLLER_mWriteSlaveReg0.

Referenced by warpphy_init().

void WarpRadio_v1_RxHpSoftControlEnable ( unsigned int  radios  ) 

RxHp control is thorugh software function calls.

Enable RxHp software control. In this situation the RxHpEnable and Disable functions control the RxHp pin.

Parameters:
radios Radios affected.

Definition at line 129 of file radio_controller_adv.c.

References RAD_RXHP_CON_MASK, radio_controller_baseaddr, RADIO_CONTROLLER_mReadSlaveReg0, and RADIO_CONTROLLER_mWriteSlaveReg0.

void WarpRadio_v1_SHDNDisable ( unsigned int  radios  ) 

Starts up the radio.

This function starts up the radios specified to the standby state. Receive and transmit are still off.

Parameters:
radios Refers to the radios in the slots that will be started up.

Definition at line 45 of file radio_controller_adv.c.

References RAD_SHDN_MASK, radio_controller_baseaddr, RADIO_CONTROLLER_mReadSlaveReg0, and RADIO_CONTROLLER_mWriteSlaveReg0.

void WarpRadio_v1_SHDNEnable ( unsigned int  radios  ) 

Shuts down the radio.

This function shuts down the radios specified. Forcibly turns off transmit and recieve modes as well as shuts down amplifiers.

Parameters:
radios Refers to the radios in the slots that will be shut down.

Definition at line 31 of file radio_controller_adv.c.

References RAD_RXEN_MASK, RAD_SHDN_MASK, RAD_TXEN_MASK, radio_controller_baseaddr, RADIO_CONTROLLER_mReadSlaveReg0, and RADIO_CONTROLLER_mWriteSlaveReg0.

void WarpRadio_v1_SHDNSoftControlDisable ( unsigned int  radios  ) 

SHDN control is thorugh hardware ports.

Disable SHDN software control. In this situation the SHDN external port on the radio bridge must be used.

Parameters:
radios Radios affected.

Definition at line 69 of file radio_controller_adv.c.

References RAD_SHDN_CON_MASK, radio_controller_baseaddr, RADIO_CONTROLLER_mReadSlaveReg0, and RADIO_CONTROLLER_mWriteSlaveReg0.

void WarpRadio_v1_SHDNSoftControlEnable ( unsigned int  radios  ) 

SHDN control is thorugh software function calls.

Enable SHDN software control. In this situation the SHDNEnable and Disable functions control the SHDN pin.

Parameters:
radios Radios affected.

Definition at line 57 of file radio_controller_adv.c.

References RAD_SHDN_CON_MASK, radio_controller_baseaddr, RADIO_CONTROLLER_mReadSlaveReg0, and RADIO_CONTROLLER_mWriteSlaveReg0.

void WarpRadio_v1_TxEnSoftControlDisable ( unsigned int  radios  ) 

Transmit Enable control is thorugh hardware ports.

Disable Transmit Enable software control. In this situation the TxEn external port on the radio bridge must be used.

Parameters:
radios Radios affected.

Definition at line 117 of file radio_controller_adv.c.

References RAD_TXEN_CON_MASK, radio_controller_baseaddr, RADIO_CONTROLLER_mReadSlaveReg0, and RADIO_CONTROLLER_mWriteSlaveReg0.

void WarpRadio_v1_TxEnSoftControlEnable ( unsigned int  radios  ) 

Transmit Enable control is thorugh software function calls.

Enable Transmit Enable software control. In this situation the TxEnable and Disable functions control the TxEn pin.

Parameters:
radios Radios affected.

Definition at line 105 of file radio_controller_adv.c.

References RAD_TXEN_CON_MASK, radio_controller_baseaddr, RADIO_CONTROLLER_mReadSlaveReg0, and RADIO_CONTROLLER_mWriteSlaveReg0.


Updated on Sat Oct 11 00:50:53 2008 WARP