| .TH "PWMROUND" "1" |
| .SH "NAME" |
| pwmround \- Adapt a waveform to a PWM's actual capabilities |
| .SH "SYNOPSIS" |
| . |
| .PP |
| .SY pwmround |
| .RB [ \-c\~\c |
| .IB chipno ] |
| .RB [ \-p\~\c |
| .IB pwmno ] |
| .RB [ \-P\~\c |
| .IB periodlength ] |
| .RB [ \-D\~\c |
| .IB dutylength ] |
| .RB [ \-O\~\c |
| .IB dutyoffset ] |
| .RB [ \-v ] |
| .YS |
| .SH Description |
| . |
| Typically a PWM cannot implement each and every waveform. |
| .I pwmround |
| queries the PWM output specified by |
| .I chipno |
| and |
| .I pwmno |
| what the waveform will be actually implemented for a given request. |
| |
| The waveform to be adapted is described by |
| .IR periodlength , |
| .I dutylength |
| and |
| .IR dutyoffset . |
| . |
| .SH Options |
| . |
| .TP |
| .BI \-c\~ chipno |
| Each PWM chip has an identifying chip number. |
| .I pwmset |
| configures a PWM line provided by chip number |
| .IR chipno . |
| .I chipno |
| defaults to 0. |
| . |
| .TP |
| .BI \-p\~ pwmno |
| Each PWM chip provides a number of PWM outputs. |
| .I pwmset |
| configures the |
| .IR pwmno th |
| PWM output of the selected chip. |
| .I pwmno |
| defaults to 0. |
| . |
| .TP |
| .BI \-P\~ periodlength |
| .I periodlength |
| in nanoseconds defines the length of the period of the waveform to be adapted to the PWM's capabilities. |
| . |
| .TP |
| .BI \-D\~ dutylength |
| in nanoseconds defines the length of the active part of the waveform to be adapted to the PWM's capabilities. |
| . |
| .TP |
| .BI \-O\~ dutyoffset |
| in nanoseconds defines the offset between the start of a period and the start of the period's active part. |
| . |
| .TP |
| .B \-v |
| Emit some information during runtime. |
| . |
| .SH "SEE ALSO" |
| .MR pwmset 1 , |
| .MR pwmtestperf 1 |