extern.h 1.3 KB
Newer Older
1
/*! \file extern.h
Cedric Roux's avatar
Cedric Roux committed
2 3 4 5 6 7 8
 *  \brief specifies the extern variables for phy emulation
 *  \author Navid Nikaein and Raymomd Knopp and Hicham Anouar
 *  \date 2011
 *  \version 1.1
 *  \company Eurecom
 *  \email: navid.nikaein@eurecom.fr
 */
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

#ifndef __BYPASS_SESSION_LAYER_EXTERN_H__
#    define __BYPASS_SESSION_LAYER_EXTERN_H__

#ifndef USER_MODE
#include <rtai_posix.h>
#else
#include <pthread.h>
#endif //RTAI_ENABLED

extern unsigned char Emulation_status;
extern unsigned char emu_tx_status;
extern unsigned char emu_rx_status;
//extern unsigned int Master_list;
//extern unsigned short Master_id;
//extern unsigned int Is_primary_master;

Cedric Roux's avatar
Cedric Roux committed
26
#if !defined(ENABLE_NEW_MULTICAST)
27 28 29 30 31 32
extern pthread_mutex_t emul_low_mutex;
extern pthread_cond_t emul_low_cond;
extern char emul_low_mutex_var;
extern pthread_mutex_t Tx_mutex;
extern pthread_cond_t Tx_cond;
extern char Tx_mutex_var;
Cedric Roux's avatar
Cedric Roux committed
33
#endif
34

Cedric Roux's avatar
Cedric Roux committed
35 36
extern rx_handler_t rx_handler;
extern tx_handler_t tx_handler;
37

Raymond Knopp's avatar
 
Raymond Knopp committed
38 39
extern eNB_transport_info_t eNB_transport_info[NUMBER_OF_eNB_MAX][MAX_NUM_CCs];
extern uint16_t eNB_transport_info_TB_index[NUMBER_OF_eNB_MAX][MAX_NUM_CCs];
40

Raymond Knopp's avatar
 
Raymond Knopp committed
41 42
extern UE_transport_info_t UE_transport_info[NUMBER_OF_UE_MAX][MAX_NUM_CCs];
extern uint16_t UE_transport_info_TB_index[NUMBER_OF_UE_MAX][MAX_NUM_CCs];
43

Raymond Knopp's avatar
 
Raymond Knopp committed
44
extern UE_cntl ue_cntl_delay[NUMBER_OF_UE_MAX][MAX_NUM_CCs][2];
45 46

#endif