Motorola USB08 User Manual

Page of 244
Source Code Files
Contents
USB08 Evaluation Board
Designer Reference Manual
 
MOTOROLA
Source Code Files
 99
// send data to output pipe
io_buffer[0] = getKey(1);
io_buffer[1] = getKey(2);
io_buffer[2] = getKey(3);
io_buffer[3] = adc[0];
io_buffer[4] = adc[1];
io_buffer[5] = adc[2];
n=0;
do {
putPipe(io_buffer[n++]);
} while(n<8);
}
}
//============================================================================