Changes between Version 10 and Version 11 of warpradio_max2829.c


Ignore:
Timestamp:
Feb 7, 2006, 2:08:31 PM (18 years ago)
Author:
bratton
Comment:

completed through TxLpfCornFreqCoarseAdj

Legend:

Unmodified
Added
Removed
Modified
  • warpradio_max2829.c

    v10 v11  
    4141
    4242'''''[source:"/PlatformSupport/WARP_Libraries/warpradio_max2829.c@latest#L276" void WarpRadio_TxEnable(unsigned int* baseaddr, unsigned int* radbaseaddr, unsigned char radios)]'''''
    43 [[BR]]Enables the transmit mode on the Radios specified and turns on the 2.4GHz amplifier. ''radios'' refers to the Radios in the slots whose transmit mode is turned on. ''baseaddr'' refers to the base address of the SPI core. ''radbaseaddr'' is the base address of the Radio Controller peripheral.
    44 [[BR]]'''''This code needs to be checked.  Top-level-comment says 2.4GHz amp is turned on.  In-code-comments say that the 5GHz amp is turned off but do not specify whether the 2.4GHz amp is actually turned on.'''''
     43[[BR]]Enables the transmit mode on the Radios specified. Turns off the 2.4GHz and the 5Ghz amplifiers.  ''radios'' refers to the Radios in the slots whose transmit mode is turned on. ''baseaddr'' refers to the base address of the SPI core. ''radbaseaddr'' is the base address of the Radio Controller peripheral. ''radios '' is the parameter used to specify for which radios to enable transmit mode.
     44[[BR]]
    4545
    4646
    4747'''''[source:"/PlatformSupport/WARP_Libraries/warpradio_max2829.c@latest#L305" void WarpRadio_TxDisable(unsigned int* baseaddr, unsigned int* radbaseaddr, unsigned char radios)]'''''
    48 [[BR]]Disables the transmit mode on the Radios specified and turns off both amplifiers. ''radios'' refers to the Radios in the slots whose transmit mode is turned off. ''baseaddr'' refers to the base address of the SPI core. ''radbaseaddr'' is the base address of the Radio Controller peripheral.
     48[[BR]]Disables the transmit mode on the Radios specified and turns off both amplifiers. This function also disable the receive mode. ''radios'' refers to the Radios in the slots whose transmit mode is turned off. ''baseaddr'' refers to the base address of the SPI core. ''radbaseaddr'' is the base address of the Radio Controller peripheral. ''radios '' is the parameter used to specify for which radios to disable the transmit mode.
    4949
    5050
    5151'''''[source:"/PlatformSupport/WARP_Libraries/warpradio_max2829.c@latest#L335" void WarpRadio_SHDNEnable(unsigned int* baseaddr, unsigned int* radbaseaddr, unsigned char radios)]'''''
    52 [[BR]]Shuts down the radios specified.  Forcibly turns off transmit and receive modes and shuts down amplifiers. ''radios'' refers to the Radios in the slots affected . ''baseaddr'' refers to the base address of the SPI core. ''radbaseaddr'' is the base address of the Radio Controller peripheral.
     52[[BR]]Shuts down the radios specified.  Forcibly turns off transmit and receive modes and shuts down amplifiers. ''radios'' refers to the Radios in the slots affected . ''baseaddr'' refers to the base address of the SPI core. ''radbaseaddr'' is the base address of the Radio Controller peripheral.  ''radios '' is the parameter used to specify which radios to shutdown.
    5353
    5454
    5555'''''[source:"/PlatformSupport/WARP_Libraries/warpradio_max2829.c@latest#L371" void WarpRadio_SHDNDisable(unsigned int* baseaddr, unsigned int* radbaseaddr, unsigned char radios)]'''''
    56 [[BR]]Disable the shutdown mode on the selected radios. ''radios'' refers to the Radios in the slots affected . ''baseaddr'' refers to the base address of the SPI core. ''radbaseaddr'' is the base address of the Radio Controller peripheral.
     56[[BR]]Takes the specified radios out of shutdown mode. Does not enable receive or transmit modes.  ''radios'' refers to the Radios in the slots affected . ''baseaddr'' refers to the base address of the SPI core. ''radbaseaddr'' is the base address of the Radio Controller peripheral. ''radios'' is the parameter used to specify which radios to remove from shutdown mode.
    5757
    5858
    5959
    6060'''''[source:"/PlatformSupport/WARP_Libraries/warpradio_max2829.c@latest#L392" void WarpRadio_Reset(unsigned int* baseaddr, unsigned int* radbaseaddr, unsigned char radios)]'''''
    61 [[BR]]Reset the radio board registers that are specified in 'radios'. Goes through a set of instructions to achieve a reset of the radios. ''baseaddr'' refers to the base address of the SPI core. ''radbaseaddr'' is the base address of the Radio Controller peripheral.
     61[[BR]]Reset the radio board registers that are specified in 'radios'. Goes through a set of instructions to achieve a reset of the radios. ''baseaddr'' refers to the base address of the SPI core. ''radbaseaddr'' is the base address of the Radio Controller peripheral.  ''radios'' refers to the
    6262
    6363
     
    7171
    7272'''''[source:"/PlatformSupport/WARP_Libraries/warpradio_max2829.c@latest#L503" int WarpRadio_SetCenterFreq2GHz(unsigned int* baseaddr, char freqset, unsigned char radios)]'''''
    73 [[BR]] Function used to shift the center frequency within the 2.4GHz band. ''freqset'' defines which frequency to shift to and the shifts are in increments of 5MHz from 2412MHz to 2472 MHz plus one at 2484MHz. ''radios'' signifies for which Radios to adjust the frequency. ''baseaddr'' refers to the base address of the SPI core.
     73[[BR]] Function used to shift the center frequency within the 2.4GHz band. ''radios'' signifies which Radios are affected by this function call. ''baseaddr'' refers to the base address of the SPI core. [[BR]]''freqset'' defines to which frequency to shift.
     74     1: 2412 MHz[[BR]]
     75     2: 2417 MHz[[BR]]
     76     3: 2422 MHz[[BR]]
     77     4: 2427 MHz[[BR]]
     78     5: 2432 MHz[[BR]]
     79     6: 2437 MHz[[BR]]
     80     7: 2442 MHz[[BR]]
     81     8: 2447 MHz[[BR]]
     82     9: 2452 MHz[[BR]]
     83     10: 2457 MHz[[BR]]
     84     11: 2462 MHz[[BR]]
     85     12: 2467 MHz[[BR]]
     86     13: 2472 MHz[[BR]]
     87     14: 2484 MHz[[BR]]
     88
     89Returns INVALID_FREQ if given ''freqset'' is not valid.
    7490
    7591
    7692'''''[source:"/PlatformSupport/WARP_Libraries/warpradio_max2829.c@latest#L683" int WarpRadio_SetCenterFreq5GHz(unsigned int* baseaddr, char freqset, unsigned char radios)]'''''
    77 [[BR]] Function used to shift the center frequency within the 5GHz band. ''freqset'' defines which frequency to shift to and the shifts are in increments of 20MHz from 5180MHz to 5320MHz and 5500Mhz to 5620MHz. ''radios'' signifies for which Radios to adjust the frequency. ''baseaddr'' refers to the base address of the SPI core.
     93[[BR]] Function used to shift the center frequency within the 5GHz band. ''radios'' signifies which Radios are affected by this function call. ''baseaddr'' refers to the base address of the SPI core. [[BR]]''freqset'' defines to which frequency to shift.
     94     1: 5180 MHz[[BR]]
     95     2: 5200 MHz[[BR]]
     96     3: 5220 MHz[[BR]]
     97     4: 5240 MHz[[BR]]
     98     5: 5260 MHz[[BR]]
     99     6: 5280 MHz[[BR]]
     100     7: 5300 MHz[[BR]]
     101     8: 5320 MHz[[BR]]
     102     9: 5500 MHz[[BR]]
     103     10: 5520 MHz[[BR]]
     104     11: 5540 MHz[[BR]]
     105     12: 5560 MHz[[BR]]
     106     13: 5580 MHz[[BR]]
     107     14: 5600 MHz[[BR]]
     108     15: 5620 MHz[[BR]]
     109     16: 5640 MHz[[BR]]
     110     17: 5660 MHz[[BR]]
     111     18: 5680 MHz[[BR]]
     112     19: 5700 MHz[[BR]]
     113     20: 5745 MHz[[BR]]
     114     21: 5765 MHz[[BR]]
     115     22: 5785 MHz[[BR]]
     116     23: 5805 MHz[[BR]]
     117
     118Returns INVALID_FREQ if given ''freqset'' is not valid.
    78119
    79120
     
    87128
    88129'''''[source:"/PlatformSupport/WARP_Libraries/warpradio_max2829.c@latest#L1051" void WarpRadio_NoCalibration(unsigned int* baseaddr, unsigned char radios)]'''''
    89 [[BR]] Takes the specified radios out of transmit or receive calibration mode. ''radios'' refers to the Radios in the affected slots.  ''baseaddr'' refers to the base address of the SPI core.
    90 
     130[[BR]] Takes the specified radios out of both transmit and receive calibration mode. ''radios'' refers to the Radios in the affected slots.  ''baseaddr'' refers to the base address of the SPI core.
    91131
    92132
    93133'''''[source:"/PlatformSupport/WARP_Libraries/warpradio_max2829.c@latest#L1084" int WarpRadio_TxCalGain(unsigned int* baseaddr, char gain, unsigned char radios)]'''''
    94 [[BR]]
     134[[BR]] Sets the gain for Transmitter I/Q Calibration LO Leakage and Sideband-Detector Gain Control. Returns NOT_IN_CALIBRATION if any of the radios for which the gain is being set in not in calibration mode. Returns WARP_SUCCESS if value changed successfully. To be in calibration mode set TxCalibration.[[BR]]''gain'' sets the level of gain.[[BR]]
    95135
     136''Gain'' =
     137     0: -> 8db[[BR]]
     138     1: -> 18db[[BR]]
     139     2: -> 24db[[BR]]
     140     3: -> 34db[[BR]]
    96141
    97 '''''[source:"/PlatformSupport/WARP_Libraries/warpradio_max2829.c@latest#L1158" int WarpRadio_TxCalRxEnable(unsigned int* baseaddr, char mode, unsigned char radios)]'''''
    98 [[BR]] '''''DESCRIPTION TO BE ADDED'''''
    99 
     142Returns INVALID_GAIN if the value set to ''gain'' is not valid.[[BR]]''baseaddr'' refers to the base address of the SPI core. 
    100143
    101144'''''[source:"/PlatformSupport/WARP_Libraries/warpradio_max2829.c@latest#L1233" int WarpRadio_SetMimoMode(unsigned int* baseaddr, char mode, unsigned char radios)]'''''
    102 [[BR]] '''''DESCRIPTION TO BE ADDED'''''
     145[[BR]] Function enables or disables the MIMO mode for the specified ''radios''. ''mode'' = 0 turns off MIMO mode while ''mode'' = 1 enables the MIMO mode. Returns INVALID_MODE if mode is wrong or returns WARP_SUCCESS if successful. ''baseaddr'' refers to the base address of the SPI core.
    103146
    104147
    105148'''''[source:"/PlatformSupport/WARP_Libraries/warpradio_max2829.c@latest#L1356" int WarpRadio_RssiHighBandwidth(unsigned int* baseaddr, char mode, unsigned char radios)]'''''
    106 [[BR]] '''''DESCRIPTION TO BE ADDED'''''
     149[[BR]] This function is to enable or disable the RSSI High Bandwidth for the ''radios'' specified. ''mode''=0 disables the state and ''mode''=1 enables it.    ''baseaddr'' refers to the base address of the SPI core.
    107150
    108151
    109152'''''[source:"/PlatformSupport/WARP_Libraries/warpradio_max2829.c@latest#L1436" void WarpRadio_TxLpfCornFreqCoarseAdj(unsigned int* baseaddr, char value, unsigned char radios)]'''''
    110 [[BR]] '''''DESCRIPTION TO BE ADDED'''''
     153[[BR]]Set the Transmit Low Pass Filter Corner Frequency. This is the Coarse adjustment for the frequency and affects the ''radios'' specified. [[BR]]''value'' is the adjustment parameter.[[BR]]
     154
     155''value'' =
     156     00: undefined[[BR]]
     157     01: 12MHz (nominal mode)[[BR]]
     158     10: 18MHz (turbo mode 1)[[BR]]
     159     11: 24MHz (turbo mode 2)[[BR]]
     160
     161''baseaddr'' refers to the base address of the SPI core.
    111162
    112163
    113164'''''[source:"/PlatformSupport/WARP_Libraries/warpradio_max2829.c@latest#L1482" void WarpRadio_RxLpfCornFreqCoarseAdj(unsigned int* baseaddr, char value, unsigned char radios)]'''''
    114 [[BR]] '''''DESCRIPTION TO BE ADDED'''''
     165[[BR]]
    115166
    116167