RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

DMA_RegisterChannel (changes)

Showing changes from revision #2 to #3: Added | Removed | Changed

DMAManager
» DMAManager SWI Calls
» DMA_RegisterChannel

DMA_RegisterChannel

(SWI &46140)
Entry
R0 Flags:
Bits 0-3: Post-transfer channel delay
Bit 4: Disable burst transfers
Bit 5: Disable DRQ synchronisation to clock
Bits 6-31: Reserved (set to 0)
R1 Logical channel number
R2 DMA cycle speed (0-3)
R3 Transfer unit size (bytes)
R4 Pointer to vector of DMA callback routines
R5 Value to pass to callback routines in R12
R6 Peripheral read/receive physical address, or -1 to disallow reads
R7 Peripheral write/send physical address, or -1 to disallow writes
Exit
R0 Channel handle
- Other registers preserved

Use

This SWI allows you to register your intent to use a given logical DMA channel.

Each logical channel can only be used by one client at any given time; if the channel you are requesting is already in use then an error will be returned.

Notes

This documentation only covers the RISC OS 5 version of the DMAManager SWIs. For other OS versions, consult the appropriate PRM volume (e.g. volume 5a).

See also

  • DMAManager SWI Calls
  • DMA_DeregisterChannel
  • DMA callback routines
Revised on January 6, 2014 18:50:40 by Chris (121)? (62.30.208.154)
Edit | Back in time (2 revisions) | Hide changes | History | Views: Print | Source | Linked from: HALDeviceAudio_AudC, DMAManager SWI Calls, DMA_DeregisterChannel, DMA callback routines, DMA enable callback, DMA disable callback, DMA start callback, DMA completed callback, DMA sync callback, Addressing the end-of-life of AArch32

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 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