ruuvi.drivers.c
${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
|
#include "ruuvi_driver_error.h"
#include "ruuvi_driver_enabled_modules.h"
#include "ruuvi_interface_gpio.h"
#include <stdbool.h>
Go to the source code of this file.
Functions | |
rd_status_t | ri_gpio_pwm_init (void) |
Run any necessary initialization for PWM. More... | |
rd_status_t | ri_gpio_pwm_uninit (void) |
Uninitialize PWM. More... | |
rd_status_t | ri_gpio_pwm_start (const ri_gpio_id_t pin, const ri_gpio_mode_t mode, float *const frequency, float *const duty_cycle) |
Start PWM on given pin at given frequency and duty cycle. More... | |
rd_status_t | ri_gpio_pwm_stop (const ri_gpio_id_t pin) |
Stop PWM on given pin. More... | |
bool | ri_gpio_pwm_is_init (void) |
Check if PWM is initialized. More... | |
Pulse Width Modulation control.
Definition in file ruuvi_interface_gpio_pwm.h.