Class GpioPinClockService
Provides a hardware clock services on the associated pin. Only a few pins support this.
Inherited Members
Namespace: Unosquare.PiGpio.ManagedModel
Syntax
public sealed class GpioPinClockService : GpioPinServiceBase
Properties
ClockChannel
Gets the clock channel.
Declaration
public int ClockChannel { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
ResolveAvailable()
Resolves the availability of this service for the associated pin.
Declaration
protected override bool ResolveAvailable()
Returns
Type | Description |
---|---|
Boolean | True when the service is deemed as available. |
Overrides
Start(Int32)
Starts the hardware clock on this pin. All pins sharing the clock channel and running in clock mode will get theis new frequency. The frequency must be 0 (off) or 4689-250,000,000 (250M) Hz.
Declaration
public void Start(int frequency)
Parameters
Type | Name | Description |
---|---|---|
Int32 | frequency | The frequency. 0 (off) or 4689-250000000 (250M). |
Stop()
Stops the hardware clock on this pin.
Declaration
public void Stop()