mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
[hal] Add support for Pulse-Per-Second signal (#4819)
This commit is contained in:
@@ -105,6 +105,19 @@ class DigitalOutput : public DigitalSource,
|
||||
*/
|
||||
void SetPWMRate(double rate);
|
||||
|
||||
/**
|
||||
* Enable a PWM PPS (Pulse Per Second) Output on this line.
|
||||
*
|
||||
* Allocate one of the 6 DO PWM generator resources from this module.
|
||||
*
|
||||
* Supply the duty-cycle to output.
|
||||
*
|
||||
* The resolution of the duty cycle is 8-bit.
|
||||
*
|
||||
* @param dutyCycle The duty-cycle to start generating. [0..1]
|
||||
*/
|
||||
void EnablePPS(double dutyCycle);
|
||||
|
||||
/**
|
||||
* Enable a PWM Output on this line.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user