comparison src/g23m-aci/l2p/l2p.h @ 1:d393cd9bb723

src/g23m-*: initial import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 15 Jul 2018 04:40:46 +0000
parents
children
comparison
equal deleted inserted replaced
0:b6a5e36de839 1:d393cd9bb723
1 /*
2 +-----------------------------------------------------------------------------
3 | Project : BAT L2P ()
4 | Modul : BAT_L2P
5 +-----------------------------------------------------------------------------
6 | Copyright 2005 Texas Instruments Berlin, AG
7 | All rights reserved.
8 |
9 | This file is confidential and a trade secret of Texas
10 | Instruments Berlin, AG
11 | The receipt of or possession of this file does not convey
12 | any rights to reproduce or disclose its contents or to
13 | manufacture, use, or sell anything it may describe, in
14 | whole, or in part, without the specific written consent of
15 | Texas Instruments Berlin, AG.
16 +-----------------------------------------------------------------------------
17 | Purpose : L2P external interface definition
18 +-----------------------------------------------------------------------------
19 */
20
21 #ifndef L2P_EXTERN_H
22 #define L2P_EXTERN_H
23
24 #include "l2p_types.h"
25
26 /**********************************************
27 **
28 ** Function Prototypes
29 **
30 ***********************************************/
31
32 T_L2P_STATUS L2P_Configure(U8 batid, void *mem,
33 T_L2P_SUPPORTED_PROTOCOLS protocolId,
34 U16 maxMTU,
35 L2P_Get_Tx_Buf_CB Get_Tx_Buf_Cb,
36 L2P_Get_Rx_Buf_CB Get_Rx_Buf_Cb,
37 L2P_Get_Next_Seg_CB Get_Next_Seg_Cb,
38 L2P_Send_Frame_CB Send_Frame_Cb,
39 L2P_Msg_Rxd_CB Msg_Rxd_Cb);
40
41 T_L2P_STATUS L2P_Remove(U8 batid);
42
43 T_L2P_STATUS L2P_Send(U8 batId, U8 muxId, U32 dataTag, void *dataBuf, U16 dataLen, int *errVal);
44
45 T_L2P_STATUS L2P_Receive(U8 batId, void *dataBuf, void *seg_hdr_ptr, U16 totalsize, U16 segSize);
46
47 #endif
48