Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Interface «api::ProcessorTimer»

A central processing unit timer resource interface.

public: virtual ~ProcessorTimer();

Destructor.

public: virtual int64 getCount() const;

Gets this timer counter.

Returns:
timer counter register value.

public: virtual int32 getDigit() const;

Returns number of timer digits.

Returns:
timer digits.

public: virtual int32 getIndex() const;

Returns this timer index.

Returns:
index of this timer, or -1 if error has been occurred.

public: virtual int64 getInternalClock() const;

Returns this timer internal clock in Hz.

Returns:
timer internal clock.

public: virtual int32 getInterrupSource() const;

Returns an available interrupt source for this timer.

Returns:
available interrupt source, or -1 if error has been occurred.

public: virtual int64 getPeriod() const;

Gets this timer period.

Returns:
timer period register value.

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 setCount(int64 count);

Sets this timer counter.

Parameters:
count — timer counter register value.

public: virtual void setPeriod(int64 us=0);

Sets this timer period.

Parameters:
us — timer period in microseconds, zero value sets a period to maximum value.

public: virtual void start();

Sets this timer period.

Parameters:
us — timer period in microseconds, zero value sets a period to maximum value.

public: virtual void stop();

Stops this timer count.

Back to class list