tti()

Pass data, or error and control codes to io-char

Synopsis:

#include <sys/io-char.h>

int tti( TTYDEV *dev,
         unsigned c );

Arguments:

dev
A pointer to the structure that represents the specific device that data has been received on.
c
Contains received data and control codes that modify how the data is read and processed. One of:
  • TTI_BREAK — The hardware detected a “break” signal or received a VINTR character.
  • TTI_CARRIER — Indicates to the io-char library that a carrier was detected (i.e., the hardware modem is online).
  • TTI_FRAME — The hardware detected a framing error.
  • TTI_HANGUP — Indicates to io-char that the hardware modem is “hung up.” This type is the opposite of TTI_CARRIER.
  • TTI_INTR — Internal to io-char. Indicates a SIGINT character has been received.
  • TTI_OHW_CONT — Used by hardware flow control to start output.
  • TTI_OHW_STOP — Used by hardware flow control to stop output.
  • TTI_OVERRUN — The hardware detected an overrun.
  • TTI_PARITY — The hardware detected a parity error.
  • 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.

Description:

The tti() function forwards data received by the hardware to io-char, and passes error and control codes.

Returns:

If this call returns 0, do nothing. If it returns 1, an event needs to be generated for io-char.

Classification:

QNX OS

Safety:
Cancellation point No
Signal handler No
Thread Yes
Page updated: