Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/character/lib/tti.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/character/lib/tti.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/character/lib/tti.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/character/lib/tti.html on line 8
Pass data or error and control codes to io-char
#include <sys/io-char.h >
int tti(TTYDEV *dev,
unsigned c );
- dev
- A pointer to the structure that represents the specific device data has been received on.
- c
- Contains received data and control codes which modify how the data is read and processed.
See the TTI_* defines below for more details.
This function forwards data received by the hardware to io-char
and passes error/control codes.
The control type is extracted from c, and is one of:
- TTI_BREAK
- Indicates a “break” signal has been detected by the
hardware or VINTR character received.
- TTI_QUIT
- Internal to io-char. Indicates a VQUIT character has been
received.
- TTI_SUSP
- Internal to io-char. Indicates a VSUSP character has been
received.
- TTI_OVERRUN
- An overrun has been detected by the hardware.
- TTI_FRAME
- A framing error has been detected by the hardware.
- TTI_PARITY
- A parity error has been detected by the hardware.
- TTI_CARRIER
- Indicates to the io-char library that a carrier was detected,
i.e. the hardware modem is online.
- TTI_HANGUP
- Indicates to io-char that the hardware modem is “hung up.” This type
is the opposite of TTI_CARRIER
- TTI_OHW_STOP
- Used by hardware flow control to stop output.
- TTI_OHW_CONT
- Used by hardware flow control to start output.
If this call returns 0, do nothing. If it returns -1 an event needs to
be generated for io-char.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
ttc(), tto(), TTYDEV
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/character/lib/tti.html on line 157
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/character/lib/tti.html on line 157