summaryrefslogtreecommitdiff
path: root/firmware/export/si4700.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2008-12-27 19:18:50 +0000
committerMichael Sevakis <jethead71@rockbox.org>2008-12-27 19:18:50 +0000
commit1fea6f6b22af74e904d918fff4cebec345529f4b (patch)
tree1cdddb0ab125099b7439fd80984517d4a1880341 /firmware/export/si4700.h
parentd6bae6c858413544ff0671910654f709d195e427 (diff)
Make si4700 tuner driver more sane with bit and field defines and entirely hide strange i2c interface from code with write/set/clear/masked functionality. On Gigabeat S use by-the-book busmode selection and GPIO lines. Implement some primitive station detection, debug registers in screen, and misc. changes to tie things together.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19600 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/si4700.h')
-rw-r--r--firmware/export/si4700.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/export/si4700.h b/firmware/export/si4700.h
index 89905ee155..fcc71cb282 100644
--- a/firmware/export/si4700.h
+++ b/firmware/export/si4700.h
@@ -36,9 +36,15 @@ struct si4700_region_data
extern const struct si4700_region_data si4700_region_data[TUNER_NUM_REGIONS];
+struct si4700_dbg_info
+{
+ uint16_t regs[16]; /* Read registers */
+};
+
void si4700_init(void);
int si4700_set(int setting, int value);
int si4700_get(int setting);
+void si4700_dbg_info(struct si4700_dbg_info *nfo);
#ifndef CONFIG_TUNER_MULTI
#define tuner_set si4700_set