nrMACPDUDecode
Syntax
Description
[
decodes the medium access control (MAC) protocol data unit (PDU) msgIndexList,payloadList] = nrMACPDUDecode(macPDU,linkDir)macPDU
as defined in 3GPP TS 38.321 section 6.1.2 release 16 [1]. linkDir specifies
the transmission direction of the MAC PDU. The function returns the message indices
msgIndexList, where each message index represents either the logical
channel ID (LCID) or extended logical channel ID (eLCID) field of a MAC subPDU. The function
also returns the payloads of the corresponding MAC subPDUs
payloadList.
[
also returns the header lengths of the MAC subPDUs.msgIndexList,payloadList,headerLengthList] = nrMACPDUDecode(macPDU,linkDir)
[
additionally specifies how to handle errors in decoding. msgIndexList,payloadList] = nrMACPDUDecode(msgIndexList,payloadList,softErrorFlag)
[
also returns the header lengths of the MAC subPDUs and specifies how to handle errors in
decoding.msgIndexList,payloadList,headerLengthList] = nrMACPDUDecode(msgIndexList,payloadList,softErrorFlag)
Examples
Input Arguments
Output Arguments
References
[1] 3GPP TS 38.321. “NR; Medium Access Control (MAC) protocol specification.” 3rd Generation Partnership Project; Technical Specification Group Radio Access Network.