Unosquare
    Show / Hide Table of Contents

    Class GpioPinClockService

    Provides a hardware clock services on the associated pin. Only a few pins support this.

    Inheritance
    Object
    GpioPinServiceBase
    GpioPinClockService
    Inherited Members
    GpioPinServiceBase.IsAvailable
    GpioPinServiceBase.Pin
    GpioPinServiceBase.ValidateAvailable()
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    GpioPinServiceBase.ResolveAvailable()

    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()

    See Also

    GpioPinServiceBase

    Comments

    Back to top Copyright © 2017-2019 Unosquare