FM Radio mishmash: Make a quieter screen for the SWCODEC targets esp. for the benefit...
[Rockbox.git] / apps / recorder / radio.h
blobf04c14d6d3cf8f969a733662cef5b4a719454d23
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2003 Linus Nielsen Feltzing
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef RADIO_H
20 #define RADIO_H
22 #ifndef FMRADIO_H
23 #include "fmradio.h"
24 #endif
26 #if CONFIG_TUNER
27 void radio_load_presets(char *filename);
28 void radio_init(void);
29 int radio_screen(void);
30 void radio_start(void);
31 void radio_pause(void);
32 void radio_stop(void);
33 bool radio_hardware_present(void);
34 bool in_radio_screen(void);
35 /* callbacks for the radio settings */
36 void set_radio_region(int region);
37 void toggle_mono_mode(bool mono);
39 #define MAX_FMPRESET_LEN 27
41 struct fmstation
43 int frequency; /* In Hz */
44 char name[MAX_FMPRESET_LEN+1];
47 struct fm_region_setting
49 int freq_min;
50 int freq_max;
51 int freq_step;
52 #if (CONFIG_TUNER & TEA5767)
53 char deemphasis; /* 0: 50us, 1: 75us */
54 char band; /* 0: europe, 1: japan (BL in TEA spec)*/
55 /* Note: "region" parameter is just for display atm and is not compiled. */
56 #define FM_REGION_ENTRY(region, fmin, fmax, fstep, deemph, band) \
57 { fmin, fmax, fstep, deemph, band }
58 #else
59 #define FM_REGION_ENTRY(region, fmin, fmax, fstep, deemph, band) \
60 { fmin, fmax, fstep }
61 #endif
64 #endif
66 #endif