File: pwmset.1

package info (click to toggle)
libpwm 1.0~rc2-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 1,596 kB
  • sloc: sh: 4,443; ansic: 859; makefile: 58
file content (94 lines) | stat: -rw-r--r-- 1,752 bytes parent folder | download
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
.TH "PWMSET" "1"
.SH "NAME"
pwmset \- Configures a PWM's output waveform
.SH "SYNOPSIS"
.
.PP
.SY pwmset
.RB [ \-c\~\c
.IB chipno ]
.RB [ \-p\~\c
.IB pwmno ]
.RB [ \-e ]
.RB [ \-s\~\c
.IB sleepns ]
.RB [ \-P\~\c
.IB periodlength ]
.RB [ \-D\~\c
.IB dutylength ]
.RB [ \-O\~\c
.IB dutyoffset ]
.RB [ \-v ]
.YS
.SH Description
.
.IR pwmset 's
purpose is to configure a PWM device to emit a certain waveform. The PWM to
program is specified by
.I chipno
and
.IR pwmno .
The waveform 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
.B \-e
Requests that the specified waveform is implemented exactly. If this isn't possible,
.I pwmset
fails.
.
.TP
.BI \-s\~ sleepns
It is unspecified what happens with the PWM's output once control over it is given up. After the waveform
is programmed, let
.I pwmset
keep control over the PWM for
.I sleepns
nanoseconds. The default value for
.I sleepns
is 5000000000, i.e.\~five seconds.
.
.TP
.BI \-P\~ periodlength
.I periodlength
in nanoseconds defines the length of the period of the waveform to be set.
.
.TP
.BI \-D\~ dutylength
in nanoseconds defines the length of the active part of the waveform to be set.
.
.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 pwmround 1 ,
.MR pwmtestperf 1