nr_phy_scope.h 2.79 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/*
 * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The OpenAirInterface Software Alliance licenses this file to You under
 * the OAI Public License, Version 1.1  (the "License"); you may not use this file
 * except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.openairinterface.org/?page_id=698
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *-------------------------------------------------------------------------------
 * For more information about the OpenAirInterface (OAI) Software Alliance:
 *      contact@openairinterface.org
 */

/* Header file generated by fdesign on Tue Nov 13 09:42:50 2012 */

24 25 26 27 28 29 30 31
#ifndef FD_nr_scope_h_
#define FD_nr_scope_h_
#include <simple_executable.h>
#include <common/utils/system.h>
#include <openairinterface5g_limits.h>
#include <openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h>
#include "common/ran_context.h"
#include <openair1/PHY/defs_gNB.h>
32
#include <forms.h>
33 34
#include "PHY/defs_gNB.h"
//#include "PHY/defs_nrUE.h"
35 36 37 38 39
//#include "PHY/impl_defs_top.h"
#include "PHY/defs_nr_UE.h"

/* Forms and Objects */
typedef struct {
40
  FL_FORM   * phy_scope_gnb;
41 42 43 44 45 46 47 48 49
  FL_OBJECT * rxsig_t;
  FL_OBJECT * chest_f;
  FL_OBJECT * chest_t;
  FL_OBJECT * pusch_comp;
  FL_OBJECT * pucch_comp;
  FL_OBJECT * pucch_comp1;
  FL_OBJECT * pusch_llr;
  FL_OBJECT * pusch_tput;
  FL_OBJECT * button_0;
50
} FD_phy_scope_gnb;
51 52

typedef struct {
53
    FL_FORM   * phy_scope_nrue;
54 55 56 57 58 59 60 61 62 63 64 65 66
    FL_OBJECT * rxsig_t;
    FL_OBJECT * chest_f;
    FL_OBJECT * chest_t;
    FL_OBJECT * pbch_comp;
    FL_OBJECT * pbch_llr;
    FL_OBJECT * pdcch_comp;
    FL_OBJECT * pdcch_llr;
    FL_OBJECT * pdsch_comp;
    FL_OBJECT * pdsch_llr;
    FL_OBJECT * pdsch_comp1;
    FL_OBJECT * pdsch_llr1;
    FL_OBJECT * pdsch_tput;
    FL_OBJECT * button_0;
67
} FD_phy_scope_nrue;
68

69 70 71 72 73
typedef struct {
  int *argc;
  char **argv;
} scopeParms_t;

74 75 76
extern unsigned char scope_enb_num_ue;
FD_phy_scope_gnb * create_phy_scope_gnb( void );
FD_phy_scope_nrue * create_phy_scope_nrue( void );
77

78 79 80

void phy_scope_gNB(FD_phy_scope_gnb *form,
                   PHY_VARS_gNB *phy_vars_gnb,
81
		   RU_t *phy_vars_ru,
82 83
                   int UE_id);

84 85

void phy_scope_nrUE(FD_phy_scope_nrue *form,
86 87 88 89
                  PHY_VARS_NR_UE *phy_vars_ue,
                  int eNB_id,
                  int UE_id,
                  uint8_t subframe);
90 91 92 93 94


void startScope(scopeParms_t * p);


95 96
extern RAN_CONTEXT_t RC;
#endif