PwmChannel Class
Namespace: System.Device.Pwm · Assembly: GHIElectronics.TinyCLR.System.Device.Pwm
No description available.
public class PwmChannel : IDisposable
Constructors
PwmChannel(int chip, int channel)
protected PwmChannel(int chip, int channel) : this(chip, channel, 400, 0.5)
No description available.
| Parameter | Type | Description |
|---|---|---|
chip | int | |
channel | int |
PwmChannel(int chip, int channel, int frequency, double dutyCyclePercentage)
protected PwmChannel(int chip, int channel, int frequency, double dutyCyclePercentage)
No description available.
| Parameter | Type | Description |
|---|---|---|
chip | int | |
channel | int | |
frequency | int | |
dutyCyclePercentage | double |
Properties
Channel
public int Channel { get; }
AP channel (1..13). AccessPoint mode only. (inherited)
Controller
public int Controller { get; }
The SpiController this device transacts over. (inherited)
Frequency
public double Frequency { get; set; }
No description available.
DutyCycle
public double DutyCycle { get; set; }
No description available.
Polarity
public PwmPulsePolarity Polarity { get; set; }
Selects whether the active part of the pulse is high or low. (inherited)
Methods
Create(int chip, int channel)
public static PwmChannel Create(int chip, int channel)
Creates or overwrites a file. (inherited)
| Parameter | Type | Description |
|---|---|---|
chip | int | |
channel | int |
Returns PwmChannel — TinyFileStream that provides stream based access to the file.
Create(int chip, int channel, int frequency, double dutyCyclePercentage)
public static PwmChannel Create(int chip, int channel, int frequency = 400, double dutyCyclePercentage = 0.5)
No description available.
| Parameter | Type | Description |
|---|---|---|
chip | int | |
channel | int | |
frequency | int | |
dutyCyclePercentage | double |
Returns PwmChannel
Start()
public void Start()
Starts the timer. (inherited)
Stop()
public void Stop()
Stops the timer. (inherited)
Dispose()
public void Dispose()
Releases buffered memory (the unmanaged firmware/application buffers). (inherited)