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

OS_SerialOp

Programmer's Reference Manuals
» Part 15 – SWI Calls
» OS
» OS_SerialOp

OS_SerialOp

(SWI &57)
Entry
R0 Reason code
All other registers dependent on reason code
Exit
R0 Preserved
All other registers dependent on reason code

Use

The purpose of this call is to access the serial device driver directly.

Notes

The action performed depends on the reason code value in R0.

OS_SerialOp is vectored via SerialV?.

Reason Codes

# Hex # Action
0 &00 Read/write serial states
1 &01 Read/write data format
2 &02 Send break
3 &03 Send byte
4 &04 Get byte
5 &05 Read/write receive baud rate
6 &06 Read/write transmit baud rate
7 &07 Internal use only
8 &08 Read/write serial input buffer threshold value
9 &09 Enumerate available serial port speeds

See also

  • Baud Rate Codes
  • SerialV?
Revised on December 2, 2009 19:56:47 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: Serial Data Transfer Word, Serial Status Word, OS SWI Calls, Baud Rate Codes, Software Vector Numbers, OS_SerialOp 0, OS_SerialOp 1, OS_SerialOp 2, OS_SerialOp 3, OS_SerialOp 4, OS_SerialOp 5, OS_SerialOp 6, OS_SerialOp 8, OS_SerialOp 9

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