Package RASCAL.SystemInfo

DescriptionCollects information about the system - OS and hardware.
Authorbbracke
Date2005/11/21 20:14:33
Revision1.1
 

Clauses

Quick access : ClausesGenericsDefinitionsSubprograms


 
Context clauses
System.Unsigned_Types
 
Use clauses
System.Unsigned_Types
 

Basic Objects

Quick access : ClausesGenericsDefinitionsSubprograms


Basic Objects
Name Type Default
Code_Feature_Syncroniseunsigned1
You must tell the OS when a code area changes (OS_SynchroniseCodeAreas)
Code_Feature_Interruptsunsigned2
Enabling then disabling interrupts does *not* allow them a chance to occur.
Code_Feature_Vectorsunsigned4
Hardware vectors are only readable in 32 bit mode.
Code_Feature_PC8unsigned8
When storing PC, PC+8 is stored (not PC+12)
Code_Feature_FullEarlyunsigned16
Data aborts occur with 'full early' timing
Code_Feature_32bitOSunsigned64
32 bit RISC OS
Code_Feature_No26bitunsigned128
26 bit mode is unavailable on this platform
 

Definitions

Quick access : ClausesGenericsDefinitionsSubprograms


Types
Name Declaration
Cache_Status_Type(On, Off, W, IW)
Version_Info_Type(Version_Name, Part_Number, Build_Date, Dealer_Name, Registered_To, Registered_Address)
Memory_Info_Type(DRAM, VRAM, ROM, IO, SoftROM)
CPU_Type(Old, ARM6_7, StrongARM, New_32bitonly)
  
Exceptions
unknown_cache_state
 

Subprograms

Quick access : ClausesGenericsDefinitionsSubprograms


  
Get_CacheStatus function
ReturnCache_Status_Type
Returns cache status.
  
Get_WindowManager_Version function
ReturnInteger
Returns the version number of the window manager * 100. Returns 200 with RISC OS older than 3.00
  
Get_OS_Declaration function
ReturnString
Returns OS declaration.
  
Get_OS_Info function
ReturnString
Return information about the OS. Returns an empty string on ancient OS versions.
Parameter name Type Mode Default
InfoVersion_Info_TypeinVersion_Name
  
Get_Memory_Size function
ReturnInteger
Return the size of the memory in bytes. Returns 0 on OS versions older than 3.5
Parameter name Type Mode Default
InfoMemory_Info_Typein
  
Get_Machine_ID procedure
Returns the machine id. Returns 0,0 if no suitable chip is fitted to the computer.
Parameter name Type Mode Default
LowIntegerout
HighIntegerout
  
Get_Machine_ID function
ReturnString
Returns the machine id as a string. Returns '00' if no suitable chip is fitted to the computer.
  
Get_CPU function
ReturnCPU_Type
Returns CPU type.
  
Get_Ethernet_Address procedure
Returns ethernet address - 0,0 for none.
Parameter name Type Mode Default
LowIntegerout
HighIntegerout
  
Get_Ethernet_Address function
ReturnString
Returns ethernet address as a string - '00' for none.
  
Report procedure
Print system info into Reporter window.