Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Interface «api::ProcessorInterrupt»

A central processing unit interrupt resource interface.

public: virtual ~ProcessorInterrupt();

Destructor.

public: virtual void clear();

Clears an interrupt status of this source.

public: virtual bool disable();

Disables a controller.

Returns:
an enable source bit value of a controller before method was called.

public: Type enable(bool status, Type ret);

Enables a controller.

Parameters:
status — returned status by disable method.
ret — value which will be returned.

Returns:
given value.

public: virtual void enable(bool status=true);

Enables a controller.

The true passed argument directly turns a controller on, and the false does nothing, a controller stays in the current state.

Parameters:
status — returned status by disable method, or true for directly turning a controller on.

public: virtual bool isConstructed() const;

Tests if this object has been constructed.

public: static bool isObject(const Type* obj);

Tests if given object has been constructed object.

public: virtual void jump();

Jumps to interrupt hardware vector.

public: virtual void removeHandler();

Removes this interrupt source handler.

public: virtual void restoreContext();

Restores registers context for storing to the default.

Method restores default registers for storing the CPU registers to it. This method may be called in an user interrupt handler, it means the default contxet will be restored with the context restore procedure.

public: virtual void set();

Sets an interrupt status of this source.

public: virtual void setContext(::api::ProcessorRegisters& reg);

Sets new registers context for storing.

Method sets a new register context for storing the CPU registers to it. This method may be called in an user interrupt handler, it means given context will be restored by the context restore procedure.

Parameters:
reg — new registers context.

public: virtual bool setHandler(api::Task& handler, int32 source);

Sets interrupt source handler.

Parameters:
handler — pointer to user class which implements an interrupt handler interface.
source — available interrupt source.

Returns:
true if handler is set successfully.

Back to class list