[hal] Add support for Pulse-Per-Second signal (#4819)

This commit is contained in:
Thad House
2022-12-14 18:15:34 -08:00
committed by GitHub
parent 518916ba02
commit ee02fb7ba7
7 changed files with 100 additions and 0 deletions

View File

@@ -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.
*