oliverschmidt | 3396e9a | 2004-08-20 12:29:54 +0000 | [diff] [blame] | 1 | #ifndef __AHDLC_H__ |
| 2 | #define __AHDLC_H__ |
| 3 | |
| 4 | /*--------------------------------------------------------------------------- |
| 5 | ahdlc.h - ahdlc header file |
| 6 | --------------------------------------------------------------------------- |
| 7 | Version |
| 8 | 0.1 Original Version Jan 11, 1998 |
| 9 | (c)1998 Mycal Labs, All Rights Reserved |
| 10 | ---------------------------------------------------------------------------*/ |
| 11 | /* |
| 12 | * Copyright (c) 2003, Mike Johnson, Mycal Labs, www.mycal.net |
| 13 | * All rights reserved. |
| 14 | * |
| 15 | * Redistribution and use in source and binary forms, with or without |
| 16 | * modification, are permitted provided that the following conditions |
| 17 | * are met: |
| 18 | * 1. Redistributions of source code must retain the above copyright |
| 19 | * notice, this list of conditions and the following disclaimer. |
| 20 | * 2. Redistributions in binary form must reproduce the above copyright |
| 21 | * notice, this list of conditions and the following disclaimer in the |
| 22 | * documentation and/or other materials provided with the distribution. |
| 23 | * 3. All advertising materials mentioning features or use of this software |
| 24 | * must display the following acknowledgement: |
| 25 | * This product includes software developed by Mike Johnson/Mycal Labs |
| 26 | * www.mycal.net. |
| 27 | * 4. The name of the author may not be used to endorse or promote |
| 28 | * products derived from this software without specific prior |
| 29 | * written permission. |
| 30 | * |
| 31 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS |
| 32 | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 33 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 34 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY |
| 35 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 36 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE |
| 37 | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 38 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
| 39 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING |
| 40 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 41 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 42 | * |
| 43 | * This file is part of the Mycal Modified uIP TCP/IP stack. |
| 44 | * |
oliverschmidt | e9a3257 | 2004-08-22 12:35:12 +0000 | [diff] [blame] | 45 | * $Id: ahdlc.h,v 1.2 2004/08/22 12:37:00 oliverschmidt Exp $ |
oliverschmidt | 3396e9a | 2004-08-20 12:29:54 +0000 | [diff] [blame] | 46 | * |
| 47 | */ |
| 48 | |
| 49 | #include "uip.h" |
| 50 | |
| 51 | void ahdlc_init(u8_t *, u16_t); |
| 52 | void ahdlc_rx_ready(void); |
| 53 | u8_t ahdlc_rx(u8_t); |
| 54 | u8_t ahdlc_tx(u16_t protocol, u8_t *header, u8_t *buffer, |
| 55 | u16_t headerlen, u16_t datalen); |
| 56 | |
oliverschmidt | e9a3257 | 2004-08-22 12:35:12 +0000 | [diff] [blame] | 57 | #endif /* __AHDLC_H__ */ |