RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

HAL_UARTInterruptID

Hardware Abstraction Layer
HAL entry points from RISC OS
ยป HAL_UARTInterruptID

HAL_UARTInterruptID

(HAL entry #79)
int HAL_UARTInterruptID(int port)
Entry
port Port number to query
Exit
- Returns the highest prioirty interrupt currently asserted.

Use

This is an internal call for use by the DualSerial? module and should not be used by user code. Instead of calling the HAL directly, user code should interact with the Serial* entries that DualSerial creates in DeviceFS.

Returns the highest priority interrupt currently asserted. In order of priority:

  • 3 => Receiver Line Status (Cleared by HAL_UARTReceiveByte/HAL_UARTLineStatus)
  • 2 => Received Data Available (Cleared by reading enough data)
  • 6 => Character Timeout (received data waiting)
  • 1 => Transmitter Holding Register Empty (Cleared by this call)
  • 0 => Modem Status (Cleared by HAL_UARTModemStatus)
  • -1 => No Interrupt

The Modem Status interrupt occurs when the CTS, DSR or DCD inputs change, or when RI goes from high to low (ie bits 0 to 3 of HAL_UARTModemStatus are set).

See also

  • HAL UART API
Information source: Kernel.Docs.HAL.Serial in CVS
Revised on February 9, 2012 13:55:29 by Jeffrey Lee (213) (195.72.173.130)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: HAL entry points from RISC OS, HAL entry points by number, HAL UART API

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys