From 4fc717a4c19a1fe0349977d7b9c86561c5a5cf2d Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 28 Aug 2006 22:38:41 +0000 Subject: 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 --- firmware/export/fmradio.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'firmware/export/fmradio.h') diff --git a/firmware/export/fmradio.h b/firmware/export/fmradio.h index 3c55fb7..7311323 100644 --- a/firmware/export/fmradio.h +++ b/firmware/export/fmradio.h @@ -20,6 +20,22 @@ #ifndef FMRADIO_H #define FMRADIO_H +/** declare some stuff here so powermgmt.c can properly tell if the radio is + actually playing and not just paused. This break in heirarchy is allowed + for audio_status(). **/ + +/* set when radio is playing or paused within fm radio screen */ +#define FMRADIO_OFF 0x0 +#define FMRADIO_PLAYING 0x1 +#define FMRADIO_PAUSED 0x2 + +/* returns the IN flag */ +#define FMRADIO_IN_SCREEN(s) ((s) & FMRADIO_IN_FLAG) +#define FMRADIO_STATUS_PLAYING(s) ((s) & FMRADIO_PLAYING_OUT) +#define FMRADIO_STATUS_PAUSED(s) ((s) & FMRADIO_PAUSED_OUT) + +extern int get_radio_status(void); + extern int fmradio_read(int addr); extern void fmradio_set(int addr, int data); -- cgit v1.1