Commit 9e5d79a3 authored by Daniel0326's avatar Daniel0326

Add structure and fix error in lte-enb-nbiot.c

parent 72742005
......@@ -36,6 +36,9 @@
#include "nfapi_interface.h"
#include "transport_common_proto.h"
#include "PHY/defs_L1_NB_IoT.h"
// Functions below implement 36-211 and 36-212
/** @addtogroup _PHY_TRANSPORT_
......@@ -122,8 +125,6 @@ int32_t dlsch_encoding(PHY_VARS_eNB *eNB,
time_stats_t *i_stats);
/** \fn dlsch_encoding_2threads(PHY_VARS_eNB *eNB,
uint8_t *input_buffer,
uint8_t num_pdcch_symbols,
......@@ -514,6 +515,13 @@ int ulsch_decoding_data(PHY_VARS_eNB *eNB,
int UE_id,
int harq_pid,
int llr8_flag);
/*
int ulsch_decoding_data_NB_IoT(PHY_VARS_eNB_NB_IoT *eNB,
int UE_id,
int harq_pid,
int llr8_flag);
*/
void generate_phich_top(PHY_VARS_eNB *phy_vars_eNB,
L1_rxtx_proc_t *proc,
......
......@@ -283,6 +283,13 @@ uint8_t generate_dci_top_NB_IoT(NB_IoT_eNB_NPDCCH_t *npdcch,
// NB_IoT_eNB_NULSCH_t *new_eNB_ulsch_NB_IoT(uint8_t abstraction_flag);
int ulsch_decoding_data_NB_IoT(PHY_VARS_eNB_NB_IoT *eNB,
int UE_id,
int harq_pid,
int llr8_flag);
uint8_t subframe2harq_pid_NB_IoT(LTE_DL_FRAME_PARMS *frame_parms,uint32_t frame,uint8_t subframe);
......
......@@ -364,6 +364,10 @@ typedef struct eNB_proc_NB_IoT_t_s {
int instance_cnt_asynch_rxtx;
/// pthread structure for FH processing thread
pthread_t pthread_FH;
/// pthread structure for eNB single processing thread
pthread_t pthread_single; //NB-IoT
/// pthread structure for asychronous RX/TX processing thread
pthread_t pthread_asynch_rxtx;
/// flag to indicate first RX acquisition
......
......@@ -762,6 +762,12 @@ typedef struct {
uint16_t HFN; //NB-IoT
/// mutex for RXn-TXnp4 processing thread
pthread_mutex_t mutex_rxtx; //NB-IoT
/// pthread structure for RXn-TXnp4 processing thread
pthread_t pthread_rxtx; //NB-IoT
/// pthread attributes for RXn-TXnp4 processing thread
pthread_attr_t attr_rxtx; //NB-IoT
/// condition variable for tx processing thread
pthread_cond_t cond_rxtx; //NB-IoT
int instance_cnt_rxtx;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment