PWM library functions.
More...
|
| int | pwm_init () |
| | Initialise the PWM peripheral.
|
| |
| void | pwm_mode (unsigned int mode) |
| | Set mode for the PWM peripheral.
|
| |
| void | pwm_value (unsigned int value) |
| | Set PWM value.
|
| |
| void | pwm_release () |
| | Releases the PWM peripheral and unmaps the memory.
|
| |
PWM library functions.
Initialise 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 | ) |
|
Set mode for the PWM peripheral.
- Parameters
-
| mode | Mode for the PWM peripheral |
- Returns
- none
Definition at line 178 of file pi_pwm.c.
Releases the PWM peripheral and unmaps the memory.
- Returns
- none
Definition at line 215 of file pi_pwm.c.
| void pwm_value |
( |
unsigned int |
value | ) |
|
Set PWM value.
- Parameters
-
- Returns
- 1 for success, -1 for failure
Definition at line 192 of file pi_pwm.c.