PWM library functions.
More...
PWM library functions.
◆ pwm_init()
Initialises the PWM peripheral.
- Returns
- 1 for success, -1 for failure
Definition at line 123 of file pi_pwm.c.
◆ pwm_mode()
void pwm_mode |
( |
unsigned int |
mode | ) |
|
Sets mode for the PWM peripheral.
- Parameters
-
mode | Mode for the PWM peripheral |
- Returns
- none
Definition at line 176 of file pi_pwm.c.
◆ pwm_release()
Releases the PWM peripheral and unmaps the memory.
- Returns
- none
Definition at line 213 of file pi_pwm.c.
◆ pwm_value()
void pwm_value |
( |
unsigned int |
value | ) |
|
Sets PWM value.
- Parameters
-
- Returns
- 1 for success, -1 for failure
Definition at line 190 of file pi_pwm.c.