REVISION
Definition in file TUNER_main.c.
#include "../SYSTEM/sys_hardware.h"
#include "../SYSTEM/sys_main.h"
#include "../FMXMIT/xmit_inc.h"
#include "tuner.h"
Include dependency graph for TUNER_main.c:

Go to the source code of this file.
Functions | |
| void | TUNER_control (int state) |
| Function turns on/off the tuner. | |
| int | TUNER_tune (int cmd, int channel) |
| Tuned channel. | |
| void | TUNER_initFIR (void) |
| Function initializes the FIR filter controls. | |
|
|
Function turns on/off the tuner.
Definition at line 45 of file TUNER_main.c. Referenced by UI_PSF_radio(). 00046 {
00047 int i;
00048 i = TUNER_WR; // always clear the tuner enable line for read.
00049 i = TUNER_DAT; // clear tuner data line for read...tristates DAT line.
00050 if (state)
00051 /* VCO on */
00052 {
00053 GPIOSR = GPIOSR & ~VCTRL_TUNER;
00054 /* Probably want to add a call to delay microsecond to provide
00055 enough time for the rail to become stable */
00056 TUNER_CLK = 0x0;// tuner clock enable line on.
00057 }
00058 else
00059 /* VCO Off */
00060 {
00061 GPIOSR = GPIOSR | VCTRL_TUNER;
00062 i = TUNER_CLK; // tuner clock enable line off
00063 }
00064 }
|
1.3.9.1