![background image](http://html2.mh-extra.com/html/racal-instruments/7064/7064_instruction-manual_3127022049.webp)
Here is a summary of the queue access functions:
#include "vtl_rou.h"
/* G e t next "raw" char from secondary input queue.h.
Returns NO_CHAR if queue is empty.
*
1
extern int vtl_getchar_raw(void);
/* G e t next "stripped" char from secondary input queue.
The upper 8 bits have been masked off.
Returns NO_CHAR i f queue is empty.
*
1
extern int vtl_getchar(void);
/* R e t u r n s a character "ch" to the secondary input queue; the state of the upper 8
status bits is maintained.
Only a single character may be pushed back into the queue.
*1
extern int vtl_ungetc(int ch);
/* R e t u r n s a count of the number o f characters available i n the secondary input
queue.
*
1
extern long in_stat(void)
/* R e t u r n s non-zero (TRUE) i f an EOI was asserted.
extern int eof(void)
4.6.4 Sample Application Parser
#include "vtl_rou.h"
void myParser(void)
int c;
1*
Echo characters received in the secondary queue to the output queue;
maintain EOI status on last char.
while ((c = getcharO) != NO_CHAR)
vtl_putchar(c, eof() 7 1 : 0);
4-20
Содержание 7064
Страница 2: ...Racal Instruments...
Страница 6: ...I 1 1 1 1 1...
Страница 21: ...I 1 I I I I I I I I I 1 1 I I I I I I...
Страница 29: ...I I I I I I I I I I I I I I I I I I I...
Страница 57: ...1 I I I I I I I I I I I I I I I I I I...
Страница 77: ...1...
Страница 111: ...0 00 0 00 tI I 4 0 0 I7 r i 6 4 7 4 7 0 T 6 0 0 7 28...
Страница 112: ......
Страница 113: ...7 30 I I I 1 I I I I I I I I I I I I I I I...
Страница 115: ...7 32...
Страница 124: ...CO 0 L5 F 4 BEAD 2 A C8 1 0 1 uF C9 01 uF T 0 1 uF 01 uF E12 0 IIIIII M I 11111 V I E M I 111111 I I I I I I N M I I...
Страница 148: ......
Страница 164: ...I I I I I I I I I I 1 I I I I I I I I...
Страница 176: ...extern char error_msg_lookup unsigned errdes endif ERROR_INCLUDE C 8...