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_UARTLineStatus

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

HAL_UARTLineStatus

(HAL entry #71)
int HAL_UARTLineStatus(int port)
Entry
port Port number to query
Exit
Bit 0 Receiver Data Ready
Bit 1 Overrun Error
Bit 2 Parity Error
Bit 3 Framing Error
Bit 4 Break Error
Bit 5 Transmitter Holding Register Empty
Bit 6 Transmitter Empty (including FIFO)
Bit 7 FIFO contains a Parity, Framing or Break error

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.

Parity, Framing and Break errors are associated with each byte received. Whether the values reported here are associated with the last byte read using ReceiveByte or with the next byte to be read is undefined. You should request the status using ReceiveByte to ensure accurate identification of bytes with errors.

Error bits are cleared whenever status is read, using either HAL_UARTLineStatus or HAL_UARTReceiveByte with status non-NULL.

See also

  • HAL UART API
Information source: Kernel.Docs.HAL.Serial in CVS
Revised on February 9, 2012 13:56:03 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, HAL_UARTInterruptID, HAL_UARTReceiveByte

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