/*************************************************************************** * $ pdus * ***************************************************************************/ #define Rrp_L3_Message 0 #define Rrp_Assignment_Command 1 #define Rrp_Assignment_Complete 2 #define Rrp_Channel_Release 3 #define Rrp_Channel_Request 4 #define Rrp_Handover_Access 5 #define Rrp_Handover_Command 6 #define Rrp_Handover_Complete 7 #define Rrp_Immed_Assignment 8 #define Rrp_Paging_Request 9 #define Rrp_Physical_Information 10 #define Rrp_System_Information_Type_1 11 #define Rrp_System_Information_Type_2 12 #define Rrp_System_Information_Type_3 13 #define Rrp_System_Information_Type_4 14 #define Rrp_System_Information_Type_5 15 #define Rrp_System_Information_Type_6 16 #define Rrp_PDU_NOK 17 /*************************************************************************** * $ states * ***************************************************************************/ #define idle 0 #define ms_ass_pending 1 #define ms_link_pending 2 #define active 3 /**** local types ****/ typedef struct { int channel_type; union { BOOLE tch_allocated; BOOLE sdcch_allocated[8]; } i; } TIMESLOT; typedef struct { TIMESLOT timeslots[8]; int cell_id; int arfcn; } BTS_DATA; /*************************************************************************** * $ variable structure * *************************************************************************** */ typedef struct { sint32 some_variable, bts_index, btsa_CEPid; FRAME_PTR rec_frame, snd_frame; VTASK *self; /* RR_Channel_number ch_number; RR_Channel_number old_ch_number; */ BTS_DATA *bts_data; } VARIABLE_STR; /*************************************************************************** * $ timers * ***************************************************************************/ #define DIALOGUE_ID_TIMER 0 /*************************************************************************** * $ timer tick counts in seconds * *************************************************************************** DIALOGUE_ID_TIMER 60 $ end */ /* $ asn */ #define asn_cell_id 0 #define asn_l3_info 1 #define asn_rr_channel_mode 2 #define asn_rr_cause 3 #define asn_channel_type 4 #define asn_timeslot 5 #define asn_establishment_cause 6 #define asn_random_reference 7 #define asn_handover_reference 8 #define asn_channel_description 9 #define asn_request_reference 10 #define asn_mobile_1 11 #define asn_mobile_2 12 #define asn_timing_advance 13 #define asn_rrs_Sys_Info_Req_prim 14 #define asn_protocol_discriminator 15 #define asn_transaction_identifier 16 #define asn_l3_message 17 #define asn_rach_control_parameters 18 #define asn_cell_identity 19 #define asn_location_area_identity 20 #define asn_rrp_System_Information_Type_5_pd 21 #define asn_ch 22 #define asn_userData 23 #define ASN_VAR_COUNT 24 /* $ end asn */