diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2009-06-28 17:43:04 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2009-06-28 17:43:04 +0000 |
commit | 7df759c95107bc8e5f9a6ba17f77114fa9d80357 (patch) | |
tree | 476eba9a9add512991bd237e366c0704124d9c12 /firmware/export/udacodec.h | |
parent | c3f9ab46dea336437b7fb6113a76d75fe1b0c119 (diff) | |
download | rockbox-7df759c95107bc8e5f9a6ba17f77114fa9d80357.tar.gz rockbox-7df759c95107bc8e5f9a6ba17f77114fa9d80357.zip |
Create an udacodec interface (similar to ascodec and wmcoded) and adapt/implement it for the iriver h1xx/h3xx and the meizus.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21546 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/udacodec.h')
-rw-r--r-- | firmware/export/udacodec.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/firmware/export/udacodec.h b/firmware/export/udacodec.h new file mode 100644 index 0000000000..beca43329e --- /dev/null +++ b/firmware/export/udacodec.h | |||
@@ -0,0 +1,31 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2009 by Bertrik Sikken | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | /* perform a hardware reset of the codec */ | ||
23 | void udacodec_reset(void); | ||
24 | |||
25 | /* write a single register */ | ||
26 | int udacodec_write(unsigned char reg, unsigned short value); | ||
27 | |||
28 | /* write two consecutive registers */ | ||
29 | int udacodec_write2(unsigned char reg, | ||
30 | unsigned short value1, unsigned short value2); | ||
31 | |||