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
TimePeriod Duration { get; set; }

Period

Period of pulse

View Source
Declaration
TimePeriod Period { get; set; }

DutyCycle

Duty cycle (from 1 to 1.0)

View Source
Declaration
double 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; }

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