SIO Module
2-386
❏
Buffer alignment
. Specify the memory alignment to use for stream
buffers if Model is Standard. For example, if you select 16, the buffer
must begin at an address that is a multiple of 16. The default is 1,
which means the buffer can begin at any address.
Tconf Name: bufAlign
Type: EnumInt
Options:
1, 2, 4, 8, 16, 32, 64, ..., 32768
Example:
mySio.bufAlign = 1;
❏
Flush
. Check this box if you want the stream to discard all pending
data and return without blocking if this object is idled at run-time with
SIO_idle.
Tconf Name: flush
Type: Bool
Example:
mySio.flush = false;
❏
Model
. Select Standard if you want all buffers to be allocated when
the stream is created. Select Issue/Reclaim if your program is to
allocate the buffers and supply them using SIO_issue. Both SWI and
TSK threads can be used with the SIO module. However, SWI
threads can be used only with the issue/reclaim model, and only then
if the timeout parameter is 0. TSK threads can be used with either
model.
Tconf Name: modelName
Type: EnumString
Options:
"Standard", "Issue/Reclaim"
Example:
mySio.modelName = "Standard";
❏
Allocate Static Buffer(s)
. If this property is set to true, the
configuration allocates stream buffers for the user. The SIO_staticbuf
function is used to acquire these buffers from the stream. When the
Standard model is used, checking this box causes one buffer more
than the Number of buffers property to be allocated. When the
Issue/Reclaim model is used, buffers are not normally allocated.
Checking this box causes the number of buffers specified by the
Number of buffers property to be allocated.
Tconf Name: allocStaticBuf
Type: Bool
Example:
mySio.allocStaticBuf = false;
❏
Timeout for I/O operation
. This parameter specifies the length of
time the I/O operations SIO_get, SIO_put, and SIO_reclaim wait for
I/O. The device driver’s Dxx_reclaim function typically uses this
timeout while waiting for I/O. If the timeout expires before a buffer is
available, the I/O operation returns (-1 * SYS_ETIMEOUT) and no
buffer is returned.
Tconf Name: timeout
Type: Int16
Example:
mySio.timeout = -1;