EasyManua.ls Logo

Texas Instruments TMS320 - Page 254

Texas Instruments TMS320
288 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Selecting Among Multiple Streams
7-24
Example 7-14. Polling Two Streams
SIO_Handle stream0;
SIO_Handle stream1;
SIO_Handle streamtab[2];
Uns mask;
...
streamtab[0] = stream0;
streamtab[1] = stream1;
while ((mask = SIO_select(streamtab, 2, 0)) == 0) {
`I/O would block, do something else`
}
if (mask & 0x1) {
`service stream0`
}
if (mask & 0x2) {
`service stream1`
}

Table of Contents

Other manuals for Texas Instruments TMS320

Related product manuals