Pwm Class
Package: GHIElectronics.Endpoint.Core
Namespace: GHIElectronics.Endpoint.Core
PWM pins bundled with EPM815, for .NET's System.Device.Pwm. Pwm.Initialize connects the pin to its timer; Pwm.GetChipId and Pwm.GetChannelId give what PwmChannel needs. Channels of one timer share its frequency.
public static class Pwm
Nested Types
| Type | Kind | Summary |
|---|---|---|
| EPM815.Pwm.Pin | Class | The pins with PWM (the timer and channel are in the comments) |
Methods
GetChannelId(int pin)
public static int GetChannelId(int pin)
The pin's channel in its PWM chip, for PwmChannel.Create
Returns int
GetChipId(int pin)
public static int GetChipId(int pin)
The PWM chip of the pin's timer (/sys/class/pwm/pwmchipN), for PwmChannel.Create
Returns int
Initialize(int pin)
public static void Initialize(int pin)
Connects the pin to its timer
UnInitialize(int pin)
public static void UnInitialize(int pin)
Gives the pin back, as it was before Initialize