HardwareManager Class Reference

#include <HardwareManager.h>

Inheritance diagram for HardwareManager:
Object

# Static Public Member Functions

static void initialize ()
 Initialize the basic hardware registries.
static void reset ()
 Reset the hardware managers.
static void halt ()
 Halt the CPU.
static void setInterruptLevel (uint8 level)
static void enableInterrupts ()
 Enable interrupts.
static void disableInterrupts ()
 Disable interrupts.
static void resumeInterrupts ()
 Resume interrupts.
static void suspendInterrupts ()
 Suspend interrupts.
static void enableMultiplexedInterrupts ()
 Enable multiplexed interrupts.
static void disableMultiplexedInterrupts ()
 Disable multiplexed interrupts.
static bool areInterruptsSuspended ()
static int32 getStackPointer ()
static int32 getLinkPointer ()
static int32 getPSW ()
static void printStackStatus (int32 x, int32 y, bool resumed)
static void print (int32 x, int32 y)

# Additional Inherited Members

- Private Member Functions inherited from Object
void constructor ()
 Class' constructor.
const void * getVTable ()
bool mutateTo (const void *targetClass)
- Static Private Member Functions inherited from Object
static Object getCast (void *object, ClassPointer targetClassGetClassMethod, ClassPointer baseClassGetClassMethod)
- Private Attributes inherited from Object
void * vTable
 Pointer to the class's virtual table.

# Detailed Description

Class HardwareManager

Inherits from Object

Centralizes the management of the hardware.

Definition at line 59 of file HardwareManager.h.

# Member Function Documentation

# areInterruptsSuspended()

static bool HardwareManager::areInterruptsSuspended ( )
inlinestatic

Check the status of the interrupts.

Returns
True if interrupts are not disabled nor suspended

Definition at line 251 of file HardwareManager.h.

# disableInterrupts()

static void HardwareManager::disableInterrupts ( )
inlinestatic

Disable interrupts.

Definition at line 173 of file HardwareManager.h.

# disableMultiplexedInterrupts()

static void HardwareManager::disableMultiplexedInterrupts ( )
inlinestatic

Disable multiplexed interrupts.

Definition at line 238 of file HardwareManager.h.

# enableInterrupts()

static void HardwareManager::enableInterrupts ( )
inlinestatic

Enable interrupts.

Definition at line 159 of file HardwareManager.h.

# enableMultiplexedInterrupts()

static void HardwareManager::enableMultiplexedInterrupts ( )
inlinestatic

Enable multiplexed interrupts.

Definition at line 214 of file HardwareManager.h.

# getLinkPointer()

static int32 HardwareManager::getLinkPointer ( )
inlinestatic

Retrieve the Link Pointer's value.

Returns
Link pointer

Definition at line 273 of file HardwareManager.h.

# getPSW()

static int32 HardwareManager::getPSW ( )
inlinestatic

Retrieve the PSW

Returns
PSW

Definition at line 288 of file HardwareManager.h.

# getStackPointer()

static int32 HardwareManager::getStackPointer ( )
inlinestatic

Retrieve the Stack Pointer's value.

Returns
Stack pointer

Definition at line 258 of file HardwareManager.h.

# halt()

static void HardwareManager::halt ( )
inlinestatic

Halt the CPU.

# initialize()

static void HardwareManager::initialize ( )
static

Initialize the basic hardware registries.

# print()

static void HardwareManager::print ( int32 x,
int32 y )
static

Print the status of the hardware registries.

Parameters
xScreen x coordinate where to print
yScreen y coordinate where to print

Definition at line 138 of file HardwareManager.c.

# printStackStatus()

static void HardwareManager::printStackStatus ( int32 x,
int32 y,
bool resumed )
static

Print the status of the stack.

Parameters
xScreen x coordinate where to print
yScreen y coordinate where to print
resumedIf true, print only minimum information

Definition at line 191 of file HardwareManager.c.

# reset()

static void HardwareManager::reset ( )
static

Reset the hardware managers.

Definition at line 119 of file HardwareManager.c.

# resumeInterrupts()

static void HardwareManager::resumeInterrupts ( )
inlinestatic

Resume interrupts.

Definition at line 187 of file HardwareManager.h.

# setInterruptLevel()

static void HardwareManager::setInterruptLevel ( uint8 level)
inlinestatic

Set the interrupt level.

Parameters
levelInterrupt level

Definition at line 138 of file HardwareManager.h.

# suspendInterrupts()

static void HardwareManager::suspendInterrupts ( )
inlinestatic

Suspend interrupts.

Definition at line 202 of file HardwareManager.h.


The documentation for this class was generated from the following files: