FreeCalypso > hg > fc-tourmaline
comparison src/g23m-gprs/grlc/grlc_f.h @ 1:fa8dc04885d8
src/g23m-*: import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 06:25:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:4e78acac3d88 | 1:fa8dc04885d8 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : GPRS (8441) | |
4 | Modul : GRLC | |
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 grlc_f.c . | |
18 +----------------------------------------------------------------------------- | |
19 */ | |
20 | |
21 #ifndef GRLC_F_H | |
22 #define GRLC_F_H | |
23 | |
24 | |
25 #define END_OF_LIST 0xff /* grlc_delete_prim */ | |
26 #define DELETE_MESSAGE 0xff /* grlc_ccd_error_handling grlc_decode_grlc */ | |
27 #define COMPUTE_DATA 0x00 /* grlc_prbs testmode */ | |
28 #define INITIALIZE 0x01 /* grlc_prbs testmode */ | |
29 | |
30 /*****************************************************************************************************************************/ | |
31 | |
32 EXTERN ULONG grlc_buffer2ulong ( BUF_cr_tlli *tlli ); /* BOTH_ENT */ | |
33 EXTERN void grlc_init ( void ); | |
34 EXTERN void grlc_delete_prim ( void ); | |
35 EXTERN UBYTE grlc_decode_grlc ( T_MSGBUF * msg_ptr_i ); | |
36 EXTERN void grlc_encode_ctrl ( UBYTE * ptr_in_i, T_MSGBUF * ptr_out_i, UBYTE r_bit_i ); | |
37 EXTERN void grlc_prim_put ( UBYTE * liststart_i, UBYTE object_i, UBYTE pos_i ); | |
38 EXTERN UBYTE grlc_prim_get_first ( UBYTE * liststart_i ); | |
39 EXTERN ULONG grlc_calc_new_poll_pos ( ULONG fn_i, UBYTE rrbp_i ); /* BOTH_ENT */ | |
40 EXTERN UBYTE * grlc_set_packet_ctrl_ack ( void ); /* BOTH_ENT? */ | |
41 EXTERN void grlc_send_access_burst ( UBYTE tn_i ); | |
42 EXTERN void grlc_send_normal_burst ( UBYTE * struct_data, UBYTE * encoded_data, UBYTE tn_i ); | |
43 EXTERN void grlc_del_sent_poll ( void ); | |
44 EXTERN void grlc_save_poll_pos ( ULONG fn_i, USHORT tn_i, UBYTE rrbp_i, UBYTE poll_type_i, UBYTE pctrl_ack_i ); | |
45 EXTERN ULONG grlc_decode_tbf_start_rel ( ULONG start_fn, USHORT rel_pos ); | |
46 EXTERN void grlc_get_sdu_len_and_used_ts ( T_RLC_VALUES * values ); | |
47 EXTERN BOOL grlc_check_dist ( ULONG high_i, ULONG low_i, ULONG dist_i ); | |
48 EXTERN void grlc_handle_poll_pos ( ULONG current_fn ); | |
49 EXTERN void grlc_send_rem_poll_pos ( ULONG current_fn ); | |
50 EXTERN UBYTE grlc_test_mode_active ( void ); | |
51 EXTERN void grlc_prbs ( UBYTE action_i, UBYTE lenght_i, UBYTE * ptr_i ); /* Testmode */ | |
52 EXTERN void grlc_trace_tbf_par ( UBYTE tbf_index ); | |
53 EXTERN void grlc_set_buf_tlli ( BUF_tlli_value *buf_tlli_o, ULONG tlli_i ); /* BOTH_ENT */ | |
54 EXTERN void grlc_set_tlli ( USHORT * l_tlli, USHORT * o_tlli, UBYTE * b_tlli, ULONG tlli ); /* BOTH_ENT */ | |
55 EXTERN void grlc_encode_ul_ctrl_block ( UBYTE *ul_ctrl_block, UBYTE *ul_ctrl_data ); /* BOTH_ENT */ | |
56 EXTERN BOOL grlc_check_if_tbf_start_is_elapsed ( ULONG start_fn, ULONG current_fn ); | |
57 EXTERN void grlc_activate_tfi ( ULONG fn_i ); | |
58 EXTERN T_TIME grlc_t_status ( USHORT t_index ); | |
59 EXTERN void grlc_enter_standby_state ( void ); | |
60 EXTERN void grlc_enter_ready_state ( void ); | |
61 | |
62 #endif /* !GRLC_F_H */ | |
63 |