1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
.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
|