Class PIT.PITTimer
Represents a virtual timer that can be handled using the Programmable Interrupt Timer (PIT).
Inheritance
Implements
Inherited Members
Namespace: Cosmos.HAL
Assembly: Cosmos.HAL2.dll
Syntax
public class PITTimer : IDisposable
Constructors
| Improve this Doc View SourcePITTimer(PIT.PITTimer.OnTrigger, UInt64, Boolean)
Initializes a new PIT.PITTimer, with the specified callback method and properties.
Declaration
public PITTimer(PIT.PITTimer.OnTrigger callback, ulong nanosecondsTimeout, bool recurring)
Parameters
Type | Name | Description |
---|---|---|
PIT.PITTimer.OnTrigger | callback | The method to invoke for each timer cycle. |
System.UInt64 | nanosecondsTimeout | The delay between timer cycles. |
System.Boolean | recurring | Whether this timer will fire once, or will fire indefinetly until unregistered. |
PITTimer(PIT.PITTimer.OnTrigger, UInt64, UInt64)
Initializes a new recurring PIT.PITTimer, with the specified callback method and amount of nanoseconds left until the next timer cycle.
Declaration
public PITTimer(PIT.PITTimer.OnTrigger callback, ulong nanosecondsTimeout, ulong nanosecondsLeft)
Parameters
Type | Name | Description |
---|---|---|
PIT.PITTimer.OnTrigger | callback | The method to invoke for each timer cycle. |
System.UInt64 | nanosecondsTimeout | The delay between timer cycles. |
System.UInt64 | nanosecondsLeft | The amount of time left before the first timer cycle is fired. |
PITTimer(Action, UInt64, Boolean)
Declaration
public PITTimer(Action callback, ulong nanosecondsTimeout, bool recurring)
Parameters
Type | Name | Description |
---|---|---|
System.Action | callback | |
System.UInt64 | nanosecondsTimeout | |
System.Boolean | recurring |
PITTimer(Action, UInt64, UInt64)
Declaration
public PITTimer(Action callback, ulong nanosecondsTimeout, ulong nanosecondsLeft)
Parameters
Type | Name | Description |
---|---|---|
System.Action | callback | |
System.UInt64 | nanosecondsTimeout | |
System.UInt64 | nanosecondsLeft |
Fields
| Improve this Doc View SourceHandleTrigger
The method to invoke for each cycle of the timer.
Declaration
public PIT.PITTimer.OnTrigger HandleTrigger
Field Value
Type | Description |
---|---|
PIT.PITTimer.OnTrigger |
NanosecondsTimeout
The delay between each timer cycle.
Declaration
public ulong NanosecondsTimeout
Field Value
Type | Description |
---|---|
System.UInt64 |
Recurring
Whether this timer will fire once, or will fire indefinetly until unregistered.
Declaration
public bool Recurring
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
| Improve this Doc View SourceTimerID
The ID of the timer.
Declaration
public int TimerID { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceDispose()
Declaration
public void Dispose()
Finalize()
Declaration
protected void Finalize()