Skip to main content

Interface IPwmPort

Contract for a Port that has is capable of

Assembly: Meadow.Contracts.dll
View Source
public interface IPwmPort : IDigitalPort, IPort<IDigitalChannelInfo>, IDisposable

Properties

Channel

PWM channel value

View Source
IPwmChannelInfo Channel { get; }

Duration

Duration of pulse

View Source
float Duration { get; set; }

Period

Period of pulse

View Source
float Period { get; set; }

DutyCycle

Duty cycle

View Source
float DutyCycle { get; set; }

Frequency

Frequency

View Source
Frequency Frequency { get; set; }

Inverted

Is PWM signal inverted

View Source
bool Inverted { get; set; }

State

Is running

View Source
bool State { get; }

TimeScale

Timescale for time calculations (will be removed in future revisions)

View Source
TimeScale TimeScale { get; set; }

Methods

Start()

Starts the PWM square wave output

View Source
void Start()

Stop()

Stops the PWM square wave output

View Source
void Stop()