blob: fb3f27d2515b9a9428f4b9de850bead1d6343bb2 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2005
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35
36/*****************************************************************************
37 *
38 * Filename:
39 * ---------
40 * uhlhwsim_struct.h
41 *
42 * Project:
43 * --------
44 * U4G adaptor
45 *
46 * Description:
47 * ------------
48 * File that contains UMTS high-level (VRf) data structure for HWSIM. This file
49 * is used by uhlhwsim.h.
50 *
51 * Author:
52 * -------
53 * -------
54 *
55 *============================================================================
56 * HISTORY
57 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
58 *------------------------------------------------------------------------------
59 *
60 *------------------------------------------------------------------------------
61 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
62 *============================================================================
63 ****************************************************************************/
64/*******************************************************************************
65 * Included header files
66 *******************************************************************************/
67#ifndef _UHLHWSIM_STRUCT_H
68#define _UHLHWSIM_STRUCT_H
69
70#include "kal_public_api.h"
71
72/*****************************************************************************
73* Definitions
74*****************************************************************************/
75//#define TTS_OF_2MS TTS_OF_A_ECHIP*30720/500
76#define TTS_OF_2MS 307200/5
77#define TTS_OF_10MS 307200
78
79/* These are temporary defined as there exist no IRQ codes for C2K */
80#define IRQ_EVENT_TIMER_CODE OSC_ISR_SRC_CUSTOM7
81
82#define U3G_SLOT_MAX_WRAP_VALUE 16
83#define UHLHWSIM_MAX_PCCPCH_DATA_SIZE 39
84#define UHLHWSIM_MAX_FOUND_CELLS 8
85#define UHLHWSIM_MAX_UL_CELLS 2
86#define UHLHWSIM_MAX_TRCH 8
87#define UHLHWSIM_MAX_SCCPCH 5
88#define UHLHWSIM_MAX_DL_UARFCNS 4
89#ifdef __UE_SIMULATOR__
90#define UHLHWSIM_MAX_UL_DATA 829 /* Maximum UL transport block array size. Matches ul1_cnst.h in mcu/interface/ul1_interface */
91#else
92/* Used in UL1B unit test only.*/
93#define UHLHWSIM_MAX_UL_DATA (829/4)
94#endif
95#define UHLHWSIM_MAX_SFN 4096
96#define UHLHWSIM_MAX_SUB_FRAME 5
97#ifdef __UE_SIMULATOR__
98#define UHLHWSIM_MAX_HS_PDU_SIZE_IN_BITS (42192)
99#else
100/* Used in UL1B unit test only.*/
101#define UHLHWSIM_MAX_HS_PDU_SIZE_IN_BITS (42192/16)
102#endif
103#define UHLHWSIM_MAX_HS_PDU_SIZE_IN_BYTES (((UHLHWSIM_MAX_HS_PDU_SIZE_IN_BITS+32+31)/32)*4) /* 42192/8 = 5274 Bytes */
104#define UHLHWSIM_MAX_EDCH_TB_SIZE (23000/8) /* s according to HW spec max tb size is 22996 bits (Rel-8)*/
105#ifdef __UE_SIMULATOR__
106#define UHLHWSIM_MAX_DL_DATA_SIZE 1150
107#else
108/* Used in UL1B unit test only.*/
109/* MSCComposer crashed when uhlhwsim_dl_data_ind_struct size too big.*/
110#define UHLHWSIM_MAX_DL_DATA_SIZE 575/2
111#endif
112
113
114/*******************************************************************************
115 * Global Declarations
116 ******************************************************************************/
117typedef kal_uint16 uhlhwsim_dl_uarfcn_t;
118typedef kal_uint16 uhlhwsim_num_uarfcn_t;
119typedef kal_uint16 uhlhwsim_num_cell_obj_t;
120typedef kal_int32 uhlhwsim_dl_power_t;
121typedef kal_uint16 uhlhwsim_cell_psc_t;
122typedef kal_uint16 uhlhwsim_sfn_t;
123typedef kal_uint8 uhlhwsim_tb_data_t;
124typedef kal_uint8 uhlhwsim_sccpch_num_t;
125
126typedef kal_int32 uhlhwsim_ul_power_t;
127typedef kal_uint16 uhlhwsim_ul_uarfcn_t;
128typedef kal_uint16 uhlhwsim_ul_tfci_t;
129typedef kal_uint16 uhlhwsim_ul_trch_id_t;
130typedef kal_uint32 uhlhwsim_ul_tb_size_t;
131typedef kal_uint32 uhlhwsim_ul_tb_cnt;
132typedef kal_uint16 uhlhwsim_ul_code_type_t;
133typedef kal_uint16 uhlhwsim_ul_tti_t;
134typedef kal_uint16 uhlhwsim_ul_crc_size_t;
135typedef kal_uint16 uhlhwsim_no_frames_t;
136typedef kal_uint16 uhlhwsim_ul_num_trch_t;
137
138typedef kal_uint16 uhlhwsim_dl_tti_t;
139typedef kal_uint16 uhlhwsim_dl_trch_id_t;
140typedef kal_uint32 uhlhwsim_dl_tb_cnt_t;
141typedef kal_uint16 uhlhwsim_dl_tb_size_t;
142typedef kal_uint8 uhlhwsim_dl_tfci_t;
143typedef kal_uint8 uhlhwsim_no_of_trch_t;
144typedef kal_uint8 uhlhwsim_data_t;
145typedef kal_uint16 uhlhwsim_num_data_t;
146typedef kal_uint16 uhlhwsim_cfn_t;
147
148typedef kal_uint8 uhlhwsim_sub_frame_t;
149typedef kal_uint8 uhlhwsim_cqi_t;
150typedef kal_uint16 uhlhwsim_hrnti_t;
151typedef kal_uint32 uhlhwsim_ovsf_t;
152typedef kal_uint8 uhlhwsim_sf_t;
153
154typedef kal_uint8 uhlhwsim_tb_size_index_t; /**< Transport-block size information (6 bits) 25.212 sec 4.6 */
155typedef kal_uint8 uhlhwsim_special_inform_type_t; /**< Special Information type (6 bits) 25.212 sec 4.6A */
156typedef kal_uint8 uhlhwsim_special_inform_t; /**< Special Information (7 bits) 25.212 sec 4.6A */
157
158typedef kal_uint16 uhlhwsim_ul_etfci_t;
159typedef kal_uint8 uhlhwsim_ag_value_t;
160typedef kal_bool uhlhwsim_cqi_valid_t;
161typedef kal_uint8 uhlhwsim_prach_signature_t;
162typedef kal_uint8 uhlhwsim_prach_access_slot_t;
163
164typedef enum
165{
166 UHLHWSIM_NOT_PRESENT = 0,
167 UHLHWSIM_PRESENT = 1
168} uhlhwsim_present_t;
169
170typedef enum
171{
172 UHLHWSIM_FRAME_3G_10MS,
173 UHLHWSIM_FRAME_HSPA_2MS
174} uhlhwsim_frame_duration_t;
175
176typedef enum
177{
178 UHLHWSIM_DISABLED = 0,
179 UHLHWSIM_ENABLED = 1
180} uhlhwsim_trch_enabled_t;
181
182typedef enum
183{
184 UHLHWSIM_DL_CRC_OK = 0,
185 UHLHWSIM_DL_CRC_ERROR = 1
186} uhlhwsim_crc_statuc_t;
187
188
189typedef enum
190{
191 UHLHWSIM_HARQ_NACK = 0,
192 UHLHWSIM_HARQ_ACK = 1
193}uhlhwsim_ack_nack_info_t;
194
195typedef enum
196{
197 UHLHWSIM_HARQ_INVALID = 0,
198 UHLHWSIM_HARQ_VALID = 1
199}uhlhwsim_harq_valid_t;
200
201typedef enum
202{
203 UHLHWSIM_DL_OK_CRC_ERROR = 0,
204 UHLHWSIM_DL_OK_CRC_OK = 1
205} uhlhwsim_crc_ok_statuc_t;
206
207typedef enum
208{
209 UHLHWSIM_HSDPA_SSCH_TYPE1,
210 UHLHWSIM_HSDPA_SSCH_TYPE2,
211 UHLHWSIM_HSDPA_SSCH_TYPE3
212} uhlhwsim_hsdpa_scch_type_t;
213
214typedef enum
215{
216 UHLHWSIM_HSDPA_TYPE_ONE_QPSK,
217 UHLHWSIM_HSDPA_TYPE_ONE_16QAM,
218 UHLHWSIM_HSDPA_TYPE_ONE_64QAM
219} uhlhwsim_hsdpa_mod_schem_type_one_t;
220
221typedef enum
222{
223 UHLHWSIM_HSDPA_TYPE_TWO_QPSK,
224 UHLHWSIM_HSDPA_TYPE_TWO_OTHERWISE
225} uhlhwsim_hsdpa_mod_schem_type_two_t;
226
227
228typedef enum
229{
230 UHLHWSIM_HSDPA_HARQ_PROCESS_ID_0,
231 UHLHWSIM_HSDPA_HARQ_PROCESS_ID_1,
232 UHLHWSIM_HSDPA_HARQ_PROCESS_ID_2,
233 UHLHWSIM_HSDPA_HARQ_PROCESS_ID_3,
234 UHLHWSIM_HSDPA_HARQ_PROCESS_ID_4,
235 UHLHWSIM_HSDPA_HARQ_PROCESS_ID_5,
236 UHLHWSIM_HSDPA_HARQ_PROCESS_ID_6,
237 UHLHWSIM_HSDPA_HARQ_PROCESS_ID_7,
238 UHLHWSIM_HSDPA_HARQ_PROCESS_ID_INVALID
239} uhlhwsim_hsdpa_harq_process_id_t;
240
241
242
243typedef enum
244{
245 UHLHWSIM_HSDPA__REDUNDAN_VER_0,
246 UHLHWSIM_HSDPA_REDUNDAN_VER_1,
247 UHLHWSIM_HSDPA_REDUNDAN_VER_2,
248 UHLHWSIM_HSDPA_REDUNDAN_VER_3,
249 UHLHWSIM_HSDPA_REDUNDAN_VER_4,
250 UHLHWSIM_HSDPA_REDUNDAN_VER_5,
251 UHLHWSIM_HSDPA_REDUNDAN_VER_6,
252 UHLHWSIM_HSDPA_REDUNDAN_VER_7,
253 UHLHWSIM_HSDPA_REDUNDAN_VER_INVALID
254}uhlhwsim_hsdpa_rv_t;
255
256typedef enum
257{
258 UHLHWSIM_HSDPA_NEW_DATA_TOGGLE_0,
259 UHLHWSIM_HSDPA_NEW_DATA_TOGGLE_1,
260 UHLHWSIM_HSDPA_NEW_DATA_INVALID
261}uhlhwsim_hsdpa_new_data_t;
262
263
264typedef enum {
265 UHLHWSIM_EDCH_INITIAL_TRANS,
266 UHLHWSIM_EDCH_FIRST_RETRANS,
267 UHLHWSIM_EDCH_SECOND_RETRANS,
268 UHLHWSIM_EDCH_SUBSEQUENT_RETRANS
269} uhlhwsim_edch_rsn_t;
270
271
272typedef enum
273{
274 UHLHWSIM_EDCH__NOT_HAPPY = 0, /**< NOT OK!!!! */
275 UHLHWSIM_EDCH__HAPPY = 1 /**< OK :-) */
276} uhlhwsim_edch_happy_bit_t;
277
278typedef enum
279{
280 UHLHWSIM__ALL_HARQ_PROCESSES = 0,
281 UHLHWSIM__PER_HARQ_PROCESS = 1
282} uhlhwsim_ag_scope_t;
283
284
285
286typedef enum
287{
288 UHLHWSIM_EHICH_HARQ_NACK_NON_SERVING = 0,
289 UHLHWSIM_EHICH_HARQ_ACK = 1,
290 UHLHWSIM_EHICH_HARQ_NACK_SERVING = 0xffffffff /* -1 to make ATEC decode */
291} uhlhwsim_harq_indcator_type_t;
292
293
294typedef struct uhlhwsim_sibTag_tag
295{
296 kal_uint32 seg_Rep;
297 kal_uint32 seg_Pos;
298} uhlhwsim_sibTag_t;
299
300typedef struct
301{
302 uhlhwsim_ovsf_t ccs; /**< Channelization-code-set information (7 bits) 25.212 sec 4.6 */
303 uhlhwsim_hsdpa_mod_schem_type_one_t modulation_scheme; /**< Modulation scheme information (1 bit) 25.212 sec 4.6 */
304 uhlhwsim_tb_size_index_t tb_size_index; /**< Transport-block size information (6 bits) 25.212 sec 4.6 */
305 uhlhwsim_hsdpa_harq_process_id_t harq_process_id; /**< Hybrid-ARQ process information (3 bits) 25.212 sec 4.6 */
306 uhlhwsim_hsdpa_rv_t redundancy_ver; /**< Redundancy and constellation version (3 bits) 25.212 sec 4.6 */
307 uhlhwsim_hsdpa_new_data_t new_data; /**< New Data indicator (1 bit) 25.212 sec 4.6 */
308} uhlhwsim_hsdpa_scch_data_type1_t;
309
310typedef struct
311{
312 uhlhwsim_ovsf_t ccs; /**< Channelization-code-set information (7 bits) 25.212 sec 4.6A */
313 uhlhwsim_hsdpa_mod_schem_type_two_t modulation_scheme; /**< Modulation scheme information (1 bit) 25.212 sec 4.6A */
314 uhlhwsim_special_inform_type_t special_info_type; /**< Special Information type (6 bits) 25.212 sec 4.6A */
315 uhlhwsim_special_inform_t special_info; /**< Special Information (7 bits) 25.212 sec 4.6A */
316} uhlhwsim_hsdpa_scch_data_type2_t;
317
318typedef union
319{
320 uhlhwsim_hsdpa_scch_data_type1_t data_type1;
321 uhlhwsim_hsdpa_scch_data_type2_t data_type2;
322} uhlhwsim_hsdpa_scch_data_t;
323
324
325typedef struct uhlhwsim_dl_resource_req_tag
326{
327 /*if num_dl_uarfcn is unknown and set to 0, no matching will be done at the NW and all available UARFCN will be returned */
328 uhlhwsim_num_uarfcn_t num_dl_uarfcn;
329 uhlhwsim_dl_uarfcn_t dl_uarfcn[UHLHWSIM_MAX_DL_UARFCNS];
330} uhlhwsim_dl_resource_req_t;
331
332
333typedef struct uhlhwsim_cell_info_tag
334{
335 uhlhwsim_dl_uarfcn_t dl_uarfcn;
336 uhlhwsim_cell_psc_t psc;
337 uhlhwsim_dl_power_t rssi;
338 uhlhwsim_dl_power_t rscp;
339 uhlhwsim_sfn_t sfn;
340
341
342 struct {
343 uhlhwsim_present_t status_pccpch_present;
344 uhlhwsim_sibTag_t sib_tag_info;
345 uhlhwsim_tb_data_t sib_data[UHLHWSIM_MAX_PCCPCH_DATA_SIZE];
346 } pccpchCnf;
347
348 uhlhwsim_sccpch_num_t no_sccpch;
349
350 struct
351 {
352 uhlhwsim_dl_tfci_t tfci;
353 uhlhwsim_sf_t sf;
354 uhlhwsim_ovsf_t ovsf;
355 uhlhwsim_no_of_trch_t no_of_trch;
356 struct
357 {
358 uhlhwsim_trch_enabled_t status_trch_enabled;
359 uhlhwsim_crc_statuc_t crc_status;
360 uhlhwsim_dl_tti_t tti;
361 uhlhwsim_dl_trch_id_t trch_id;
362 uhlhwsim_dl_tb_cnt_t tb_cnt;
363 uhlhwsim_dl_tb_size_t tb_size;
364 } trch[UHLHWSIM_MAX_TRCH];
365 uhlhwsim_num_data_t num_data;
366 uhlhwsim_data_t data[UHLHWSIM_MAX_DL_DATA_SIZE];
367 } sccpch[UHLHWSIM_MAX_SCCPCH];
368
369 struct
370 {
371 uhlhwsim_dl_tfci_t tfci;
372 uhlhwsim_cfn_t cfn;
373 uhlhwsim_no_of_trch_t no_of_trch;
374 struct
375 {
376 uhlhwsim_trch_enabled_t status_trch_enabled;
377 uhlhwsim_crc_statuc_t crc_status;
378 uhlhwsim_dl_tti_t tti;
379 uhlhwsim_dl_trch_id_t trch_id;
380 uhlhwsim_dl_tb_cnt_t tb_cnt;
381 uhlhwsim_dl_tb_size_t tb_size;
382 uhlhwsim_data_t tb_data[UHLHWSIM_MAX_DL_DATA_SIZE];
383 } trch[UHLHWSIM_MAX_TRCH];
384 } dpch;
385
386} uhlhwsim_cell_info_t;
387
388typedef struct uhlhwsim__rxCellObj_tag
389{
390 uhlhwsim_cell_info_t cell_info;
391} uhlhwsim_rx_cell_obj_t;
392
393typedef struct uhlhwsim_hspa_cell_info_tag
394{
395 uhlhwsim_dl_uarfcn_t dl_uarfcn;
396 uhlhwsim_cell_psc_t psc;
397 uhlhwsim_dl_power_t rssi;
398 uhlhwsim_dl_power_t rscp;
399 uhlhwsim_sfn_t sfn;
400
401 struct
402 {
403 uhlhwsim_present_t status_hsdsch_present;
404 uhlhwsim_sfn_t sfn; //Frame Number
405 uhlhwsim_sub_frame_t sub_frame; //Subframe Number
406
407 uhlhwsim_hrnti_t h_rnti;
408
409
410 uhlhwsim_ovsf_t ovsf;
411 uhlhwsim_hsdpa_scch_type_t hsscch_type; /**< Type of HS-SCCH */
412 uhlhwsim_hsdpa_scch_data_t hsscch_data; /**< Data carried on the HS-SCCH */
413
414 uhlhwsim_crc_ok_statuc_t crc_ok; // True=correct. False=wrong.
415 uhlhwsim_dl_tb_size_t tb_size;
416 uhlhwsim_data_t data[UHLHWSIM_MAX_HS_PDU_SIZE_IN_BYTES];
417 } hsdsch;
418
419 struct
420 {
421 uhlhwsim_present_t status_eagch_present;
422 uhlhwsim_sfn_t sfn; //Frame Number
423 uhlhwsim_sub_frame_t sub_frame; //Subframe Number
424 uhlhwsim_ag_value_t ag_value;
425 uhlhwsim_ag_scope_t ag_scope;
426 uhlhwsim_hsdpa_harq_process_id_t harq_process_id;
427 } eagch;
428
429 struct
430 {
431 uhlhwsim_present_t status_ehich_present;
432 uhlhwsim_harq_indcator_type_t harq_indcator;
433 uhlhwsim_hsdpa_harq_process_id_t harq_process_id;
434 } ehich;
435
436 struct
437 {
438 uhlhwsim_present_t status_fdpch_present;
439 } fdpch;
440
441
442} uhlhwsim_hspa_cell_info_t;
443
444typedef struct uhlhwsim__rxHspaCellObj_tag
445{
446 uhlhwsim_hspa_cell_info_t hspa_cell_info;
447} uhlhwsim_rx_hspa_cell_obj_t;
448
449
450
451typedef struct uhlhwsim_dl_data_tag
452{
453 uhlhwsim_num_cell_obj_t num_cell_obj;
454 uhlhwsim_rx_cell_obj_t cell_obj[UHLHWSIM_MAX_FOUND_CELLS];
455 uhlhwsim_rx_hspa_cell_obj_t hspa_cell_obj[UHLHWSIM_MAX_FOUND_CELLS];
456} uhlhwsim_dl_data_t;
457
458
459typedef struct _uhlhwsim_dl_data_ind_struct
460{
461 uhlhwsim_dl_data_t dl_data;
462} uhlhwsim_dl_data_ind_struct;
463
464
465typedef struct
466{
467 uhlhwsim_ul_uarfcn_t ul_arfcn;
468 uhlhwsim_ul_power_t ul_power;
469 uhlhwsim_cell_psc_t psc;
470 uhlhwsim_ul_tfci_t tfci;
471 uhlhwsim_sfn_t sfn;
472 //uhlhwsim_frame_duration_t frame_duration;
473 uhlhwsim_no_frames_t no_frames;
474 struct
475 {
476 uhlhwsim_ul_trch_id_t trch_id;
477 uhlhwsim_ul_tb_size_t tb_size;
478 uhlhwsim_ul_tb_cnt tb_cnt;
479 uhlhwsim_ul_code_type_t code_type;
480 uhlhwsim_ul_tti_t tti;
481 uhlhwsim_ul_crc_size_t crc_size;
482 uhlhwsim_tb_data_t tb_data[UHLHWSIM_MAX_UL_DATA];
483 } tbs;
484} uhlhwsim_prach_t;
485
486typedef struct
487{
488 uhlhwsim_ul_uarfcn_t ul_arfcn;
489 uhlhwsim_ul_power_t ul_power;
490 uhlhwsim_cell_psc_t psc;
491 uhlhwsim_ul_tfci_t tfci;
492 uhlhwsim_cfn_t cfn;
493 uhlhwsim_cfn_t sfn;
494 //uhlhwsim_frame_duration_t frame_duration;
495 uhlhwsim_ul_num_trch_t num_trch;
496 struct
497 {
498 uhlhwsim_ul_trch_id_t trch_id;
499 uhlhwsim_ul_tb_size_t tb_size;
500 uhlhwsim_ul_tb_cnt tb_cnt;
501 uhlhwsim_ul_tti_t tti;
502 uhlhwsim_tb_data_t tb_data[UHLHWSIM_MAX_UL_DATA];
503 } trch[UHLHWSIM_MAX_TRCH];
504} uhlhwsim_pdpch_t;
505
506typedef struct
507{
508 uhlhwsim_ul_uarfcn_t ul_arfcn;
509 uhlhwsim_cfn_t cfn;
510 uhlhwsim_sub_frame_t sub_frame;
511 uhlhwsim_cqi_valid_t cqi_valid;
512 uhlhwsim_cqi_t primary_cqi_value;
513 uhlhwsim_cqi_t secondary_cqi_value;
514 uhlhwsim_harq_valid_t primary_harq_info_valid;
515 uhlhwsim_ack_nack_info_t primary_harq_info_ind;
516 uhlhwsim_harq_valid_t secondary_harq_info_valid;
517 uhlhwsim_ack_nack_info_t secondary_harq_info_ind;
518}uhlhwsim_hs_dpcch_t;
519
520
521typedef struct
522{
523 uhlhwsim_ul_uarfcn_t prach_ul_arfcn;
524 uhlhwsim_prach_signature_t prach_signature;
525 uhlhwsim_prach_access_slot_t prach_access_slot;
526} uhlhwsim_prach_preamble_t;
527typedef struct
528{
529 uhlhwsim_ul_uarfcn_t ul_arfcn;
530 uhlhwsim_ul_power_t ul_power;
531 uhlhwsim_cfn_t cfn;
532 uhlhwsim_sub_frame_t sub_frame;
533
534 uhlhwsim_edch_happy_bit_t happy_bit;
535 uhlhwsim_edch_rsn_t rsn;
536 uhlhwsim_ul_tti_t tti;
537 uhlhwsim_ul_etfci_t e_tfci;
538 uhlhwsim_ul_tb_size_t tb_size;
539 uhlhwsim_tb_data_t tb_data[UHLHWSIM_MAX_EDCH_TB_SIZE];
540} uhlhwsim_edch_t;
541
542typedef struct
543{
544 uhlhwsim_present_t prach_present;
545 uhlhwsim_prach_t prach_data;
546 uhlhwsim_present_t pdpch_present;
547 uhlhwsim_pdpch_t pdpch_data;
548 uhlhwsim_present_t hs_dpcch_present;
549 uhlhwsim_hs_dpcch_t hs_dpcch_data;
550 uhlhwsim_present_t prach_preamble_present;
551 uhlhwsim_prach_preamble_t prach_preamble;
552
553 uhlhwsim_present_t edch_present;
554 uhlhwsim_edch_t edch_data;
555} uhlhwsim_tx_cell_obj_t;
556
557
558typedef struct uhlhwsim_ul_data_tag
559{
560 uhlhwsim_num_cell_obj_t num_cell_obj;
561 uhlhwsim_tx_cell_obj_t cell_obj[UHLHWSIM_MAX_UL_CELLS];
562} uhlhwsim_ul_data_t;
563
564
565typedef struct _uhlhwsim_ul_data_req_struct
566{
567 uhlhwsim_ul_data_t ul_data;
568} uhlhwsim_ul_data_req_struct;
569
570#endif /* _UHLHWSIM_STRUCT_H */