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_UARTFormat

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

HAL_UARTFormat

(HAL entry #74)
int HAL_UARTRate(int port, int format)
Entry
port Port number to modify
format Desired data format, or -1 to just read the current format.
Exit
- Returns previous format.

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.

Reads or modifies the data format:

Bit Meaning
0-1 Bits per word:
0 => 5
1 => 6
2 => 7
3 => 8
2 Stop length:
0 => 1
1 => 2 (1.5 if 5 bits)
3 Parity enabled
4-5 Parity:
0 => Odd (or disabled)
1 => Even
2 => Mark (parity bit = 1)
3 => Space (parity bit = 0)

See also

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