X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch_utils.c;h=0a79d678b9cd5c710b9ebfc170f417331b53a8db;hb=c4b8f7a0c5c6491323c6a87b2d1031d61ee0188e;hp=bd2a32e60096096b13fb185a8df61c98b1d741ce;hpb=8fb71c0f3edcf97717a64bc7629cf93da00e18e5;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch_utils.c b/src/5gnrsch/sch_utils.c index bd2a32e60..0a79d678b 100644 --- a/src/5gnrsch/sch_utils.c +++ b/src/5gnrsch/sch_utils.c @@ -379,13 +379,15 @@ uint16_t prachCfgIdxTable[MAX_PRACH_CONFIG_IDX][8] = { {10, 1, 0, 682, 0, 2, 2, 6 } /* index 255 */ }; +/* Defintion of delta value Table 6.1.2.1.1-5 spec 38.214 */ +uint8_t puschDeltaTable[MAX_MU_PUSCH] = { 2, 3, 4, 6 }; /** * @brief frequency domain allocation function. * * @details * - * Function : freqDomResourceAlloc + * Function: canclulatePRB * * This function does allocation in frequency domain resource. using * bitwise operator, the bits are set for the PRBs. @@ -395,7 +397,7 @@ uint16_t prachCfgIdxTable[MAX_PRACH_CONFIG_IDX][8] = { * @param[in] freqDomain - 6 bytes of info, each bit represents a group of 6 PRB. * @return void **/ -void freqDomResourceAlloc(uint16_t startPrb, uint16_t prbSize, uint8_t *freqDomain) +void calculatePRB(uint16_t startPrb, uint16_t prbSize, uint8_t *freqDomain) { uint8_t remBits = prbSize; /* each bit represents 6 PRBs */ uint8_t firstByte = 1;