Prepare new maemo release
[maemo-rb.git] / firmware / export / iap.h
blob8ee26cbe9f3440f525c58f3ba2434ce69f260312
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2002 by Alan Korr
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 ****************************************************************************/
20 #ifndef __IAP_H__
21 #define __IAP_H__
23 #include <stdbool.h>
25 #define RX_BUFLEN 512
26 #define TX_BUFLEN 128
28 extern bool iap_getc(unsigned char x);
29 extern void iap_setup(int ratenum);
30 extern void iap_bitrate_set(int ratenum);
31 extern void iap_periodic(void);
32 extern void iap_handlepkt(void);
33 extern void iap_send_pkt(const unsigned char * data, int len);
34 const unsigned char *iap_get_serbuf(void);
36 #endif