[Buffer]
- removed fill member [RX] - added plot_mode as string for real time plot mode. 'h_pilots', 'h_syms' and 'fac' are available. - fixed finish condition for main loop git-svn-id: http://moon:8086/svn/matlab/trunk@79 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
+2
-3
@@ -1,6 +1,6 @@
|
||||
function [buf] = buffer()
|
||||
|
||||
buf = struct('mem', [], 'ri', 0, 'wi', 0, 'fill', 0, 'obj', @()obj_(), 'len', @()len_(), 'read', @(len)read_(len), 'readAt', @(len, offset)readAt_(len, offset), 'setReadIndex', @(offset)setReadIndex_(offset), 'write', @(x)write_(x));
|
||||
buf = struct('mem', [], 'ri', 0, 'wi', 0, 'obj', @()obj_(), 'len', @()len_(), 'read', @(len)read_(len), 'readAt', @(len, offset)readAt_(len, offset), 'setReadIndex', @(offset)setReadIndex_(offset), 'write', @(x)write_(x));
|
||||
|
||||
function b = obj_()
|
||||
b = buf;
|
||||
@@ -36,8 +36,7 @@ function [buf] = buffer()
|
||||
|
||||
function write_(x)
|
||||
len = length(x);
|
||||
buf.mem(buf.wi+1:buf.wi+len,:) = x;
|
||||
buf.fill = buf.fill + len;
|
||||
buf.mem(buf.wi+1:buf.wi+len, :) = x;
|
||||
buf.wi = buf.wi + len;
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user