Conflicts: openair1/PHY/INIT/lte_init.c openair1/PHY/LTE_ESTIMATION/lte_ul_channel_estimation.c openair1/PHY/LTE_TRANSPORT/dci.c openair1/PHY/LTE_TRANSPORT/dci_tools.c openair1/PHY/LTE_TRANSPORT/dlsch_coding.c openair1/PHY/LTE_TRANSPORT/edci.c openair1/PHY/LTE_TRANSPORT/if4_tools.c openair1/PHY/LTE_TRANSPORT/prach.c openair1/PHY/LTE_TRANSPORT/print_stats.c openair1/PHY/LTE_TRANSPORT/pucch.c openair1/PHY/LTE_TRANSPORT/transport_eNB.h openair1/PHY/LTE_TRANSPORT/ulsch_decoding.c openair1/PHY/LTE_UE_TRANSPORT/transport_proto_ue.h openair1/PHY/impl_defs_lte.h openair1/SCHED/fapi_l1.c openair1/SCHED/phy_procedures_lte_eNb.c openair2/COMMON/rrc_messages_types.h openair2/ENB_APP/enb_config.c openair2/ENB_APP/enb_paramdef.h openair2/LAYER2/MAC/config.c openair2/LAYER2/MAC/defs.h openair2/LAYER2/MAC/eNB_scheduler.c openair2/LAYER2/MAC/eNB_scheduler_RA.c openair2/LAYER2/MAC/eNB_scheduler_bch.c openair2/LAYER2/MAC/eNB_scheduler_dlsch.c openair2/LAYER2/MAC/eNB_scheduler_primitives.c openair2/LAYER2/MAC/eNB_scheduler_ulsch.c openair2/LAYER2/MAC/pre_processor.c openair2/LAYER2/MAC/rar_tools.c openair2/LAYER2/MAC/ue_procedures.c openair2/PHY_INTERFACE/IF_Module.c openair2/RRC/LITE/rrc_common.c openair2/RRC/LTE/L2_interface_ue.c openair2/RRC/LTE/MESSAGES/asn1_msg.c openair2/RRC/LTE/rrc_eNB.c targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp targets/RT/USER/lte-enb.c targets/RT/USER/lte-ru.c
132 lines
4.0 KiB
C
Executable File
132 lines
4.0 KiB
C
Executable File
/*
|
|
* 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
|
|
*/
|
|
|
|
/*!
|
|
*******************************************************************************
|
|
|
|
\file rrm_sock.h
|
|
|
|
\brief common header for the communication between RRM and RRC/CMM/PUSU.
|
|
|
|
\author BURLOT Pascal
|
|
|
|
\date 15/07/08
|
|
|
|
|
|
\par History:
|
|
$Author$ $Date$ $Revision$
|
|
$Id$
|
|
$Log$
|
|
|
|
*******************************************************************************
|
|
*/
|
|
|
|
#ifndef __RRC_RRM_INTERFACE_H__
|
|
#define __RRC_RRM_INTERFACE_H__
|
|
|
|
|
|
//#ifdef RRC_RRM_XFACE
|
|
|
|
/*!
|
|
*******************************************************************************
|
|
\brief Entete des messages de RRM/CMM/RRC
|
|
*/
|
|
typedef struct {
|
|
unsigned short start ; ///< Identification du debut de message
|
|
unsigned char inst ; ///< Identification de l'instance RRM
|
|
unsigned char msg_type ; ///< Identification du type message
|
|
unsigned int size ; ///< taille du message
|
|
unsigned int Trans_id ; ///< Identification de la transaction
|
|
} msg_head_t ;
|
|
|
|
/*!
|
|
*******************************************************************************
|
|
\brief Definition de la structure d'un message a envoyer sur un socket:
|
|
- RRM->RRC
|
|
- RRC->RRM
|
|
- RRCI->RRC
|
|
- RRC->RRCI
|
|
- CMM->RRM
|
|
- RRM->CMM
|
|
*/
|
|
typedef struct {
|
|
msg_head_t head ; ///< entete du message
|
|
char *data ; ///< message
|
|
} msg_t ;
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
//! \brief Socket path associated to RRM-CMM interface
|
|
#define RRM_CMM_SOCK_PATH "/tmp/rrm_cmm_socket"
|
|
//! \brief Socket path associated to CMM-RRM interface
|
|
#define CMM_RRM_SOCK_PATH "/tmp/cmm_rrm_socket"
|
|
|
|
//! \brief Socket path associated to RRM-RRC interface
|
|
#define RRM_RRC_SOCK_PATH "/tmp/rrm_rrc_socket"
|
|
//! \brief Socket path associated to RRC-RRM interface
|
|
#define RRC_RRM_SOCK_PATH "/tmp/rrc_rrm_socket"
|
|
|
|
//! \brief Socket path associated to RRM-PUSU interface
|
|
#define RRM_PUSU_SOCK_PATH "/tmp/rrm_pusu_socket"
|
|
//! \brief Socket path associated to PUSU-RRM interface
|
|
#define PUSU_RRM_SOCK_PATH "/tmp/pusu_rrm_socket"
|
|
|
|
|
|
//! \brief Identification of the RRM/CMM/RRC message begin
|
|
#define START_MSG 0xA533
|
|
//! \brief Identification of the PUSU message begin
|
|
#define START_MSG_PUSU 0xCC
|
|
|
|
|
|
#include <sys/socket.h>
|
|
#include <sys/un.h>
|
|
|
|
|
|
/*!
|
|
*******************************************************************************
|
|
\brief Definition de la structure definissant le socket pour envoyer les messages
|
|
*/
|
|
typedef struct {
|
|
int s ; ///< identification du socket
|
|
struct sockaddr_un un_local_addr ; ///< Adresse local si unix socket
|
|
struct sockaddr_un un_dest_addr ; ///< Adresse destinataire si unix socket
|
|
} sock_rrm_t ;
|
|
|
|
|
|
/* *** Fonctions relatives aux interfaces CMM ou RRC *** */
|
|
|
|
int open_socket( sock_rrm_t *s ,char *path_local, char *path_dest , int rrm_inst ) ;
|
|
void close_socket(sock_rrm_t *sock ) ;
|
|
int send_msg_sock(sock_rrm_t *s ,msg_t *msg ) ;
|
|
char *recv_msg( sock_rrm_t *s ) ;
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
int send_msg(void *, msg_t *);
|
|
|
|
#endif
|