Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michel Roelofs
dt_ctrl
Commits
794d2601
Commit
794d2601
authored
Mar 15, 2013
by
Jeroen Vreeken
Browse files
Add some documentation to bridge_pwm block
parent
52a5098a
Changes
1
Hide whitespace changes
Inline
Side-by-side
controller/controller/block_bridge_pwm.c
View file @
794d2601
...
...
@@ -33,6 +33,13 @@
| 1 b |----
| |
----------------------
This block generates an PWM signal based on the input value
which can be used to control a H-bridge.
0.0 <= in < 1.0 a = PWM modulated, b = false
-1.0 <= in < 0.0 a = false, b = PWM modulated
0.0 == in a = false, b = false;
*/
...
...
@@ -86,7 +93,14 @@ static void calculate(struct controller_block *bridge)
}
static
struct
controller_block_param_list
params
[]
=
{
/* Divider between sample frequency and PWM frequency.
This also influences the available number of PWM steps.
*/
{
"divider"
,
false
},
/* Are we allowed to switch an output continuously on?
Set this to false if the driver needs a switching output
for generating proper gate voltage.
*/
{
"continuous_on"
,
false
},
{
NULL
},
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment