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.
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)
static int32_t GetChannelId(int32_t pin);
The pin's channel in its PWM chip, for PwmChannel.Create
Returns int
GetChipId(int pin)
static int32_t GetChipId(int32_t pin);
The PWM chip of the pin's timer (/sys/class/pwm/pwmchipN), for PwmChannel.Create
Returns int
Initialize(int pin)
static void Initialize(int32_t pin);
Connects the pin to its timer
UnInitialize(int pin)
static void UnInitialize(int32_t pin);
Gives the pin back, as it was before Initialize