Auto-detect binary in TTS / encoder setting dialog by searching $PATH. Only linux...
[Rockbox.git] / firmware / export / pcf50606.h
blobfab7e987d93a3e9612e808be013833d2d581953f
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 by 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 PCF50606_H
20 #define PCF50606_H
22 void pcf50606_init(void);
23 int pcf50606_write_multiple(int address, const unsigned char* buf, int count);
24 int pcf50606_write(int address, unsigned char val);
25 int pcf50606_read_multiple(int address, unsigned char* buf, int count);
26 int pcf50606_read(int address);
27 void pcf50606_set_usb_charging(bool on);
28 bool pcf50606_usb_charging_enabled(void);
30 /* internal low level calls used by the eeprom driver for h300 */
31 void pcf50606_i2c_init(void);
32 void pcf50606_i2c_recalc_delay(int cpu_clock);
33 void pcf50606_i2c_start(void);
34 void pcf50606_i2c_stop(void);
35 void pcf50606_i2c_ack(bool ack);
36 bool pcf50606_i2c_getack(void);
37 #if defined(IRIVER_H300_SERIES)
38 /* USB charging support */
39 void pcf50606_i2c_outb(unsigned char byte);
40 unsigned char pcf50606_i2c_inb(bool ack);
41 #endif
43 #if (defined(IAUDIO_X5) || defined(IAUDIO_M5)) && !defined (SIMULATOR)
44 void pcf50606_reset_timeout(void);
45 #endif
47 #endif /* PCF50606_H */