X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fcommon_def.h;h=f5591a482368cf690359b4a8e4fa10cf3eff8865;hb=6b44407d464a5a4e060999255233a7cfe78bb0fa;hp=d09a28580565ec81c32956ac82d4f538c181920f;hpb=5831bf6b3454aa200a92cd3e84209650734e4863;p=o-du%2Fl2.git diff --git a/src/cm/common_def.h b/src/cm/common_def.h index d09a28580..f5591a482 100644 --- a/src/cm/common_def.h +++ b/src/cm/common_def.h @@ -15,6 +15,9 @@ # limitations under the License. # ################################################################################ *******************************************************************************/ +#ifndef __COMMON_DEF_H__ +#define __COMMON_DEF_H__ + #include #include #include @@ -82,6 +85,19 @@ _cellIdx = _cellId - 1; \ } +#define SET_BITS_MSB(_startBit, _numBits, _byte) \ +{ \ + _byte = (~((0xFF) >> _numBits)); \ + _byte >>= _startBit; \ +} + +#define SET_BITS_LSB(_startBit, _numBits, _byte) \ +{ \ + _byte = (~((0xFF) << _numBits)); \ + _byte <<= _startBit; \ +} + + typedef struct slotIndInfo { uint16_t cellId; @@ -95,6 +111,9 @@ typedef struct PlmnIdentity uint8_t mnc[3]; }Plmn; +void schAllocFreqDomRscType0(uint16_t startPrb, uint16_t prbSize, uint8_t *freqDomain); + +#endif /********************************************************************** End of file ***********************************************************************/