Skip to main content

Class PwmPortBase

Represents a base class for PWM ports.

Assembly: Meadow.Contracts.dll
View Source
Declaration
public abstract class PwmPortBase : DigitalPortBase, IPwmPort, IDigitalPort, IPort<IDigitalChannelInfo>, IDisposable

Inheritance: System.Object -> Meadow.Hardware.PortBase<C>

Implements:
Meadow.Hardware.IPwmPort, System.IDisposable

Properties

Channel

Gets or sets the PWM channel information associated with the port.

View Source
Declaration
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
Declaration
public TimeScale TimeScale { get; set; }

Inverted

Gets or sets a value indicating whether the PWM signal is inverted.

View Source
Declaration
public abstract bool Inverted { get; set; }

DutyCycle

Gets or sets the duty cycle of the PWM signal.

View Source
Declaration
public abstract float DutyCycle { get; set; }

Frequency

Gets or sets the frequency of the PWM signal.

View Source
Declaration
public abstract Frequency Frequency { get; set; }

Duration

Gets or sets the duration of the PWM pulse.

View Source
Declaration
public abstract float Duration { get; set; }

Period

Gets or sets the period of the PWM signal.

View Source
Declaration
public abstract float Period { get; set; }

State

Gets the state of the PWM signal.

View Source
Declaration
public abstract bool State { get; }

Methods

Start()

Starts the PWM signal.

View Source
Declaration
public abstract void Start()

Stop()

Stops the PWM signal.

View Source
Declaration
public abstract void Stop()

Implements