X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrmac%2Flwr_mac_fsm.h;h=606e65d110cc8db540741552ac19af689c2e05ce;hb=ba78fa13b01e0729fe0a6a7a18cbf1d52cdcda1c;hp=77685d867a00b4cde8169fe5b9a53fa3858fbda2;hpb=d18338bde70b043c3dde28b7d88d128c0b138380;p=o-du%2Fl2.git diff --git a/src/5gnrmac/lwr_mac_fsm.h b/src/5gnrmac/lwr_mac_fsm.h index 77685d867..606e65d11 100644 --- a/src/5gnrmac/lwr_mac_fsm.h +++ b/src/5gnrmac/lwr_mac_fsm.h @@ -29,6 +29,17 @@ #define CORESET_TYPE2 2 #define CORESET_TYPE3 3 +#define FILL_FAPI_LIST_ELEM(_currElem, _nextElem, _msgType, _numMsgInBlock, _alignOffset)\ +{\ + _currElem->msg_type = (uint8_t) _msgType;\ + _currElem->num_message_in_block = _numMsgInBlock;\ + _currElem->align_offset = (uint16_t) _alignOffset;\ + _currElem->msg_len = _numMsgInBlock * _alignOffset;\ + _currElem->p_next = _nextElem;\ + _currElem->p_tx_data_elm_list = NULL;\ + _currElem->time_stamp = 0;\ +} + typedef enum{ SI_RNTI_TYPE, RA_RNTI_TYPE,