X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=mc-core%2Fmc%2Flocal%2FSgNB_ack_for_ue_beam_ssb.h;fp=mc-core%2Fmc%2Flocal%2FSgNB_ack_for_ue_beam_ssb.h;h=2b856f2b4c3095cc046153ac2963f9e8dcb13727;hb=31d238a2cba18b87e05a7d9b4820db2c5186c658;hp=0000000000000000000000000000000000000000;hpb=fe2bd3618e4748333078f91c26a8a3f5dcf184c4;p=ric-app%2Fmc.git diff --git a/mc-core/mc/local/SgNB_ack_for_ue_beam_ssb.h b/mc-core/mc/local/SgNB_ack_for_ue_beam_ssb.h new file mode 100644 index 0000000..2b856f2 --- /dev/null +++ b/mc-core/mc/local/SgNB_ack_for_ue_beam_ssb.h @@ -0,0 +1,118 @@ +#ifndef _SGNB_ACK_FOR_UE_BEAM_SSB_H__INCLUDED_ +#define _SGNB_ACK_FOR_UE_BEAM_SSB_H__INCLUDED_ + +/* +============================================================================== + + Copyright (c) 2018-2019 AT&T Intellectual Property. + + Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 + + 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. +============================================================================= +*/ + + +#include "packet.h" + +struct _SgNB_ack_for_ue_beam_ssb { + gs_uint64_t timestamp_ms; + gs_sp_t gnb_id; + gs_int64_t id_MeNB_UE_X2AP_ID; + gs_int64_t id_SgNB_UE_X2AP_ID; + gs_uint32_t id_MeNB_UE_X2AP_ID_Extension; + gs_uint32_t ssbFrequency; + gs_int8_t ssbFrequency_exists; + gs_uint32_t refFreqCSI_RS; + gs_int8_t refFreqCSI_RS_exists; + gs_uint32_t physCellId; + gs_int8_t physCellId_exists; + gs_int64_t ssb_Index; + gs_uint32_t rsrq; + gs_int8_t rsrq_exists; + gs_uint32_t rsrp; + gs_int8_t rsrp_exists; + gs_uint32_t sinr; + gs_int8_t sinr_exists; +}; + +static inline void init__SgNB_ack_for_ue_beam_ssb(struct _SgNB_ack_for_ue_beam_ssb *m){ + m->ssbFrequency_exists=0; + m->refFreqCSI_RS_exists=0; + m->physCellId_exists=0; + m->rsrq_exists=0; + m->rsrp_exists=0; + m->sinr_exists=0; +} + +static inline gs_retval_t get_SgNB_ack_for_ue_beam_ssb__timestamp_ms(struct packet *p, gs_uint64_t *t){ + *t = ((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->timestamp_ms; + return 0; +} + +static inline gs_retval_t get_SgNB_ack_for_ue_beam_ssb__gnb_id(struct packet *p, struct gs_string *t){ +t->data = ((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->gnb_id; + t->length = strlen(t->data); + t->owner=0; + return 0; +} + +static inline gs_retval_t get_SgNB_ack_for_ue_beam_ssb__id_MeNB_UE_X2AP_ID(struct packet *p, gs_int64_t *t){ + *t = ((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->id_MeNB_UE_X2AP_ID; + return 0; +} + +static inline gs_retval_t get_SgNB_ack_for_ue_beam_ssb__id_SgNB_UE_X2AP_ID(struct packet *p, gs_int64_t *t){ + *t = ((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->id_SgNB_UE_X2AP_ID; + return 0; +} + +static inline gs_retval_t get_SgNB_ack_for_ue_beam_ssb__id_MeNB_UE_X2AP_ID_Extension(struct packet *p, gs_uint32_t *t){ + *t = ((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->id_MeNB_UE_X2AP_ID_Extension; + return 0; +} + +static inline gs_retval_t get_SgNB_ack_for_ue_beam_ssb__ssbFrequency(struct packet *p, gs_uint32_t *t){ + *t = ((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->ssbFrequency; + return (((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->ssbFrequency==0); +} + +static inline gs_retval_t get_SgNB_ack_for_ue_beam_ssb__refFreqCSI_RS(struct packet *p, gs_uint32_t *t){ + *t = ((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->refFreqCSI_RS; + return (((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->refFreqCSI_RS==0); +} + +static inline gs_retval_t get_SgNB_ack_for_ue_beam_ssb__physCellId(struct packet *p, gs_uint32_t *t){ + *t = ((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->physCellId; + return (((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->physCellId==0); +} + +static inline gs_retval_t get_SgNB_ack_for_ue_beam_ssb__ssb_Index(struct packet *p, gs_int64_t *t){ + *t = ((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->ssb_Index; + return 0; +} + +static inline gs_retval_t get_SgNB_ack_for_ue_beam_ssb__rsrq(struct packet *p, gs_uint32_t *t){ + *t = ((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->rsrq; + return (((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->rsrq==0); +} + +static inline gs_retval_t get_SgNB_ack_for_ue_beam_ssb__rsrp(struct packet *p, gs_uint32_t *t){ + *t = ((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->rsrp; + return (((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->rsrp==0); +} + +static inline gs_retval_t get_SgNB_ack_for_ue_beam_ssb__sinr(struct packet *p, gs_uint32_t *t){ + *t = ((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->sinr; + return (((struct _SgNB_ack_for_ue_beam_ssb *)(p->record.packed.values))->sinr==0); +} + +#endif