27 | | All the radio controller functions are divided into two sets. The first controls the Maxim Radio on the board and begin with `WarpRadio_` while the second set controls the Digitial-to-Analog Converter for the data and these begin with `WarpDac_`. |
| 27 | All the radio controller functions are divided into two sets. The first set control the Maxim Radio on the board and begin with {{{WarpRadio_}}} while the second set controls the Digitial-to-Analog Converter (DAC) for the data and these begin with {{{WarpDac_}}}. |
| 28 | |
| 29 | === Inputs to Functions === |
| 30 | |
| 31 | The following two inputs are common to all functions in the library |
| 32 | |
| 33 | 1. {{{baseaddr}}}: This is the base address of the radio controller peripheral. The base address information of all the peripherals is located in the {{{xparameters.h}}} file. This file appears only after the hardware has been generated the first time. To access the file open the Software Application Project and expand the {{{Processor: ppc405_0}}} list. Be sure to include this file at the top of your C program as well by using the following line: |
| 34 | {{{ |
| 35 | #include "xparameters.h" |
| 36 | }}} |
| 37 | If the project has been created with the Base System Builder, generally the base address of the radio controller is XPAR_RADIO_CONTROLLER_0_BASEADDR. Be sure to check this to be certain. |
| 38 | 1. {{{radios}}}/{{{dacs}}}: This refers to the Radios or the DACs that are to be affected by the function call. Each radio and DAC on the Radio Board can be selected by {{{RADIO1}}} or {{{DAC1}}} if the Radio Board is in slot 1, {{{RADIO2}}} or {{{DAC2}}} if in slot 2, etc. To call the function on multiple boards at the same time, OR (|) the values with each other. For example, {{{RADIO1|RADIO2}}} would affect both the radios in slot 1 and 2. |