<< Data Buffers Data Buffers init_buff >>

USB Comunication Toolbox for Scilab >> Data Buffers > clearBuffValue

clearBuffValue

Clean specific position of a buffer of data unsigned integer of 8 bits

Calling Sequence

_oBuff=clearBuffValue(_iBuff,pos);

Parameters

_inBuff
: Input buffer. The type of the buffer has to be unsigned integer of 8 bits
pos
: Position in the buffer to be clear.
_oBuff
: Output buffer with the data in the position pos clean. The _oBuffer can be the same of _iBuffer.

Description

Clean specific position of a buffer of data unsigned integer of 8 bits

This rutine its a scilab macro. The buffer is a matrix of 1 rows and n columns.

Examples

n=5;
txBuff=init_buff(n);
for i=1:n
    txBuff=setBuffValue(txBuff,i,i);
end
disp(txBuff);
txBuff=clearBuffValue(txBuff,1);
disp(txBuff);

See Also

Authors

<< Data Buffers Data Buffers init_buff >>