Class PwmPortBase
Represents a base class for PWM ports.
Assembly: Meadow.Contracts.dll
View Source
public abstract class PwmPortBase : DigitalPortBase, IPwmPort, IDigitalPort, IPort<IDigitalChannelInfo>, IDisposable
Inheritance: System.Object
-> Meadow.Hardware.PortBase<C> -> Meadow.Hardware.DigitalPortBase
Implements:
Meadow.Hardware.IPwmPort, Meadow.Hardware.IDigitalPort, Meadow.Hardware.IPort<C>, System.IDisposable
Properties
Channel
Gets or sets the PWM channel information associated with the port.
View Source
public IPwmChannelInfo Channel { get; protected set; }
TimeScale
Gets or sets the time scale in which time-based properties (Period and Duration) are expressed.
View Source
public TimeScale TimeScale { get; set; }
Inverted
Gets or sets a value indicating whether the PWM signal is inverted.
View Source
public abstract bool Inverted { get; set; }
DutyCycle
Gets or sets the duty cycle of the PWM signal.
View Source
public abstract float DutyCycle { get; set; }
Frequency
Gets or sets the frequency of the PWM signal.
View Source
public abstract Frequency Frequency { get; set; }
Duration
Gets or sets the duration of the PWM pulse.
View Source
public abstract float Duration { get; set; }
Period
Gets or sets the period of the PWM signal.
View Source
public abstract float Period { get; set; }
State
Gets the state of the PWM signal.
View Source
public abstract bool State { get; }
Methods
Start()
Starts the PWM signal.
View Source
public abstract void Start()
Stop()
Stops the PWM signal.
View Source
public abstract void Stop()