-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhNRRLCBufferStatus.m
57 lines (52 loc) · 2.58 KB
/
hNRRLCBufferStatus.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
classdef hNRRLCBufferStatus < handle
%hNRRLCBufferStatus Create a logical channel buffer status report object
% BUFFERSTATUS = hNRRLCBufferStatus(RNTI, LCID, BUFFERSIZE) creates a
% logical channel buffer status report object. RLC sends this to MAC for
% informing the logical channel buffer status.
%
% hNRRLCBufferStatus properties:
% RNTI - UE's radio network temporary identifier
% LogicalChannelID - Logical channel identifier
% BufferStatus - Number of bytes required to send the service
% data units (SDUs) in the logical channel's Tx
% buffer
% Copyright 2019 The MathWorks, Inc.
%#codegen
properties
% RNTI Radio network temporary identifier of a UE
% Specify the RNTI as an integer scalar within [1 65519]. Refer
% table 7.1-1 in 3GPP TS 38.321. The default value is 1.
RNTI (1, 1) {mustBeInteger, mustBeGreaterThanOrEqual(RNTI, 1), mustBeLessThanOrEqual(RNTI, 65519)} = 1;
% LogicalChannelID Logical channel identifier
% Specify the logical channel identifier as an integer scalar
% between 1 and 32, inclusive. Refer table 6.2.1-1 in 3GPP TS
% 38.321. The default value is 1.
LogicalChannelID (1, 1) {mustBeInteger, mustBeGreaterThanOrEqual(LogicalChannelID, 1), mustBeLessThanOrEqual(LogicalChannelID, 32)} = 1;
% BufferStatus Logical channel's buffer status (bytes)
% Specify the buffer status of a logical channel as an integer
% scalar in bytes. The default value is 0.
BufferStatus (1, 1) {mustBeInteger, mustBeFinite} = 0;
end
methods
function obj = hNRRLCBufferStatus(rnti, lcid, bufferStatus)
%hNRRLCBufferStatus Construct the logical channel's buffer
% status report object
% OBJ = hNRRLCBufferStatus(RNTI, LCID, BUFFERSTATUS)
% initializes the logical channel's buffer status report
% object.
%
% RNTI is a radio network temporary identifier, specified
% within [1, 65519]. Refer table 7.1-1 in 3GPP TS 38.321.
%
% LCID is a logical channel identifier, specified in the
% range between 1 and 32, inclusive. Refer Table 6.2.1-1 in
% 3GPP TS 38.321.
%
% BUFFERSTATUS is the amount of data (in bytes) in the
% logical channel's Tx buffer.
obj.RNTI = rnti;
obj.LogicalChannelID = lcid;
obj.BufferStatus = bufferStatus;
end
end
end