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`
}
Summary of Contents for TMS320 Series
Page 1: ...TMS320 DSP BIOS v5 40 User s Guide Literature Number SPRU423G April 2009 ...
Page 16: ...xvi ...
Page 152: ...Tasks 4 48 Figure 4 12 Trace from Example 4 7 ...
Page 168: ...Semaphores 4 64 Figure 4 14 Trace Results from Example 4 11 ...
Page 202: ...5 20 ...
Page 287: ...Index 9 Index Void 1 11 W words data memory 3 15 of code 1 5 wrapper function 2 29 ...
Page 288: ...Index 10 Index ...