diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2006-08-28 22:38:41 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2006-08-28 22:38:41 +0000 |
commit | 4fc717a4c19a1fe0349977d7b9c86561c5a5cf2d (patch) | |
tree | eb6113c7491072f7b5136e24775737764e2cdede /firmware/export/fmradio.h | |
parent | 65c2c58b3aa26164bd919665e4d710efa2fa7c79 (diff) | |
download | rockbox-4fc717a4c19a1fe0349977d7b9c86561c5a5cf2d.tar.gz rockbox-4fc717a4c19a1fe0349977d7b9c86561c5a5cf2d.zip |
Added FS#2939 Encoder Codec Interface + Codecs by Antonius Hellmann with additional FM Recording support and my modifications
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10789 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/fmradio.h')
-rw-r--r-- | firmware/export/fmradio.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/firmware/export/fmradio.h b/firmware/export/fmradio.h index 3c55fb7672..73113237c0 100644 --- a/firmware/export/fmradio.h +++ b/firmware/export/fmradio.h | |||
@@ -20,6 +20,22 @@ | |||
20 | #ifndef FMRADIO_H | 20 | #ifndef FMRADIO_H |
21 | #define FMRADIO_H | 21 | #define FMRADIO_H |
22 | 22 | ||
23 | /** declare some stuff here so powermgmt.c can properly tell if the radio is | ||
24 | actually playing and not just paused. This break in heirarchy is allowed | ||
25 | for audio_status(). **/ | ||
26 | |||
27 | /* set when radio is playing or paused within fm radio screen */ | ||
28 | #define FMRADIO_OFF 0x0 | ||
29 | #define FMRADIO_PLAYING 0x1 | ||
30 | #define FMRADIO_PAUSED 0x2 | ||
31 | |||
32 | /* returns the IN flag */ | ||
33 | #define FMRADIO_IN_SCREEN(s) ((s) & FMRADIO_IN_FLAG) | ||
34 | #define FMRADIO_STATUS_PLAYING(s) ((s) & FMRADIO_PLAYING_OUT) | ||
35 | #define FMRADIO_STATUS_PAUSED(s) ((s) & FMRADIO_PAUSED_OUT) | ||
36 | |||
37 | extern int get_radio_status(void); | ||
38 | |||
23 | extern int fmradio_read(int addr); | 39 | extern int fmradio_read(int addr); |
24 | extern void fmradio_set(int addr, int data); | 40 | extern void fmradio_set(int addr, int data); |
25 | 41 | ||