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_UARTFIFOSize

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

HAL_UARTFIFOSize

(HAL entry #75)
void HAL_UARTFIFOSize(int port, int *rx, int *tx)
Entry
port Port number to query
rx Location to store RX FIFO size
tx Location to store TX FIFO size
Exit
-

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 size of the RX and TX FIFOs. Either parameter may be NULL. Note that the size of the TX FIFO is the total amount of data that can be sent immediately when the Transmitter Holding Register Empty status holds. (So an unusual UART that had a transmit threshold should return total FIFO size minus threshold).

See also

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