Skip to main content

Interface IPwmPort

Contract for a Port that has is capable of

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

Properties

Channel

PWM channel value

View Source
Declaration
IPwmChannelInfo Channel { get; }

Duration

Duration of pulse

View Source
Declaration
float Duration { get; set; }

Period

Period of pulse

View Source
Declaration
float Period { get; set; }

DutyCycle

Duty cycle

View Source
Declaration
float DutyCycle { get; set; }

Frequency

Frequency

View Source
Declaration
Frequency Frequency { get; set; }

Inverted

Is PWM signal inverted

View Source
Declaration
bool Inverted { get; set; }

State

Is running

View Source
Declaration
bool State { get; }

TimeScale

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

View Source
Declaration
TimeScale TimeScale { get; set; }

Methods

Start()

Starts the PWM square wave output

View Source
Declaration
void Start()

Stop()

Stops the PWM square wave output

View Source
Declaration
void Stop()