comparison src/g23m-gprs/llc/llc_rxf.h @ 183:219afcfc6250

src/g23m-gprs: initial import from TCS3.2/LoCosto
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 13 Oct 2016 04:24:13 +0000
parents
children
comparison
equal deleted inserted replaced
182:f02d0a0e1849 183:219afcfc6250
1 /*
2 +-----------------------------------------------------------------------------
3 | Project :
4 | Modul :
5 +-----------------------------------------------------------------------------
6 | Copyright 2002 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 : Definitions for llc_rxf.c
18 +-----------------------------------------------------------------------------
19 */
20
21
22 #ifndef LLC_RXF_H
23 #define LLC_RXF_H
24
25
26 /*
27 * Values for frame_rej parameter of rx_interpret_frame().
28 */
29 #define FRAME_NOT_REJ 0x00
30 #define FRAME_REJ_W1 0x01
31 #define FRAME_REJ_W3 0x04
32
33
34 EXTERN void rx_init (void);
35
36 EXTERN void rx_analyse_ctrl_field (T_GRLC_UNITDATA_IND *grlc_unitdata_ind,
37 T_PDU_TYPE *frame_type,
38 UBYTE *protected_mode,
39 UBYTE *sapi,
40 T_FRAME_NUM *ns,
41 BOOL *ciphering,
42 USHORT *header_size,
43 BOOL *frame_ok);
44
45 EXTERN void rx_send_decipher_req (T_GRLC_UNITDATA_IND *grlc_unitdata_ind,
46 T_PDU_TYPE frame_type,
47 UBYTE protected_mode,
48 T_FRAME_NUM ns,
49 USHORT header_size,
50 BOOL ciphering);
51
52 EXTERN void rx_interpret_frame (T_sdu *frame,
53 UBYTE *sapi,
54 T_PDU_TYPE *pdu_type,
55 T_COMMAND *command,
56 T_BIT *cr_bit,
57 T_BIT *pf_bit,
58 T_FRAME_NUM *nr,
59 T_FRAME_NUM *ns,
60 BOOL *frame_ok,
61 UBYTE *frame_rej,
62 USHORT *frame_rej_ctrl_length,
63 UBYTE cipher);
64
65 EXTERN void rx_strip_llc_header (T_sdu *sdu,
66 T_PDU_TYPE pdu_type,
67 T_COMMAND command);
68
69
70 #endif /* !LLC_RXS_H */