PWM library functions.
More...
PWM library functions.
Initialises the PWM peripheral.
- Returns
- 1 for success, -1 for failure
Definition at line 124 of file pi_pwm.c.
| void pwm_mode |
( |
unsigned int |
mode | ) |
|
Sets mode for the PWM peripheral.
- Parameters
-
| mode | Mode for the PWM peripheral |
- Returns
- none
Definition at line 177 of file pi_pwm.c.
Releases the PWM peripheral and unmaps the memory.
- Returns
- none
Definition at line 214 of file pi_pwm.c.
| void pwm_value |
( |
unsigned int |
value | ) |
|
Sets PWM value.
- Parameters
-
- Returns
- 1 for success, -1 for failure
Definition at line 191 of file pi_pwm.c.