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_NVMemoryType

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

HAL_NVMemoryType

(HAL entry #23)
unsigned int HAL_NVMemoryType(void)
Entry
-
Exit
Bits 0-7 0 => no NVMemory available
1 => NVMemory may be available on IIC bus
2 => NVMemory is available on the IIC bus, and the device characteristics are known
3 => the HAL provides NVMemory access calls
Bit 8 NVMemory has a protected region at the end
Bit 9 Protected region is software deprotectable
Bit 10 Memory locations 0-15 are readable
Bit 11 Memory locations 0-15 are writeable

Use

This is an internal call for OS use only and should not be used by user software.

If bits 0-7 are 0 or 1 no other NVMemory calls need be available, and bits 8-31 should be zero.

If bits 0-7 are 2, HAL_NVMemorySize, HAL_NVMemoryPageSize, HAL_NVMemoryProtectedSize, HAL_NVMemoryProtection and HAL_NVMemoryIICAddress calls must be available.

If bits 0-7 are 3, all calls except HAL_NVMemoryIICAddress must be available.

Note that if the OS is using IIC to talk to the NVMemory (i.e. bits 0-7 are 1 or 2) then only IIC bus 0 can be used for the location of NVMemory.

See also

  • HAL NVRAM API
Information sources: Kernel.Docs.HAL.HAL_API, Kernel.s.PMF.i2cutils, HAL.Tungsten.s.NVMemory in CVS
Revised on February 9, 2012 13:44:12 by Jeffrey Lee (213) (195.72.173.130)
Edit | Back in time (2 revisions) | See changes | History | Views: Print | Source | Linked from: HAL entry points from RISC OS, HAL entry points by number, HAL NVRAM API, HAL_NVMemoryProtectedSize, HAL_NVMemoryProtection

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