2008-12-25 01:46:16 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
2009-07-12 09:43:44 +00:00
|
|
|
* $Id$
|
2008-12-25 01:46:16 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2002 by Alan Korr
|
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#ifndef __IAP_H__
|
|
|
|
#define __IAP_H__
|
|
|
|
|
2010-10-24 21:39:09 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2013-06-22 09:08:23 +00:00
|
|
|
/* This is just the payload size, without sync, length and checksum */
|
|
|
|
#define RX_BUFLEN (64*1024)
|
|
|
|
/* This is the entire frame length, sync, length, payload and checksum */
|
2009-12-01 17:54:40 +00:00
|
|
|
#define TX_BUFLEN 128
|
|
|
|
|
2010-10-24 21:39:09 +00:00
|
|
|
extern bool iap_getc(unsigned char x);
|
2008-12-25 01:46:16 +00:00
|
|
|
extern void iap_setup(int ratenum);
|
|
|
|
extern void iap_bitrate_set(int ratenum);
|
|
|
|
extern void iap_periodic(void);
|
|
|
|
extern void iap_handlepkt(void);
|
2009-12-01 17:54:40 +00:00
|
|
|
extern void iap_send_pkt(const unsigned char * data, int len);
|
2010-09-20 19:37:17 +00:00
|
|
|
const unsigned char *iap_get_serbuf(void);
|
2008-12-25 01:46:16 +00:00
|
|
|
|
|
|
|
#endif
|