<< clearBuffValue Data Buffers setBuffValue >>

USB Comunication Toolbox for Scilab >> Data Buffers > init_buff

init_buff

Initialize a buffer of unsigned integer of 8 bits full of zeros

Calling Sequence

txBuff=init_buff(_size)

Parameters

_size
: Size of the buffer to be created and fulled of zeros.
txBuff
: Buffer create by the init_buffer rutine. The type of the data in the buffer are unsigned integer of 8 bits

Description

Initialize a buffer of unsigned integer of 8 bits full of zeros

This rutine its a scilab macro. The buffer is a matrix of 1 rows and _size columns. Where _size can not exceed 64 because the HID transfer buffer has a max size of 64 bytes

Examples

n=5;
txBuff=init_buff(n);
disp(txBuff);

See Also

Authors

<< clearBuffValue Data Buffers setBuffValue >>