libsimpleioPWM_configure Method |
Configure a Linux PWM output device.
Namespace: IO.BindingsAssembly: libsimpleio (in libsimpleio.dll) Version: 2.2024.167.1
Syntax public static void PWM_configure(
int chip,
int channel,
int period,
int ontime,
int polarity,
out int error
)
Parameters
- chip Int32
- Chip number.
- channel Int32
- Channel number.
- period Int32
- Pulse period in microseconds.
- ontime Int32
- Initial on time in microseconds.
- polarity Int32
- PWM output polarity (0 for active low/inverted or 1
for active high/normal).
- error Int32
- Error code. Zero upon success or an errno
value upon failure.
Remarks On many platforms two more more PWM outputs may share the same
clock generator, so configuring different PWM pulse periods may not be
possible.
See Also