Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Interface «api::Timer»

Hardware timer resource interface.

public: virtual ~Timer();

Destructor.

public: virtual int64 getCount() const;

Gets this timer counter.

Returns:
timer counter register value.

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.

Returns:
true if object has been constructed successfully.

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

Tests if given object has been constructed object.

Parameters:
obj — pointer to object.

Returns:
true if object has been constructed successfully.

public: virtual int32 number() const;

Returns this timer number.

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

public: virtual void setCount(int64 count);

Sets this timer counter.

Parameters:
count — timer counter 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();

Starts this timer count.

public: virtual void stop();

Stops this timer count.

Back to class list